Logoelepay
Refunds

Create refund

決済の全額あるいは一部の返金処理を行います。

POST
/charges/{id}/refunds
Charge ID
返金額。全額返金、及び amount の指定で任意の金額で返金ができます。
通貨コード (ISO_4217)
length 3–3 · default: JPY
返金メタデータ
返金理由
length ≤ 255

Response Body

application/json

Created

TypeScript Definitions

Use the response body type in TypeScript.

curl -X POST "https://api.elepay.io/charges/string/refunds" \  -H "Content-Type: application/json" \  -d '{    "amount": 0  }'
{
  "id": "string",
  "object": "refund",
  "chargeId": "string",
  "liveMode": true,
  "amount": 0,
  "currency": "str",
  "metadata": {},
  "reason": "string",
  "status": "pending",
  "refundedTime": 0,
  "createTime": 0
}