Create or cancel an orderpost https://example.com/v1/ordersThis request initiates the process of order creation or cancellation.Body Paramsexternal_order_idstringrequiredThe external order ID. This is a partner-supplied ID.store_idstringrequiredThe parent identifier of the store.order_sourcestringrequiredThe source of the order. This must be one of the following allowed values. Allowed values: "Online"order_statusstringrequiredThe status of the order. This must be one of the following allowed values. Allowed values: "NEW", "CANCELLED"carrierstringThe name of the preferred carrier for express delivery. The set of eligible carriers is determined by the client.pickup_ready_timestringThe time at which an express delivery will be ready for driver pickup. Specify a UTC date and time in ISO 8601 format. This value is mandatory for delivery orders. Delivery orders have an order_service value of "D" or "PD". Example: "2024-02-23T08:31:00"start_delivery_slot_timestringThe start of the allowed window of time for order delivery. Specify a UTC date and time in ISO 8601 format. This value is mandatory for delivery orders. Delivery orders have an order_service value of "D" or "PD". Example: "2024-02-23T09:00:00"end_delivery_slot_timestringThe end of the allowed window of time for order delivery. Specify a UTC date and time in ISO 8601 format. This value is mandatory for delivery orders. Delivery orders have an order_service value of "D" or "PD". Example: "2024-02-23T09:30:00"customer_contact_infoobjectrequiredAn object that provides contact information for a customer.customer_contact_info objectorder_price_infoobjectrequiredAn object that provides information on the cost of the order, including totals, taxes, and bag and delivery fees.order_price_info objectitemsarray of objectsrequiredA list of the items that are included in the order, by item ID.items*ADD objectdelivery_instructionsarray of objectsThe instructions for delivery of the order.delivery_instructionsADD objectorder_summaryobjectAn object that represents an order by total weight and special handling requirements. This value is mandatory for delivery orders. Delivery orders have an order_service value of "D" or "PD".order_summary objectcancel_detailsobjectAdditional information about the cancellation, if available.cancel_details objectmarketstringenumrequiredThe marketplace that is the source of the order. This must be one of the following country or region codes, specified in conformance with ISO 3166. CodeCountry or RegionUSUnited StatesUKUnited KingdomEUEuropean UnionUSUKEUAllowed:USUKEUdelivery_detailsobjectThe delivery address, including the latitude and longitude of the location. This value is mandatory for delivery orders. Delivery orders have an order_service value of "D" or "PD".delivery_details objectlanguage_isocodestringrequiredThe ISO 639 language code that is associated with the order. Examples: "en-us", "fr-ca", "hi-in"order_servicestringenumrequiredThe order service required for the order. This must be one of the following values. ValueOrder Service"P"Picking"D"Delivery"PD"Picking and delivery"W"White LabelPDPDWAllowed:PDPDWestimated_due_timestringThe due time for order delivery. Specify a UTC date and time in ISO 8601 format. This value is mandatory for picking orders. Picking orders have an order_service value of "P" or "PD". Examples: 2024-02-23T09:30:00tracking_urlstringThe URL that is used to track the delivery of the order. The URL shows the location of the driver.delivery_idstringThe unique identifier of the delivery order. The identifier is provided by the delivery partner.quote_idstringThe unique identifier of the quotation. The identifier is provided by the carrier. This value is mandatory for white label orders. White label orders have an order_service value of "W".customer_idstringThe unique identifier of the customer. The identifier is provided by the retailer. This value is mandatory for white label orders. White label orders have an order_service value of "W".deliverable_actionstringSpecify the action for the courier to take on a delivery. This must be one of the following values. This value is optional and applies only to white label orders and select carriers. White label orders have an order_service value of "W". ValueAction"deliverable_action_meet_at_door"Meet-at-door delivery. This is the default if deliverable_action is not set."deliverable_action_leave_at_door"The preferred action for the courier to take on a delivery. When used, undeliverable_action can be set to "leave_at_door" for contactless delivery. The order cannot be left at the door if signature or ID verification requirements were applied when the delivery was created. Photo confirmation of delivery is required to complete order drop-off.undeliverable_actionstringSpecify the action for the courier to take on an undeliverable order. This must be one of the following values. This value is optional and applies only to white label orders and select carriers. White label orders have an order_service value of "W". ValueAction"leave_at_door"This action is taken when the customer is not available to receive a normal delivery. In this case, the courier is requested to leave the package at a dropoff location. Note: (1) An order cannot be set to "leave at door" when signature, PIN, or ID verification requirements are applied when the deliver is created; and, (2) Photo confirmation of delivery is required to complete order drop-off."return"This action is taken when the customer is not available to receive a normal delivery. In this case, the courier is requested to return the package back to the pickup location. If deliverable_action is set to "leave at door", the courier is given the option to return the package to the pickup location if circumstances dictate."discard"This action is taken when a package cannot be delivered. In this case, the courier is allowed to keep or discard the package if it cannot be delivered.delivery_verificationobjectThe steps that must be taken to verify delivery before dropoff is complete. These typically include picture or pincode. This value is optional and only applies to white label orders and select carriers. White label orders have an order_service value of "W".delivery_verification objectHeadersWM_CONSUMER.IDstringrequiredThe Walmart consumer identifier (ID) of the tenant. The tenant must submit this ID in the header of every request. Example: "2d6cf199-9b07-4350-bb2b9-0db3c2"Response 200OKUpdated about 1 year ago