Skip to main content
POST
/
refunds
Create refund
curl --request POST \
  --url https://api.crevio.co/v1/refunds \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order": "<string>",
  "amount": 123,
  "reason": "<string>",
  "notes": "<string>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "amount": 123,
  "currency": "<string>",
  "reason": "<string>",
  "status": "<string>",
  "created_at": "<string>",
  "provider": "<string>",
  "metadata": {},
  "order": "<string>"
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Body

application/json
order
string

Order ID to refund

amount
integer | null

Amount to refund in cents (omit for full refund)

reason
string | null

Reason for the refund

notes
string | null

Internal notes about the refund

Response

Refund created

id
string
required
object
string
required
amount
integer
required
currency
string
required
reason
string
required
status
string
required
created_at
string
required
provider
string
required
metadata
object
required
order
string
required