Skip to main content
POST
/
v1
/
refunds
/
payment
/
{paymentId}
Create a refund
curl --request POST \
  --url https://revstack.dev/v1/refunds/payment/{paymentId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 1,
  "reason": "<string>",
  "idempotencyKey": "<string>"
}
'
null

Path Parameters

paymentId
string
required
Example:

"pay_abc123"

Body

application/json
amount
number
required
Required range: x > 0
reason
string
idempotencyKey
string

Response

Refund created

The response is of type unknown.