Create discount

Creates a product discount and returns it.

  • Send value_type with a percentage discount. It defaults to amount_type, so a percentage alone fails.
  • 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