Skip to main content
POST
/
marketing
/
update-discount
Update discount
curl --request POST \
  --url https://demo.onlinebillingform.com/api/v2/marketing/update-discount \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "discount_id": 123,
  "minimum_value": 123,
  "discount_value": 123,
  "start": "2023-12-25",
  "type": 123,
  "uses": "<string>",
  "end": "2023-12-25",
  "selected_packages": "<string>"
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://www.billingserv.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <live_api_key>.

Body

discount_id
integer
required
minimum_value
number
required
discount_value
number
required
start
string<date>
required
type
integer
required

0 = percentage, 1 = fixed/code

recurring
enum<integer>
required
Available options:
0,
1
uses
string
required
end
string<date>
selected_packages
string

Response

OK

success
boolean