PUT /purchase-invoices/{id}.json

PUT /purchase-invoices/{id}.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

PUT /purchase-invoices/{id}.json
curl \
 -X PUT http://api.example.com/v1/purchase-invoices/{id}.json \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"accountingError":"string","accountingIntegrationExternalId":true,"accountingProblem":{},"adjustment":42.0,"adjustmentReason":"string","commissionMethod":"retained","createdAt":"2024-05-04T09:42:00+00:00","externalId":"string","files":{},"finalized":false,"id":42,"invoiceShippingProblem":{},"invoiceShippingSource":"shippingRate","invoicingStage":"manual","paid":0,"paymentStatus":"notPaid","purchaseId":42,"quickbooksId":"string","reference":"string","saleReturnId":42,"saleReturnInvoiceShippingSource":"transaction","saleReturnItemId":42,"source":"automated","transactionId":42,"updatedAt":"2024-05-04T09:42:00+00:00","xeroId":"string"}'
Request example
{
  "accountingError": "string",
  "accountingIntegrationExternalId": true,
  "accountingProblem": {},
  "adjustment": 42.0,
  "adjustmentReason": "string",
  "commissionMethod": "retained",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "externalId": "string",
  "files": {},
  "finalized": false,
  "id": 42,
  "invoiceShippingProblem": {},
  "invoiceShippingSource": "shippingRate",
  "invoicingStage": "manual",
  "paid": 0,
  "paymentStatus": "notPaid",
  "purchaseId": 42,
  "quickbooksId": "string",
  "reference": "string",
  "saleReturnId": 42,
  "saleReturnInvoiceShippingSource": "transaction",
  "saleReturnItemId": 42,
  "source": "automated",
  "transactionId": 42,
  "updatedAt": "2024-05-04T09:42:00+00:00",
  "xeroId": "string"
}