Purchases
Update a purchase
Update a purchase by id
post/apps/{appId}/purchases/{id}
Path parameters
appIdinteger required
The identifier of the Sinao application you are using. Each application corresponds to a company and an accounting. A user can have several Sinao applications. To retrieve the identifiers of its applications, you must call the endpoint /apps.
idinteger required
ID of purchase
Query parameters
account_idinteger
Auto-calculated by sales_lines total
supplier_organization_idinteger
titlestring
supplier_namestring
amountinteger
Auto-calculated by sales_lines total
amount_taxinteger
amount_reverse_taxinteger
currencystring
vat_detailobject
billed_atstring date
commentstring
vat_repayment'payment' | 'billing'
payment_deadline_atstring date nullable
expected_payment_deadline_atstring date nullable
payment_account_numberstring nullable
payment_routing_numberstring nullable
payment_swiftstring nullable
payment_ibanstring nullable
amortization_periodinteger nullable
author_user_idinteger nullable
Author id of the invoice
employee_user_idinteger nullable
Employee id of the purchase
employee_namestring nullable
Employee id of the purchase
mileage_allowance_idinteger nullable
mileage allowance id of the purchase
is_expense_reportboolean
Response
Success