curl --request GET \
--url https://api.light.inc/rest/ext/v1/accounting-documents/accounting-documents
{
"total": 123,
"records": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentSequenceId": "<string>",
"documentNumber": "<string>",
"documentType": "AP",
"status": "DRAFT",
"description": "<string>",
"documentDate": "2023-12-25",
"areLinesWithTax": true,
"businessPartnerName": "<string>",
"businessPartnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"totalTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"currency": "USD"
}
]
}
Lists accounting documents
curl --request GET \
--url https://api.light.inc/rest/ext/v1/accounting-documents/accounting-documents
{
"total": 123,
"records": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentSequenceId": "<string>",
"documentNumber": "<string>",
"documentType": "AP",
"status": "DRAFT",
"description": "<string>",
"documentDate": "2023-12-25",
"areLinesWithTax": true,
"businessPartnerName": "<string>",
"businessPartnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"totalTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"currency": "USD"
}
]
}
"amount:desc,createdAt:asc"
"state:in:IN_DRAFT|SCHEDULED|PAID,amount:gte:500"
default response
The response is of type object
.