Get list of discounts

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Time range from (inclusive). Local date and time (according to account timezone) on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm, yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:ss.SSS. Default from if no interval is given depends on the query. If the query limits on relation e.g. customer and/or subscription, the default from will be epoch 1970-01-01, otherwise one month before to

string

Time range to (exclusive). Local date and time (according to account timezone) on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm, yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:ss.SSS. Defaults to now.

string

Limit from to and interval back in time. E.g. one week. Will take precedence over from. Defined in ISO 8601 duration. See https://en.wikipedia.org/wiki/ISO_8601#Durations

int32
10 to 100
Defaults to 20

Page size between 10 and 100 (default 20)

string

Next page token from previous response to get next page

string
enum
Defaults to created

Time and date attribute for time limit. Can be created or deleted

Allowed:
string

Discount exact handle

string

Discount handle prefix

string
enum

State of discount. States: active or deleted

Allowed:
apply_to
array of strings
enum

Which order lines the discount is applicable to: all, setup_fee, plan, additional_cost, add_on, ondemand and metered_billing_product. Multiple can be defined.

string

Name of discount. Used as order line text.

string

Optional description of discount

string

Fixed amount discount deducted from order line amounts including VAT.

string

Percentage discount applied to each applicable order line.

string

Apply discount to a fixed number of invoices

currency
array of strings

Discount currency in ISO 4217 three letter alpha code. Multiple can be defined.

currency
Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json