Skip to main content

Get Coupons

GET 

/coupon/{type?}

Returns Coupons of the requested Company. When the Company has no Coupons an empty array will be returned.

Request

Path Parameters

    type string

    Possible values: [trashed, justtrashed, normal]

    Default value: normal

    How to handle soft deleted ("archived") Coupons.

    "normal"
    Returns all the Coupons, except those which are soft deleted.
    "trashed"
    Returns all the Coupons, including those which are soft deleted.
    "justtrashed"
    Returns only the Coupons which are soft deleted.

Responses

Coupons found.

Schema

  • Array [

  • name stringrequired

    Possible values: <= 255 characters

    The name of the Coupon.

    description string

    Possible values: <= 65535 characters

    The description for the Coupon.

    note string

    A note field for extra comments.

    type stringrequired

    Possible values: [cheque, fixed-discount, percentage-discount, new-price]

    The type of the Coupon.

    cheque:
    The Coupon starts at the defined amount and each time it is used the amount will decrease, by the amount it is used.
    fixed-discount:
    The Coupon will apply a fixed discount in terms of money.
    percentage-discount:
    The Coupon will apply a discount percentagewise.
    new-price:
    The Coupon will put the price to the defined amount.

    start_date ISO 8601

    The start date of this Coupon. The start of the date range where it can be used (inclusive).

    end_date ISO 8601

    The end date of this Coupon. The end of the date range where it can be used (exclusive).

    status string

    Possible values: [enabled, disabled]

    Whether the Coupon is enabled. When the Coupon is enabled its CouponCodes can be used.

    amount floatrequired
    cheque:
    The total value of the CouponCode in cents. Can be used depending on usage count and applies to count.
    fixed-discount:
    The amount of discount that will be applied in cents.
    percentage-discount:
    The amount of discount that will be applied in percentages (ranges from 0.0 to 100.0).
    new-price:
    The amount to which the new price of the Order or Product Type will be set in cents.
  • ]

Loading...