Skip to main content

Update or create billing

PUT 

https://api.freemius.com/v1/products/{product_id}/users/{user_id}/billing.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.

Update or create the billing information for a user.

Request

Path Parameters

    product_id integer<int64>required

    The ID of the product.

    Possible values: >= 1

    Example: 1234
    user_id integer<int64>required

    The ID of the User.

    Possible values: >= 1

    Example: 1234

Bodyrequired

    business_namestring

    The name of the business.

    Example: Freemius, Inc.
    firststring

    The first name used in the billing.

    Example: John
    laststring

    The last name used in the billing.

    Example: Doe
    emailstring

    The email used in the billing.

    phonestring

    The phone number used in the billing.

    Example: 555-555-5555
    websitestring

    The website used in the billing.

    Example: https://freemius.com
    tax_idstring

    The business VAT number (EU or UK territories) or other tax ID (for example Sales Tax ID for the US).

    Example: GB123456789
    address_streetstring

    The street address used in the billing.

    Example: 21st Jump Street
    address_aptstring

    The street address 2 used in the billing.

    Example: Block II
    address_citystring

    The city used in the billing.

    Example: Atlanta
    address_countrystring

    The country used in the billing.

    Example: United States
    address_country_codestring

    The ISO 3166-1 alpha 2 two-letter country code associated with the entity.

    Example: us
    address_statestring

    The state of the location.

    Example: New York
    address_zipstring

    ZIP or postal code.

    Example: 00001

Responses

Billing information updated.

Schema
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
business_namestring

The name of the business.

Example: Freemius, Inc.
firststring

The first name used in the billing.

Example: John
laststring

The last name used in the billing.

Example: Doe
emailstring

The email used in the billing.

phonestring

The phone number used in the billing.

Example: 555-555-5555
websitestring

The website used in the billing.

Example: https://freemius.com
tax_idstring

The business VAT number (EU or UK territories) or other tax ID (for example Sales Tax ID for the US).

Example: GB123456789
address_streetstring

The street address used in the billing.

Example: 21st Jump Street
address_aptstring

The street address 2 used in the billing.

Example: Block II
address_citystring

The city used in the billing.

Example: Atlanta
address_countrystring

The country used in the billing.

Example: United States
address_country_codestring

The ISO 3166-1 alpha 2 two-letter country code associated with the entity.

Example: us
address_statestring

The state of the location.

Example: New York
address_zipstring

ZIP or postal code.

Example: 00001
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