- create_accounting_journal - Create a journal
- get_accounting_journal - Retrieve a journal
- list_accounting_journals - List all journals
- patch_accounting_journal - Update a journal
- remove_accounting_journal - Remove a journal
- update_accounting_journal - Update a journal
Create a journal
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.journal.create_accounting_journal(request={
"accounting_journal": {},
"connection_id": "<id>",
})
assert res.accounting_journal is not None
# Handle response
print(res.accounting_journal)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateAccountingJournalRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CreateAccountingJournalResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Retrieve a journal
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.journal.get_accounting_journal(request={
"connection_id": "<id>",
"id": "<id>",
})
assert res.accounting_journal is not None
# Handle response
print(res.accounting_journal)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetAccountingJournalRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.GetAccountingJournalResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
List all journals
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.journal.list_accounting_journals(request={
"connection_id": "<id>",
})
assert res.accounting_journals is not None
# Handle response
print(res.accounting_journals)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListAccountingJournalsRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.ListAccountingJournalsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Update a journal
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.journal.patch_accounting_journal(request={
"accounting_journal": {},
"connection_id": "<id>",
"id": "<id>",
})
assert res.accounting_journal is not None
# Handle response
print(res.accounting_journal)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.PatchAccountingJournalRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.PatchAccountingJournalResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Remove a journal
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.journal.remove_accounting_journal(request={
"connection_id": "<id>",
"id": "<id>",
})
assert res is not None
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.RemoveAccountingJournalRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.RemoveAccountingJournalResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Update a journal
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.journal.update_accounting_journal(request={
"accounting_journal": {},
"connection_id": "<id>",
"id": "<id>",
})
assert res.accounting_journal is not None
# Handle response
print(res.accounting_journal)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateAccountingJournalRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.UpdateAccountingJournalResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |