Orders
Update an order
Updates an existing order. Send the id and only the fields that changed;
anything you leave out is left alone. The order lines are the exception, see
order_items below.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
integer | yes | The Bob Go order id, from the create response. An id that is not on your account returns 404. |
Everything else is optional and matches the fields on
POST /v2/orders, with these exceptions:
order_itemsonly applies to orders from your manual, CSV or API channel. On an order from a store integration it is ignored.order_itemsreplaces the whole list. Lines you leave out are deleted and lines without anid, or with one that is not on this order, are added as new lines, so send every line you want to keep. You cannot remove every line.- Send each line you keep in full. Every field on it is overwritten, so a
field you leave out is cleared:
unit_pricebecomes 0, the image goes, and withoutqtythe line counts as quantity 0, which deletes it, or fails if any of it is fulfilled.descriptionis the exception: a line without one is rejected with a400. channel_image_urlis not copied to Bob Go on update, as it is on create:image_urlserves the URL you send.statuscan only be set tocompletedorcancelled. Other values are ignored.buyer_selected_shipping_costandbuyer_selected_shipping_methodonly change on orders from your manual or CSV channel.
A cancelled order cannot be changed.
The common case is payment: an order created unpaid and patched to paid
once the gateway settles. Rules that only act on paid orders will then pick it
up.