09 - Submit ratings from the buyer's perspective to the network - /rating
Developing
POST
/rating
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/rating' \
--header 'Content-Type: application/json' \
--data-raw '{
"context": {
"domain": "ONDC:RET11",
"country": "IND",
"city": "std:0124",
"core_version": "1.2.5",
"action": "rating",
"transaction_id": "{{transaction_id}}",
"message_id": "{{message_id}}",
"timestamp": "{{timestamp}}",
"bap_uri": "{{bap_uri}}",
"bap_id": "{{bap_id}}",
"ttl": "PT30S"
},
"message": {
"ratings": [
{
"rating_category": "ITEM",
"id": "id_ancc5_0_0",
"value": "2"
},
{
"rating_category": "PROVIDER",
"id": "pramaan_provider_1",
"value": "2"
}
]
}
}'
Response Response Example
{}
Request
Body Params application/json