curl --request POST \
--url http://localhost:55001/api/payments/v3/payment-initiations/{paymentInitiationID}/reverse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reference": "<string>",
"description": "<string>",
"amount": 123,
"asset": "<string>",
"metadata": {}
}'
{
"data": {
"taskID": "<string>",
"paymentInitiationReversalID": "<string>"
}
}
curl --request POST \
--url http://localhost:55001/api/payments/v3/payment-initiations/{paymentInitiationID}/reverse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reference": "<string>",
"description": "<string>",
"amount": 123,
"asset": "<string>",
"metadata": {}
}'
{
"data": {
"taskID": "<string>",
"paymentInitiationReversalID": "<string>"
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
The payment initiation ID
Accepted
The response is of type object
.