Search for services by intent
The BAP will send the search intent to the BPP for services
/search
POST
Field | Type |
---|---|
context* | [Context]() |
message | { [Intent]() } |
{
"context": {
"domain": "nic2004:52110",
"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" : {
"item": {
"descriptor" : {
"name" : "Green apple"
}
},
"fulfillment": {
"end" : {
"location" : {
"gps" : "12.4535445,77.9283792"
}
}
}
}
}
}
The above search intent searches for Green apples to be delivered to the location specified by the GPS co-ordinates 12.4535445,77.9283792
Field | Type |
---|---|
message* | { [Ack]() } |
error | [Error]() |
{
"message": {
"ack": {
"status": "ACK"
}
}
}
Acknowldegement response
Code | Description |
---|---|
200 | Acknowledgement of message received |