discounts
public

Get Discount

Get a discount by ID.

Scopes: discounts:read discounts:write

get/v1/discounts/{id}

Path parameters

idstring uuid4 required

The discount ID.

The discount ID.

Response

Successful Response

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.4

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

      response-required-property-added

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

      response-required-property-added

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

      response-required-property-added

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

      response-required-property-added