Manage order as a merchant
5.0 Manage order as a merchant
When building a Buy Online, Pick up in Store solution, you can allow merchants to manage orders that have pickup consignments. They can view and update the pickup consignment for an order.
The steps in this section apply to orders created through checkout, as well as pickup orders created server-side. To create a pickup order server-side, for example from a marketplace or point-of-sale (POS) import, send a request to the Create Order endpoint with consignments.pickups. Inventory is deducted at the location assigned to the pickup_method_id. For a sample payload, see the Order with pickup method request example.
5.1 View the newly-created order’s pickup consignment
To view the pickup consignment for the newly-created order, send a request to the Get consignments endpoint.
Request
Response
The order’s pickup consignment is 13.
5.2 View the newly-created order’s products
To view the products for a newly-created order, send a request to the Get order products endpoint. The response returns products that were assigned to a pickup consignment.
Request
Response
The order_pickup_method_id field is 13 (same value as the pickup consignment ID).
5.3 Update pickup consignment
If you need to update the original pickup consignment details, you have the ability to do so using the Orders API. You can update the:
pickup_method_idpickup_method_display_namecollection_instructionscollection_time_description- location attributes (except for the
location_id)
To update a pickup consignment, send a request to the Update an order endpoint.