Latinum Document API Resources
Get Invoice PDF
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | query | string | Document Number. | X |
legal_entity_id | query | string | Legal Entity Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Invoice By Document Number
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | url | string | Document Number. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "INVOICE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
Get Invoice By ID
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_id | url | string | Document Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "INVOICE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
Get All Invoices
billing
Returns a list of invoices within the specified range. This resource is limited to respond with a maximum of 250 invoices. If a greater number of invoices is desired, it is recommended to use the /v2/report/document/invoice/csv resource.
If the "month" query parameter is provided, the "range_start" and "range_end" query parameters need not be included. If the "legal_entity_id" query parameter is not provided, all Legal Entities within the requesting domain will be queried. If the "customer_Account_id" query parameter is not provided, all Customer Accounts will be queried.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
customer_account_id | query | string | Customer Account Id. | |
legal_entity_id | query | string | Legal Entity Id. | |
month | query | string | Month. | |
range_end | query | string | Range End. | X |
range_start | query | string | Range Start. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
[
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "INVOICE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
},
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-2",
"date": "2020-01-02T12:00:00.000Z",
"type": "INVOICE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-02T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
]
Create Invoice
billing
Multiple invoices can be created with a single request. Simply include the invoice objects in the "invoice" parameter.
Either account codes or account IDs can be provided for each line item, if both are provided the IDs will be used by default.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
invoices | body | string | Invoices. | |
legal_entity_id | body | string | Legal Entity Id. |
Request Example
{
"legal_entity_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"invoices":
[
{
"date":"2024-01-01T12:00:00+02:00",
"customer_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"line_items":
[
{
"quantity":1,
"description":"XXX",
"unit_value":50,
"discount_percent":0,
"tax_percent": 0,
"item_code": "XXX",
"sales_tax_code": "XXX",
"receivable_account_code": "XXX",
"sales_account_code":"XXX",
"payable_account_code":"XXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
}
]
}
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Credit Note PDF
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | query | string | Document Number. | X |
legal_entity_id | query | string | Legal Entity Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Credit Note By Document Number
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | url | string | Document Number. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "CREDIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
Get Credit Note By ID
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_id | url | string | Document Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "CREDIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
Get All Credit Notes
billing
Returns a list of credit notes within the specified range. This resource is limited to respond with a maximum of 250 credit notes. If a greater number of credit notes is desired, it is recommended to use the /v2/report/document/creditnote/csv resource.
If the "month" query parameter is provided, the "range_start" and "range_end" query parameters need not be included. If the "legal_entity_id" query parameter is not provided, all Legal Entities within the requesting domain will be queried. If the "customer_Account_id" query parameter is not provided, all Customer Accounts will be queried.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
customer_account_id | query | string | Customer Account Id. | |
legal_entity_id | query | string | Legal Entity Id. | |
month | query | string | Month. | |
range_end | query | string | Range End. | X |
range_start | query | string | Range Start. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
[
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "CREDIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
},
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-2",
"date": "2020-01-02T12:00:00.000Z",
"type": "CREDIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-02T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
]
Create Credit Note
billing
Multiple credit notes can be created with a single request. Simply include the credit note objects in the "credit_notes" parameter.
Either account codes or account IDs can be provided for each line item, if both are provided the IDs will be used by default.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
credit_notes | body | string | Credit Notes. | |
legal_entity_id | body | string | Legal Entity Id. |
Request Example
{
"legal_entity_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"credit_notes":
[
{
"date":"2024-01-01T12:00:00+02:00",
"customer_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"line_items":
[
{
"quantity":1,
"description":"XXX",
"unit_value":50,
"discount_percent":0,
"tax_percent": 0,
"item_code": "XXX",
"sales_tax_code": "XXX",
"receivable_account_code": "XXX",
"sales_account_code":"XXX",
"payable_account_code":"XXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
}
]
}
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Debit Note PDF
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | query | string | Document Number. | X |
legal_entity_id | query | string | Legal Entity Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Debit Note By Document Number
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | url | string | Document Number. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "DEBIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
Get Debit Note By ID
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_id | url | string | Document Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "DEBIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
Get All Debit Notes
billing
Returns a list of debit notes within the specified range. This resource is limited to respond with a maximum of 250 debit notes. If a greater number of debit notes is desired, it is recommended to use the /v2/report/document/debitnote/csv resource.
If the "month" query parameter is provided, the "range_start" and "range_end" query parameters need not be included. If the "legal_entity_id" query parameter is not provided, all Legal Entities within the requesting domain will be queried. If the "customer_Account_id" query parameter is not provided, all Customer Accounts will be queried.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
customer_account_id | query | string | Customer Account Id. | |
legal_entity_id | query | string | Legal Entity Id. | |
month | query | string | Month. | |
range_end | query | string | Range End. | X |
range_start | query | string | Range Start. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
line_items | body | array | Line Items. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
[
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-1",
"date": "2020-01-01T12:00:00.000Z",
"type": "DEBIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-01T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
},
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "INV-2",
"date": "2020-01-02T12:00:00.000Z",
"type": "DEBIT_NOTE",
"status": "PROCESSED",
"metadata": {
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"tax_total": "12.91",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": "user@domain.com",
"legal_entity_phone_no": "0123456789",
"legal_entity_website": "domain.com",
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXX",
"legal_entity_reg_no": "XXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "XXXX-XXXX-XXXX",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
},
"line_items": [
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"document_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"date": "2020-01-02T12:00:00.000Z",
"item_code": null,
"description": "XXX",
"quantity": 1,
"unit_value": "86.09",
"excluding": "86.09",
"including": "99.00",
"excluding_total": "86.09",
"including_total": "99.00",
"discount_total": "0.00",
"discount_percent": "0.00",
"tax_percent": "15.00",
"sales_tax_code": null,
"sales_tax_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_tax_account_code": "XXX",
"sales_account_code": "XXX",
"receivable_account_code": "XXX",
"payable_account_code": "XXX"
}
]
}
]
Create Debit Note
billing
Multiple debit notes can be created with a single request. Simply include the debit note objects in the "debit_notes" parameter.
Either account codes or account IDs can be provided for each line item, if both are provided the IDs will be used by default.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
debit_notes | body | string | Debit Notes. | |
legal_entity_id | body | string | Legal Entity Id. |
Request Example
{
"legal_entity_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"debit_notes":
[
{
"date":"2024-01-01T12:00:00+02:00",
"customer_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"line_items":
[
{
"quantity":1,
"description":"XXX",
"unit_value":50,
"discount_percent":0,
"tax_percent": 0,
"item_code": "XXX",
"sales_tax_code": "XXX",
"receivable_account_code": "XXX",
"sales_account_code":"XXX",
"payable_account_code":"XXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"sales_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"payable_account_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
}
]
}
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Receipt PDF
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | query | string | Document Number. | X |
legal_entity_id | query | string | Legal Entity Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Receipt By Document Number
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | url | string | Document Number. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-1",
"date": "2024-01-01T12:00:00.000Z",
"type": "RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
}
Get Receipt By ID
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_id | url | string | Document Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-1",
"date": "2024-01-01T12:00:00.000Z",
"type": "RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
}
Get All Receipts
billing
Returns a list of receipts within the specified range. This resource is limited to respond with a maximum of 250 receipts. If a greater number of receipts is desired, it is recommended to use the /v2/report/document/receipt/csv resource.
If the "month" query parameter is provided, the "range_start" and "range_end" query parameters need not be included. If the "legal_entity_id" query parameter is not provided, all Legal Entities within the requesting domain will be queried. If the "customer_Account_id" query parameter is not provided, all Customer Accounts will be queried.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
customer_account_id | query | string | Customer Account Id. | |
legal_entity_id | query | string | Legal Entity Id. | |
month | query | string | Month. | |
range_end | query | string | Range End. | X |
range_start | query | string | Range Start. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
[
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-1",
"date": "2024-01-01T12:00:00.000Z",
"type": "RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
},
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-2",
"date": "2024-01-02T12:00:00.000Z",
"type": "RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
}
]
Create Receipt
billing
Multiple receipts can be created with a single request. Simply include the receipt objects in the "receipts" parameter.
Either account codes or account IDs can be provided for each line item, if both are provided the IDs will be used by default.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
legal_entity_id | body | string | Legal Entity Id. | |
receipts | body | string | Receipts. |
Request Example
{
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receipts": [
{
"date": "2024-01-01T12:00:00+0200",
"amount": 2864.85,
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
}
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Reversal Receipt PDF
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | query | string | Document Number. | X |
legal_entity_id | query | string | Legal Entity Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Get Reversal Receipt By Document Number
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_number | url | string | Document Number. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-1",
"date": "2024-01-01T12:00:00.000Z",
"type": "REVERSAL_RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
}
Get Reversal Receipt By ID
billing
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
document_id | url | string | Document Id. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
404 | Not Found |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-1",
"date": "2024-01-01T12:00:00.000Z",
"type": "REVERSAL_RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
}
Get All Reversal Receipts
billing
Returns a list of reversal receipts within the specified range. This resource is limited to respond with a maximum of 250 reversal receipts. If a greater number of reversal receipts is desired, it is recommended to use the /v2/report/document/reversalreceipt/csv resource.
If the "month" query parameter is provided, the "range_start" and "range_end" query parameters need not be included. If the "legal_entity_id" query parameter is not provided, all Legal Entities within the requesting domain will be queried. If the "customer_Account_id" query parameter is not provided, all Customer Accounts will be queried.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorCustomerStaff MemberSupportRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
customer_account_id | query | string | Customer Account Id. | |
legal_entity_id | query | string | Legal Entity Id. | |
month | query | string | Month. | |
range_end | query | string | Range End. | X |
range_start | query | string | Range Start. | X |
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |
Response Properties
Name | In | Type | Description |
---|---|---|---|
customer_account_id | body | string | Customer Account Id. |
date | body | string | Date. |
document_number | body | string | Document Number. |
domain | body | string | Entity Domain. |
id | body | string | Unique Entity ID. |
legal_entity_id | body | string | Legal Entity Id. |
metadata | body | object | Metadata. |
status | body | string | Status. |
supplier_account_id | body | string | Supplier Account Id. |
type | body | string | Type. |
Response Example
[
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-1",
"date": "2024-01-01T12:00:00.000Z",
"type": "REVERSAL_RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
},
{
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"domain": "domain.com",
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"supplier_account_id": null,
"document_number": "RCPT-2",
"date": "2024-01-02T12:00:00.000Z",
"type": "REVERSAL_RECEIPT",
"status": "PROCESSED",
"metadata": {
"amount": "99.00",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"legal_entity_timezone": "Africa/Johannesburg",
"legal_entity_name": "XXX",
"legal_entity_email": null,
"legal_entity_phone_no": "0123456789",
"legal_entity_website": null,
"legal_entity_address": "123 Street Road, Suburb, City",
"legal_entity_sales_tax_reg_no": "XXXX",
"legal_entity_reg_no": "XXXX",
"customer_type": "INDIVIDUAL",
"customer_account_code": "CUST-001",
"customer_reg_no": null,
"customer_sales_tax_reg_no": null,
"customer_name": "XXX",
"customer_phone_no": null,
"customer_email": "user@domain.com",
"customer_address_type": "PHYSICAL",
"customer_address_line1": "123 Street Road",
"customer_address_line2": "Suburb",
"customer_address_line3": "City",
"customer_address_line4": null,
"customer_address_state": "Gauteng",
"customer_address_country": "ZA",
"customer_address_postal_code": "0000",
"currency_symbol": "R"
}
}
]
Create Reversal Receipt
billing
Multiple reversal receipts can be created with a single request. Simply include the reversal receipt objects in the "reversal_receipts" parameter.
Either account codes or account IDs can be provided for each line item, if both are provided the IDs will be used by default.
Accepted Roles (RBAC)
AdministratorBilling AccountantBilling AdministratorRequest Parameters
Name | In | Type | Description | MUST include |
---|---|---|---|---|
X-Auth-Token | header | string | Valid Authentication Token. Please see developers documentation/identity. | X |
X-Timezone | header | string | Timezone for response datetime property values. (default UTC) | |
legal_entity_id | body | string | Legal Entity Id. | |
reversal_receipts | body | string | Reversal Receipts. |
Request Example
{
"legal_entity_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"reversal_receipts": [
{
"date": "2024-01-01T12:00:00+0200",
"amount": 2864.85,
"customer_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"receivable_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"bank_account_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
}
Response Status Codes
Code | Meaning |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized / Require Authentication |
403 | Forbidden / Access Denied |
429 | Too Many Requests / Your Rate Limited |
500, 501, 502, 503, 504 | Service Unavailable |