Body
Required
-
Accounting error
-
Accounting integration external
-
Adjustment
-
Adjustment reason
-
Commission method
Values are
retained
orreverse
. Default value isretained
. -
Created at
-
External
-
Finalized
Default value is
false
. -
Id
-
Invoice shipping source
Values are
shippingRate
,dropshipment
,customer
, ortransaction
. -
Invoicing stage
Values are
beforeShipping
,afterShipping
,delivered
, ormanual
. Default value ismanual
. -
Paid
Default value is
0
. -
Payment status
Values are
notPaid
,partiallyPaid
, orpaid
. Default value isnotPaid
. -
Purchase
-
Quickbooks
-
Reference
-
Sale return
-
Sale return invoice shipping source
Value is
transaction
. -
Sale return item
-
Source
Values are
manual
,automated
, orcatchup
. Default value isautomated
. -
Transaction
-
Updated at
-
Xero
PUT
/purchase-invoices/{id}.json
curl \
--request PUT 'http://api.example.com/v1/purchase-invoices/{id}.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"accountingError":"string","accountingIntegrationExternalId":true,"accountingProblem":{},"adjustment":42.0,"adjustmentReason":"string","commissionMethod":"retained","createdAt":"2025-05-04T09:42:00Z","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":"2025-05-04T09:42:00Z","xeroId":"string"}'
Request examples
{
"accountingError": "string",
"accountingIntegrationExternalId": true,
"accountingProblem": {},
"adjustment": 42.0,
"adjustmentReason": "string",
"commissionMethod": "retained",
"createdAt": "2025-05-04T09:42:00Z",
"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": "2025-05-04T09:42:00Z",
"xeroId": "string"
}