03 - Initiate an order before confirmation (order in cart) - /init
Developing
POST
/init
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/init' \
--header 'Content-Type: application/json' \
--data-raw '{
"context": {
"domain": "ONDC:RET11",
"country": "IND",
"city": "std:0124",
"core_version": "1.2.5",
"action": "init",
"transaction_id": "{{transaction_id}}",
"message_id": "{{message_id}}",
"timestamp": "{{timestamp}}",
"bap_uri": "{{bap_uri}}",
"bap_id": "{{bap_id}}",
"ttl": "PT30S"
},
"message": {
"order": {
"provider": {
"id": "pramaan_provider_1",
"locations": [
{
"id": "SSL1"
}
]
},
"items": [
{
"id": "id_ancc5_0_0",
"location_id": "SSL1",
"quantity": {
"count": 2
},
"parent_item_id": "P3121",
"tags": [
{
"code": "type",
"list": [
{
"code": "type",
"value": "item"
}
]
}
],
"fulfillment_id": "7ce4af7f-b505-4dd2-8e35-180c857daec6"
},
{
"id": "id_5yzai_2_0",
"quantity": {
"count": 2
},
"parent_item_id": "P3121",
"tags": [
{
"code": "type",
"list": [
{
"code": "type",
"value": "customization"
}
]
},
{
"code": "parent",
"list": [
{
"code": "id",
"value": "CG11"
},
{
"code": "default",
"value": "yes"
}
]
}
],
"fulfillment_id": "7ce4af7f-b505-4dd2-8e35-180c857daec6"
}
],
"billing": {
"address": {
"name": "Nirdosh Chauhan",
"building": "221 B",
"locality": "Baker Steeet",
"city": "Gurgaon",
"state": "Haryana",
"country": "India",
"area_code": "122007"
},
"tax_number": "00ABCDE1234F1Z5",
"name": "Nirdosh Chauhan",
"email": "nirdosh.chauhan@sequelstring.com",
"phone": "9876543210",
"created_at": "2025-06-03T06:11:53.586Z",
"updated_at": "2025-06-03T06:11:53.586Z"
},
"fulfillments": [
{
"id": "7ce4af7f-b505-4dd2-8e35-180c857daec6",
"type": "Delivery",
"end": {
"location": {
"gps": "28.4554726,77.0219019",
"address": {
"name": "Nirdosh Chauhan",
"building": "221 B",
"locality": "Baker Steeet",
"city": "Gurgaon",
"state": "Haryana",
"country": "India",
"area_code": "122007"
}
},
"contact": {
"phone": "9876543210",
"email": "nirdosh.chauhan@sequelstring.com"
}
}
}
]
}
}
}'
Response Response Example
{}
Request
Body Params application/json