Returns all credit notes linked to the invoice payable
curl --request GET \
--url https://api.light.inc/v1/invoice-payables/{invoicePayableId}/credit-notes \
--header 'Authorization: <api-key>'[
{
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditNote": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"documentDate": "2023-12-25",
"status": "DRAFT",
"amount": 123,
"currency": "USD"
},
"invoicePayable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"documentDate": "2023-12-25",
"status": "DRAFT",
"amount": 123,
"currency": "USD"
},
"amount": 123,
"currency": "USD",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
default response
ID of the company
Invoice payable details
Show child attributes
Invoice payable details
Show child attributes
Clearing amount in cents
"USD"
Timestamp when the link was created
Timestamp when the link was last updated
curl --request GET \
--url https://api.light.inc/v1/invoice-payables/{invoicePayableId}/credit-notes \
--header 'Authorization: <api-key>'[
{
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditNote": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"documentDate": "2023-12-25",
"status": "DRAFT",
"amount": 123,
"currency": "USD"
},
"invoicePayable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"documentDate": "2023-12-25",
"status": "DRAFT",
"amount": 123,
"currency": "USD"
},
"amount": 123,
"currency": "USD",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]