Skip to main content
POST
/
payment
/
refund
Refund an order
curl --request POST \
  --url https://billing.funnelfox.com/{org_id}/v1/payment/refund \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "",
  "comment": "",
  "external_id": "<string>",
  "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 123,
  "soft_refund": false
}'
{}

Path Parameters

org_id
string
required

Organization ID

Body

application/json
external_id
string
required

Your unique identifier for the user

Maximum length: 256
order_id
string<uuid>
required

Order ID (can include multiple transactions, fallbacks, and refunds)

reason
string
default:""

Short reason code (e.g., "duplicate_payment", "unauthorized_charge")

Maximum length: 256
comment
string
default:""

Human-readable comment or reference (e.g., support ticket link)

Maximum length: 2048
amount

Refund amount (omit for full refund)

soft_refund
boolean
default:false

Keep subscription active (true) or cancel it (false)

Response

200 - application/json

The response is of type object.

I