Create discount

Creates a product discount and returns it.

  • value_type is optional. If you leave it out, BillPro sets it from the field you send: amount makes an amount_type discount, percentage a percentage_type one. Send only one of the two.
  • A discount comes off the line before tax is taken out, so it lowers the tax as well as the total.
  • On recurring orders, the product's discount_for_initial_payment_only setting decides whether the discount applies to the first payment only.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
≥ 1

Your merchant profile ID. Required in every request.

Find it in the BillPro dashboard address, after /profiles/. For example, in /profiles/1234/orders the profile ID is 1234.

Body Params
product_discount
object
required
Responses

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