Body
Required
-
accountingIntegrationId
integer(int32) | null Accounting integration
payload
object | null | array | boolean | integer | number | string Payload
-
purchaseInvoiceId
integer(int32) | null Purchase invoice
response
object | null | array | boolean | integer | number | string Response
-
saleInvoiceId
integer(int32) | null Sale invoice
-
source
string Required Source
Values are
quickbooks
,xero
, orcustom
. -
status
string Required Status
Values are
success
orerror
.
POST
/accounting-payloads.json
curl \
--request POST 'http://api.example.com/v1/accounting-payloads.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"accountingIntegrationId":42,"payload":{},"purchaseInvoiceId":42,"response":{},"saleInvoiceId":42,"source":"quickbooks","status":"success"}'
Request examples
{
"accountingIntegrationId": 42,
"payload": {},
"purchaseInvoiceId": 42,
"response": {},
"saleInvoiceId": 42,
"source": "quickbooks",
"status": "success"
}
Response examples (200)
{
"accountingIntegrationId": 42,
"createdAt": "2025-05-04T09:42:00Z",
"id": 42,
"payload": {},
"purchaseInvoiceId": 42,
"response": {},
"saleInvoiceId": 42,
"source": "quickbooks",
"status": "success",
"updatedAt": "2025-05-04T09:42:00Z"
}