02 - Inquire about availability and pricing of selected items from catalogue - /on_select
Developing
POST
/on_select
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/on_select' \
--header 'Content-Type: application/json' \
--data-raw '{
"context": {
"domain": "ONDC:RET11",
"country": "IND",
"city": "std:0124",
"core_version": "1.2.5",
"action": "on_select",
"transaction_id": "{{transaction_id}}",
"message_id": "{{message_id}}",
"timestamp": "{{timestamp}}",
"bap_uri": "{{bap_uri}}",
"bap_id": "{{bap_id}}",
"ttl": "PT30S"
},
"message": {
"order": {
"fulfillments": [
{
"id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"type": "Delivery",
"@ondc/org/provider_name": "Pramaan Store 1",
"tracking": true,
"@ondc/org/category": "Immediate Delivery",
"@ondc/org/TAT": "PT24H",
"state": {
"descriptor": {
"code": "Serviceable"
}
},
"end": {
"time": {
"range": {
"start": "2025-05-23T08:34:45.691Z",
"end": "2025-05-23T09:34:45.691Z"
}
}
}
},
{
"id": "b5634175-9158-452c-a034-19941d164194",
"type": "Delivery",
"@ondc/org/provider_name": "Pramaan Store 1",
"tracking": true,
"@ondc/org/category": "Immediate Delivery",
"@ondc/org/TAT": "PT24H",
"state": {
"descriptor": {
"code": "Serviceable"
}
},
"end": {
"time": {
"range": {
"start": "2025-05-23T09:34:45.691Z",
"end": "2025-05-23T10:34:45.691Z"
}
}
}
},
{
"id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"type": "Self-Pickup",
"@ondc/org/provider_name": "Pramaan Store 1",
"tracking": false,
"@ondc/org/category": "Takeaway",
"@ondc/org/TAT": "PT24H",
"state": {
"descriptor": {
"code": "Serviceable"
}
}
},
{
"id": "99678890-4935-4407-a4e8-d65691220789",
"type": "Buyer-Delivery",
"@ondc/org/provider_name": "Pramaan Store 1",
"tracking": false,
"@ondc/org/category": "Immediate Delivery",
"@ondc/org/TAT": "PT15M",
"state": {
"descriptor": {
"code": "Serviceable"
}
},
"tags": [
{
"code": "order_details",
"list": [
{
"code": "weight_unit",
"value": "kilogram"
},
{
"code": "weight_value",
"value": "3.0"
},
{
"code": "dim_unit",
"value": "centimeter"
},
{
"code": "length",
"value": "1.0"
},
{
"code": "breadth",
"value": "1.0"
},
{
"code": "height",
"value": "1.0"
}
]
}
]
}
],
"items": [
{
"id": "id_ancc5_0_0",
"quantity": {
"count": 2
},
"parent_item_id": "P3121",
"tags": [
{
"code": "type",
"list": [
{
"code": "type",
"value": "item"
}
]
}
],
"location_id": "SSL1",
"fulfillment_id": [
"f0adf3c0-1ce7-492a-a983-afada6010878",
"b5634175-9158-452c-a034-19941d164194"
]
},
{
"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": [
"f0adf3c0-1ce7-492a-a983-afada6010878",
"b5634175-9158-452c-a034-19941d164194"
]
}
],
"quote": {
"price": {
"currency": "INR",
"value": "895.00"
},
"breakup": [
{
"@ondc/org/item_id": "id_ancc5_0_0",
"title": "Farmhouse Pizza",
"@ondc/org/item_quantity": {
"count": 2
},
"@ondc/org/title_type": "item",
"price": {
"currency": "INR",
"value": "530.00"
},
"item": {
"quantity": {
"available": {
"count": "99"
},
"maximum": {
"count": "99"
}
},
"price": {
"currency": "INR",
"value": "265"
},
"parent_item_id": "P3121",
"tags": [
{
"code": "veg_nonveg",
"list": [
{
"code": "veg",
"value": "yes"
}
]
},
{
"code": "type",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "custom_group",
"list": [
{
"code": "id",
"value": "CG11"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.50"
}
]
}
]
}
},
{
"@ondc/org/item_id": "id_5yzai_2_0",
"title": "100% Wheat Thin Crust",
"@ondc/org/item_quantity": {
"count": 2
},
"@ondc/org/title_type": "item",
"price": {
"currency": "INR",
"value": "0.00"
},
"item": {
"quantity": {
"available": {
"count": "99"
},
"maximum": {
"count": "99"
}
},
"price": {
"currency": "INR",
"value": "0"
},
"parent_item_id": "P3121",
"tags": [
{
"code": "veg_nonveg",
"list": [
{
"code": "veg",
"value": "yes"
}
]
},
{
"code": "type",
"list": [
{
"code": "type",
"value": "customization"
}
]
},
{
"code": "parent",
"list": [
{
"code": "id",
"value": "CG11"
},
{
"code": "default",
"value": "yes"
}
]
},
{
"code": "child",
"list": [
{
"code": "id",
"value": "CG21"
}
]
}
]
}
},
{
"@ondc/org/item_id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"title": "Delivery charges",
"@ondc/org/title_type": "delivery",
"price": {
"currency": "INR",
"value": "40"
}
},
{
"@ondc/org/item_id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "fulfillment"
},
{
"code": "subtype",
"value": "delivery"
}
]
}
]
}
},
{
"@ondc/org/item_id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"title": "Convenience Fee",
"@ondc/org/title_type": "misc",
"price": {
"currency": "INR",
"value": "40"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "1"
},
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.50"
}
]
}
]
}
},
{
"@ondc/org/item_id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"title": "Convenience Fee",
"@ondc/org/title_type": "misc",
"price": {
"currency": "INR",
"value": "40"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "2"
},
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.75"
}
]
}
]
}
},
{
"@ondc/org/item_id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
},
{
"code": "subtype",
"value": "misc"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "1"
}
]
}
]
}
},
{
"@ondc/org/item_id": "f0adf3c0-1ce7-492a-a983-afada6010878",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
},
{
"code": "subtype",
"value": "misc"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "2"
}
]
}
]
}
},
{
"@ondc/org/item_id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"title": "Delivery charges",
"@ondc/org/title_type": "delivery",
"price": {
"currency": "INR",
"value": "0"
}
},
{
"@ondc/org/item_id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"title": "Packing charges",
"@ondc/org/title_type": "packing",
"price": {
"currency": "INR",
"value": "25"
}
},
{
"@ondc/org/item_id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
},
{
"code": "subtype",
"value": "misc"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "1"
}
]
}
]
}
},
{
"@ondc/org/item_id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
},
{
"code": "subtype",
"value": "misc"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "2"
}
]
}
]
}
},
{
"@ondc/org/item_id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"title": "Convenience Fee",
"@ondc/org/title_type": "misc",
"price": {
"currency": "INR",
"value": "40"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "1"
},
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.50"
}
]
}
]
}
},
{
"@ondc/org/item_id": "60e58daa-9c69-445a-8a31-ae3ef14913ab",
"title": "Convenience Fee",
"@ondc/org/title_type": "misc",
"price": {
"currency": "INR",
"value": "40"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "2"
},
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.75"
}
]
}
]
}
},
{
"@ondc/org/item_id": "99678890-4935-4407-a4e8-d65691220789",
"title": "Delivery charges",
"@ondc/org/title_type": "delivery",
"price": {
"currency": "INR",
"value": "0"
}
},
{
"@ondc/org/item_id": "99678890-4935-4407-a4e8-d65691220789",
"title": "Packing charges",
"@ondc/org/title_type": "packing",
"price": {
"currency": "INR",
"value": "25"
}
},
{
"@ondc/org/item_id": "99678890-4935-4407-a4e8-d65691220789",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
},
{
"code": "subtype",
"value": "misc"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "1"
}
]
}
]
}
},
{
"@ondc/org/item_id": "99678890-4935-4407-a4e8-d65691220789",
"title": "Tax",
"@ondc/org/title_type": "tax",
"price": {
"currency": "INR",
"value": "5"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
},
{
"code": "subtype",
"value": "misc"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "2"
}
]
}
]
}
},
{
"@ondc/org/item_id": "99678890-4935-4407-a4e8-d65691220789",
"title": "Convenience Fee",
"@ondc/org/title_type": "misc",
"price": {
"currency": "INR",
"value": "40"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "1"
},
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.50"
}
]
}
]
}
},
{
"@ondc/org/item_id": "99678890-4935-4407-a4e8-d65691220789",
"title": "Convenience Fee",
"@ondc/org/title_type": "misc",
"price": {
"currency": "INR",
"value": "40"
},
"item": {
"tags": [
{
"code": "quote",
"list": [
{
"code": "type",
"value": "item"
}
]
},
{
"code": "np_fees",
"list": [
{
"code": "id",
"value": "2"
},
{
"code": "channel_margin_type",
"value": "percent"
},
{
"code": "channel_margin_value",
"value": "0.75"
}
]
}
]
}
}
],
"ttl": "PT6H"
},
"provider": {
"id": "pramaan_provider_1",
"locations": [
{
"id": "SSL1"
}
]
}
}
}
}'
Response Response Example
{}
Request
Body Params application/json