On_Rating
Provide feedback on a service
Overview
The BPP will send the feecback object to the BAP.
Request
URL
/on_rating
Method
POST
Request Body Schema
Field | Type |
---|---|
context* | ContextForOn_rating |
message | MessageForOn_rating |
error | Error |
Request Body Example
{
"context": {
"domain": "nic2004:60221",
"country": "IND",
"city": "std:080",
"action": "on_rating",
"bap_id": "https://mock_bap.com/",
"bap_uri": "https://mock_bap.com/beckn/",
"bpp_id": "https://mock_bpp.com/",
"bpp_uri": "https://mock_bpp.com/beckn/",
"transaction_id": "1209849124",
"message_id": "12341242343",
"timestamp": "2021-03-23T10:00:40.065Z"
},
"message": {
"feedback": {
"id": "trip_1",
"descriptor": "https://feedback.mock_bpp.com/pooja-stores?id=trip_1",
"parent_id": "yellow-cabs"
}
}
}
The feedback object is returned to the BAP
Response
Response Body Schema
Field | Type |
---|---|
message* | { Ack } |
error | Error |
Response Body Example
{
"message": {
"ack": {
"status": "ACK"
}
}
}
Acknowldegement response
Response Codes
Code | Description |
---|---|
200 | Acknowledgement of message received |