Skip to main content
POST
/
discount
Apply a discount to a subscription
curl --request POST \
  --url https://billing.funnelfox.com/{org_id}/v1/discount \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "",
  "comment": "",
  "external_id": "<string>",
  "subs_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "percent": 50,
  "count_of_iterations": 1
}'
{}

Path Parameters

org_id
string
required

Organization ID

Body

application/json
external_id
string
required

Your unique identifier for the user

Maximum length: 256
subs_id
string<uuid>
required
percent
integer
required
Required range: 1 <= x <= 99
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
count_of_iterations
integer | null
Required range: x > 0

Response

200 - application/json

The response is of type object.

I