Skip to main content

Clone pricing to other currency

POST 

https://api.freemius.com/v1/products/{product_id}/plans/{plan_id}/pricing/clone.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.

Create new pricing in a specified currency from an existing one.

Request

Path Parameters

    product_id integer<int64>required

    The ID of the product.

    Possible values: >= 1

    Example: 1234
    plan_id integer<int64>required

    The ID of the plan.

    Possible values: >= 1

    Example: 1234

Bodyrequired

    to_currencystring

    The currency of the pricing to be created.

    Possible values: [eur, usd, gbp]

    Example: eur
    from_currencystring
    Default value: usd

    The currency of the pricing to clone.

    Possible values: [eur, usd, gbp]

Responses

New pricing for the currency created.

Schema
pricing 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
    currencystring

    3-char currency code.

    Possible values: >= 3 characters and <= 3 characters, [usd, eur, gbp]

    plan_idstring<int64>

    The ID of the plan.

    Possible values: >= 1

    Example: 1234
    licensesintegernullable

    The number of activations or quota supported by the license that will be created through the pricing (Using Freemius Checkout). Use null for unlimited activations or quota.

    Example: 10
    monthly_pricenumber<float>nullable

    The price for a single month.

    Example: 59.99
    annual_pricenumber<float>nullable

    The price for one year.

    Example: 159.99
    lifetime_pricenumber<float>nullable

    The lifetime price.

    Example: 359.99
    is_whitelabeledboolean

    Whether to whitelabel the license that will be created from this pricing upon successful Checkout.

    is_hiddenboolean

    Whether to hide the pricing from checkout and the pricing page in the WP dashboard.

  • ]
  • 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