12 - RSF - Send settlement file to Settlement agency (For prepaid orders) - /on_settle
Developing
POST
/settle
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/settle' \
--header 'Content-Type: application/json' \
--data-raw '{
"context": {
"domain": "ONDC:NTS10",
"country": "IND",
"city": "std:0124",
"version": "2.0.0",
"action": "settle",
"transaction_id": "{{transaction_id}}",
"message_id": "{{message_id}}",
"timestamp": "{{timestamp}}",
"bap_uri": "{{bap_uri}}",
"bap_id": "{{bap_id}}",
"ttl": "P1D"
},
"message": {
"collector_app_id": "collectorapp.com",
"receiver_app_id": "receiverapp.com",
"settlement": {
"type": "NP-NP",
"id": "settlement-id-abc",
"orders": [
{
"id": "ordr-123456",
"inter_participant": {
"amount": {
"currency": "INR",
"value": "1000.00"
}
},
"collector": {
"amount": {
"currency": "INR",
"value": "50.00"
}
},
"self": {
"amount": {
"currency": "INR",
"value": "50.00"
}
}
}
]
}
}
}'
Response Response Example
{}
Request
Body Params application/json