PUT /purchase-invoices/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
accountingError string | null
Accounting error
-
accountingIntegrationExternalId boolean | null
Accounting integration external
accountingProblem object | null | array | boolean | integer | number | string
Any of: Accounting problem
Accounting problem
Accounting problem
Accounting problem
Accounting problem
Accounting problem
-
adjustment number | null
Adjustment
-
adjustmentReason string | null
Adjustment reason
-
Commission method
Values are
retained
orreverse
. Default value isretained
. -
createdAt string(date-time) | null
Created at
-
externalId string | null
External
-
Finalized
Default value is
false
. -
id integer(int32)
Id
invoiceShippingProblem object | null | array | boolean | integer | number | string
Any of: Invoice shipping problem
Invoice shipping problem
Invoice shipping problem
Invoice shipping problem
Invoice shipping problem
Invoice shipping problem
-
invoiceShippingSource string | null
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
-
quickbooksId string | null
Quickbooks
-
Reference
-
saleReturnId integer(int32) | null
Sale return
-
saleReturnInvoiceShippingSource string | null
Sale return invoice shipping source
Value is
transaction
. -
saleReturnItemId integer(int32) | null
Sale return item
-
Source
Values are
manual
,automated
, orcatchup
. Default value isautomated
. -
transactionId integer(int32) | null
Transaction
-
updatedAt string(date-time) | null
Updated at
-
xeroId string | null
Xero
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"}'
{
"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"
}