メインコンテンツへスキップ
POST
/
v1
/
payments
/
{id}
/
refund
返金
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
}

Authorizations

Authorization
string
header
required

アクセストークンを使用したBearer認証

Path Parameters

id
string
required

トランザクションID

Example:

"tx_abc123"

Body

application/json
amount
integer
required

返金金額

Example:

500

reason
string

返金理由

Example:

"お客様都合"

Response

返金成功

id
string

返金ID

Example:

"orf_xyz789"

transaction_id
string

トランザクションID

Example:

"tx_abc123"

amount
integer

返金金額

Example:

500

status
string

返金ステータス

Example:

"succeeded"

psp_refund_id
string

PSP側の返金ID

Example:

"re_xxxxx"

refund_fee
integer

返金手数料

Example:

100