The POST /refunds/{id} call allows your platform to update and add custom data to a refund. Refunds facilitate the return of money from the merchant to the payer.
INVALID_PARAMS
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "custom_data": {
- "order_id": 34211134828443
}, - "reference_id": "reference_id_0"
}
{- "amounts": {
- "total_amount": 100,
- "currency": "USD",
- "fee_refund_amount": 0
}, - "create_time": 1509140695,
- "custom_data": {
- "order_id": 34211134828443
}, - "failure_reason": null,
- "id": "021f2604-ef1e-4254-959b-54babd066830",
- "order": null,
- "owner": {
- "id": "40200612-e849-4172-8308-657cf3a0de27",
- "path": "/accounts/40200612-e849-4172-8308-657cf3a0de27",
- "resource": "accounts"
}, - "path": "/refunds/021f2604-ef1e-4254-959b-54babd066830",
- "payment": {
- "id": "18e72698-eb94-4418-bfff-e4280d55953b",
- "path": "/payments/18e72698-eb94-4418-bfff-e4280d55953b",
- "resource": "payments"
}, - "payment_method": {
- "id": "00000000-6363-0000-0000-0000c27db2f3",
- "path": "/payment_methods/00000000-6363-0000-0000-0000c27db2f3",
- "resource": "payment_methods"
}, - "pending_reasons": null,
- "refund_reason": "example refund reason",
- "resource": "refunds",
- "status": "completed",
- "txnr_app_fee_refund": null,
- "txnr_merchant_refund": {
- "id": "3afd82e3-714d-4c5d-a43b-6446ed6689cd",
- "path": "/transaction_records/3afd82e3-714d-4c5d-a43b-6446ed6689cd",
- "resource": "transaction_records"
}, - "api_version": "3.0",
- "reference_id": "reference_id_0"
}