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