Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,14 @@ Based on:
### Generated
- [python v11.0.1] lending
### Releases
- [PyPI v11.0.1] https://pypi.org/project/codat-lending/11.0.1 - lending
- [PyPI v11.0.1] https://pypi.org/project/codat-lending/11.0.1 - lending

## 2026-08-07 11:56:14
### Changes
Based on:
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
- codat sdk-codegen b5f25135143b1ccfb99c941df11a7a1596dbe31e https://github.com/codat-spikes/sdk-codegen
### Generated
- [python v11.0.2] lending
### Releases
- [PyPI v11.0.2] https://pypi.org/project/codat-lending/11.0.2 - lending
104 changes: 56 additions & 48 deletions lending/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,57 @@
<!-- Start SDK Example Usage [usage] -->
```python
# Synchronous Example
from codat_lending import CodatLending
from codat_lending.models import shared


with CodatLending(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as cl_client:

res = cl_client.companies.create(request={
"name": "Technicalium",
})

# Handle response
print(res)
```

</br>

The same SDK client can also be used to make asynchronous requests by importing asyncio.

```python
# Asynchronous Example
import asyncio
from codat_lending import CodatLending
from codat_lending.models import shared

async def main():

async with CodatLending(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as cl_client:

res = await cl_client.companies.create_async(request={
"name": "Technicalium",
})

# Handle response
print(res)

asyncio.run(main())
```
<!-- Start SDK Example Usage [usage] -->
```python
# Synchronous Example
from codat_lending import CodatLending
from codat_lending.models import shared


with CodatLending(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as cl_client:

res = cl_client.accounting_bank_data.list_transactions(request={
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
"account_id": "13d946f0-c5d5-42bc-b092-97ece17923ab",
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
"order_by": "-modifiedDate",
})

# Handle response
print(res)
```

</br>

The same SDK client can also be used to make asynchronous requests by importing asyncio.

```python
# Asynchronous Example
import asyncio
from codat_lending import CodatLending
from codat_lending.models import shared

async def main():

async with CodatLending(
security=shared.Security(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as cl_client:

res = await cl_client.accounting_bank_data.list_transactions_async(request={
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
"account_id": "13d946f0-c5d5-42bc-b092-97ece17923ab",
"query": "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
"order_by": "-modifiedDate",
})

# Handle response
print(res)

asyncio.run(main())
```
<!-- End SDK Example Usage [usage] -->
30 changes: 14 additions & 16 deletions lending/docs/models/errors/errormessage.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# ErrorMessage

Your `query` parameter was not correctly formed


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
| `validation` | [OptionalNullable[shared.ErrorValidation]](../../models/shared/errorvalidation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. |
# ErrorMessage


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `can_be_retried` | *Optional[str]* | :heavy_minus_sign: | `True` if the error occurred transiently and can be retried. |
| `correlation_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier used to propagate to all downstream services and determine the source of the error. |
| `detailed_error_code` | *Optional[int]* | :heavy_minus_sign: | Machine readable error code used to automate processes based on the code returned. |
| `error` | *Optional[str]* | :heavy_minus_sign: | A brief description of the error. |
| `service` | *Optional[str]* | :heavy_minus_sign: | Codat's service the returned the error. |
| `status_code` | *Optional[int]* | :heavy_minus_sign: | The HTTP status code returned by the error. |
| `validation` | [Optional[shared.ErrorValidation]](../../models/shared/errorvalidation.md) | :heavy_minus_sign: | A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. |
Loading