post
https://{store}/api/rest/sales2/orders/bill/update
| Param | Notes |
|---|---|
bill_id | Invoice ID |
data.items | This is used to overwrite the invoice items quantity and price. Uses ItemsData. |
data.totals_info | This is used to set custom totals for invoice. Array of TotalData. |
data.due_date | This is used to set the due date on the invoice. Set this value to null, if setting net terms and the due date should be set automatically. Vaue should be in the format yyyy-MM-dd HH:mm:ss. Time is optional. |
data.netterm | This is used to set netterm data on the invoice. Uses NetTermData |
data.external_invoice_id | This is used to set the external invoice id on the invoice. |
ItemsData
| Param | Notes |
|---|---|
| objectKey | Object key is order_item_id from the invoice. |
qty | The quantity of the invoice item to be set. This overrides the current qty of the invoice item. |
base_price | The base price of the invoice item to be set in base currency without currency symbol. This overwrites the current base_price of the invoice item. |
TotalData
| Param | Notes |
|---|---|
code | Total being updated. (shipping, discount, payment_surcharge, tax). |
base_raw_value | Value to set the total to. (number). |
NetTermData
| Param | Notes |
|---|---|
term | Invoice terms. Set to null to remove terms |
detail | Invoice terms detail |
xy_days | Invoice Net XY terms days |
xy_discount_days | Invoice Net XY terms discount days |
xy_discount_amount | Invoice Net XY terms discount amount in base currency without currency symbol |
xy_discount_calculation_total | Invoice Net XY terms discount calculation total. Can be default, subtotal, grand_total |
xy_late_fee | Invoice Net XY terms late fee amount in base currency without currency symbol |
xy_late_fee_calculation_total | Invoice Net XY terms late fee calculation total. Can be default, subtotal, grand_total |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK (no example documented yet)
