Search
Search for services by pick up and drop location
Overview
The BAP will send the search intent to the BPP for services
Request
URL
/search
Method
POST
Request Body Schema
Field | Type |
---|---|
context* | ContextForSearch |
message | MessageForSearch |
Request Body Example
{
"context": {
"domain": "nic2004:55204",
"country": "IND",
"city": "std:080",
"action": "search",
"core_version": "0.9.1",
"bap_id": "https://mock_bap.com/",
"bap_uri": "https://mock_bap.com/beckn/",
"transaction_id": "1209849124",
"message_id": "12341242342",
"timestamp": "2021-03-23T10:00:40.065Z"
},
"message": {
"intent" : {
"fulfillment": {
"start" : {
"location" : {
"gps" : "12.9349377,77.6055586"
}
},
"end" : {
"location" : {
"gps" : "12.4535445,77.9283792"
}
}
}
}
}
}
The above search intent searches for logistics options to be delivered to the location specified by the GPS co-ordinates 12.9349377,77.6055586 to 12.4535445,77.9283792
Response
Response Body Schema
Field | Type |
---|---|
message* | { Ack } |
error | Error |
Response Body Example
{
"message": {
"ack": {
"status": "ACK"
}
}
}
Acknowledgement response
Response Codes
Code | Description |
---|---|
200 | Acknowledgement of message received |