This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
curl --location --request POST 'http://127.0.0.1:3658/m1/543334-505232-default/admin/payments//refund' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 0,
"reason": "string",
"note": "string"
}'
{
"refund": {
"id": "ref_01G1G5V27GYX4QXNARRQCW1N8T",
"order_id": "order_01G8TJSYT9M6AVS5N4EMNFS1EK",
"order": {},
"payment_id": "pay_01G8ZCC5W42ZNY842124G7P5R9",
"payment": {},
"amount": 1000,
"note": "I didn't like it",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"reason": "discount",
"idempotency_key": "string",
"metadata": {
"car": "white"
}
}
}