日本語
cURL
curl --request POST \ --url https://api.sandbox.zafapay.com/v1/payments/{id}/refund \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount": 500, "reason": "お客様都合" } '
{ "id": "orf_xyz789", "transaction_id": "tx_abc123", "amount": 500, "status": "succeeded", "psp_refund_id": "re_xxxxx", "refund_fee": 100 }
完了済みの決済を返金します
アクセストークンを使用したBearer認証
トランザクションID
"tx_abc123"
返金金額
500
返金理由
"お客様都合"
返金成功
返金ID
"orf_xyz789"
返金ステータス
"succeeded"
PSP側の返金ID
"re_xxxxx"
返金手数料
100