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": 5.5, "reason": "お客様都合" } '
{ "id": "orf_xyz789", "transaction_id": "tx_abc123", "amount": "5.50", "status": "succeeded", "psp_refund_id": "re_xxxxx", "refund_fee": "1.00" }
完了済みの決済を返金します
アクセストークンを使用したBearer認証
トランザクションID
"tx_abc123"
返金金額(小数点以下2桁まで対応)。省略時は全額返金。
5.5
返金理由
"お客様都合"
返金成功
返金ID
"orf_xyz789"
返金金額(文字列形式)
"5.50"
返金ステータス
"succeeded"
PSP側の返金ID
"re_xxxxx"
返金手数料(文字列形式)
"1.00"