/

to search

#Order APIs

The Order resource is used to define an ONDC-routed order placed to a single Storefront.

The Order APIs can be used to–

  1. Get orders for a storefront
  2. Update orders for a storefront

#Get orders for a storefront

Sample Request

MethodGET
URL/api/storefronts/storefront_id/orders

Sample Response

{
[
{
"order_id": "string",
"order_state": "string",
},
{
"order_id": "string",
"order_state": "string",
}
]
}

#Update orders for a storefront

Sample Request

MethodPUT
URL/api/storefronts/storefront_id/orders

Sample Request Body

{
[
{
"order_id": "string",
"order_state": "string",
},
{
"order_id": "string",
"order_state": "string",
}
]
}

Was this page helpful?