Creates a quote collection containing at most one quote that can be used to reverse a payment.
The receiver can make this request while the payment is in states EXECUTED, COMPLETED, or FAILED. When the returned payment is successfully moved to the COMPLETED state, the original payment is moved to the RETURNED state.
Note: Currently, when making a Reversal Payment to a RippleNet Cloud account on a RippleNet ledger, the RippleNet user must lock and complete the payment. This means that the RippleNet user takes all action on the reverse: Get and Accept Quote, Lock, Settle, and Complete payment.
Security
Bearer
- Mock serverhttps://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/quote_collections/reversal
- https://[domainPrefix].ripplexcurrent.com/v4https://[domainPrefix].ripplexcurrent.com/v4/quote_collections/reversal
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/quote_collections/reversal \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"original_payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
"reversal_reason": {
"code": "RB001",
"description": "No account / Unable to locate account"
}
}'Successfully returned a collection of quotes to return a payment.
Unique identifier of the quote collection.
Example:"4711728c-cd35-49ec-96a5-72732b4333ec"
Response
{ "quote_collection_id": "4711728c-cd35-49ec-96a5-72732b4333ec", "quotes": [ { … } ], "quote_errors": [ { … } ] }