CreditNote POST
POST /api/account/{account}/accounting/{platform}/{id}/creditnote
Creates a Credit Note.
URL Parameters
account* | Account | |
---|---|---|
platform* | Connection Platform | |
id* | Connection ID |
Request Body
amount | number | |
---|---|---|
amountDue | number | |
currency | string | |
invoiceNumber | string | |
invoiceId | string | |
debtorId | string | |
updatedDate | string | |
accountingClosedDate | string | |
accountingDate | string | |
status | string | |
date | string | |
items | array[object] | |
description | string | |
ledger | string | |
quantity | number | |
amount | number |
Responses
200 OK
amount | number | |
---|---|---|
amountDue | number | |
currency | string | |
invoiceNumber | string | |
invoiceId | string | |
debtorId | string | |
updatedDate | string | |
accountingClosedDate | string | |
accountingDate | string | |
status | string | |
date | string | |
items | array[object] | |
description | string | |
ledger | string | |
quantity | number | |
amount | number |
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error
Example Success Response
{
"amount": 1,
"amountDue": 1,
"currency": "string",
"invoiceNumber": "string",
"invoiceId": "string",
"debtorId": "string",
"updatedDate": "string",
"accountingClosedDate": "string",
"accountingDate": "string",
"status": "string",
"date": "string",
"items": [
{
"description": "string",
"ledger": "string",
"quantity": 1,
"amount": 1
}
]
}