patch
https://test-api.bill.pro/api/v2/profiles//orders/
Changes an order's lines, schedule and details. You can edit an order while it's waiting for payment: when its status is draft, pending or rejected.
Send the whole order every time. The same fields are required as in Create order, including currency and customer_id, or you get 422.
Most fields you leave out are cleared, not kept: description, tag_list and the order lines are replaced by what you send. Only merchant_invoice_id is kept when left out.
A draft order is rebuilt from your body, as in Create order:
- You can change
order_type,currencyandcustomer_id. - BillPro works out the amounts again. Preview figures you send are ignored.
An order in any other status keeps the amounts you send:
- Calculate a preview with the order as it should be.
- Send the same body here, with the preview's figures added. Each parameter says which preview figure to send. The amounts you send are saved as they are, not worked out again.
On these orders, a different order_type returns 422. currency and customer_id are ignored.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…