discounts
public

Create Discount

Create a discount.

Scopes: discounts:write

post/v1/discounts/

Request body

OR

Example request

{
  "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}

Response

Discount created.

OR
OR
OR

Example response

{
  "amount": 1000,
  "currency": "usd",
  "amounts": {
    "eur": 900,
    "usd": 1000
  },
  "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}

Changes

Changed in 1 of the 11 revisions of this API.6

    • added the new optional request property oneOf[subschema #1: DiscountFixedCreate]/max_redemptions_per_customer

      new-optional-request-property

    • added the new optional request property oneOf[subschema #2: DiscountPercentageCreate]/max_redemptions_per_customer

      new-optional-request-property

    • added the required property oneOf[subschema #1: DiscountFixedOnceForeverDuration]/max_redemptions_per_customer to the response with the 201 status

      response-required-property-added

    • added the required property oneOf[subschema #2: DiscountFixedRepeatDuration]/max_redemptions_per_customer to the response with the 201 status

      response-required-property-added

    • added the required property oneOf[subschema #3: DiscountPercentageOnceForeverDuration]/max_redemptions_per_customer to the response with the 201 status

      response-required-property-added

    • added the required property oneOf[subschema #4: DiscountPercentageRepeatDuration]/max_redemptions_per_customer to the response with the 201 status

      response-required-property-added