Skip to main content

Retrieve special coupons

GET 

https://api.freemius.com/v1/products/{product_id}/coupons/special.json

Auth:Bearer TokenSCOPE: PRODUCT

Product-scoped API tokens allow you to operate on the product itself. This token usually allows read-only access to the product configuration and write access to several operations on subscriptions, customers, payments, and more. For most SaaS or app integrations, this is the token you will need.

  1. Go to the Freemius Developer Dashboard.
  2. Open the Settings page of the relevant product.
  3. Click the API & Keys tab.
  4. Copy the API Bearer Authorization Token from the UI.

Get the details of a special coupon. *

Searching and filtering

You can use filtering to search for a particular coupon or a group of coupons by type.

Request

Path Parameters

    product_id integer<int64>required

    The ID of the product.

    Possible values: >= 1

    Example: 1234

Query Parameters

    type string

    Filter based on a coupon type.

    Possible values: [affiliate, renewals_discount, manual_renewals_discount, subscription_cancellation, cart_recovery, exit_intent]

Responses

The special coupons details.

Schema
coupon_entities object[]
  • Array [
  • idstring<int64>

    The unique identifier of the entity.

    Possible values: >= 1

    Example: 123456
    createdstring<date-time>

    The date and time the entity was created, under UTC timezone.

    Example: 2025-01-01 00:00:00
    updatedstring<date-time>nullable

    The date and time the entity was updated, under UTC timezone. If null then the entity was never updated since its creation.

    Example: 2025-01-01 00:00:00
    coupon_idnumber

    The ID of the coupon.

    Example: 12345
    entity_idstring<int64>

    The ID of the entity.

    Possible values: >= 1

    Example: 12345
    entity_typeinteger

    The type of the entity (Usually 2 which means it is a product or 20 which means it is an affiliate).

    Example: 2
    typestring

    The special coupon type.

    Possible values: [affiliate, renewals_discount, manual_renewals_discount, subscription_cancellation, cart_recovery, exit_intent]

    codestring

    The coupon code.

    Example: BLACKFRIDAY2024
    redemptionsinteger

    The total number of redemptions of this coupon.

    discountinteger

    The discount amount.

    discount_typestring

    The type of the discount. "percentage" means the discount is a percentage of the price, "dollar" means the discount is a fixed amount.

    Possible values: [dollar, percentage]

    discounts object

    The discount amount for each currency

    property name*number<int>
    has_renewals_discountboolean

    Whether the coupon also supports discount for renewals or first payment only.

  • ]
  • We use essential cookies to enable our site to function. With your consent, we also use analytics and advertising cookies to understand how visitors interact with our site and to improve our services.
    Learn More