Logoelepay
Refunds

Create refund

Processes a full or partial refund for a charge.

POST
/charges/{id}/refunds
Charge ID
Refund amount. You can refund the full amount, or refund any amount by specifying amount.
Currency code (ISO 4217)
length 3–3 · default: JPY
Refund metadata
Refund reason
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
}