POST /purchase-invoices.json

POST /purchase-invoices.json
application/json

Body Required

Responses

POST /purchase-invoices.json
curl \
 -X POST http://api.example.com/v1/purchase-invoices.json \
 -H "Content-Type: application/json" \
 -d '{"accountingError":"string","accountingIntegrationExternalId":true,"adjustment":42.0,"adjustmentReason":"string","commissionMethod":"retained","externalId":"string","files":{},"finalized":false,"invoicingStage":"manual","paid":0,"paymentStatus":"notPaid","purchaseId":42,"quickbooksId":"string","reference":"string","source":"automated","xeroId":"string"}'
Request example
{
  "accountingError": "string",
  "accountingIntegrationExternalId": true,
  "adjustment": 42.0,
  "adjustmentReason": "string",
  "commissionMethod": "retained",
  "externalId": "string",
  "files": {},
  "finalized": false,
  "invoicingStage": "manual",
  "paid": 0,
  "paymentStatus": "notPaid",
  "purchaseId": 42,
  "quickbooksId": "string",
  "reference": "string",
  "source": "automated",
  "xeroId": "string"
}
Response examples (200)
{
  "accountingError": "string",
  "accountingIntegrationExternalId": true,
  "adjustment": 42.0,
  "adjustmentReason": "string",
  "commissionMethod": "retained",
  "createdAt": "2023-05-04T09:42:00+00:00",
  "externalId": "string",
  "files": {},
  "finalized": false,
  "id": 42,
  "invoicingStage": "manual",
  "paid": 0,
  "paymentStatus": "notPaid",
  "purchaseId": 42,
  "quickbooksId": "string",
  "reference": "string",
  "source": "automated",
  "updatedAt": "2023-05-04T09:42:00+00:00",
  "xeroId": "string"
}