Retrieve the program details
GEThttps://api.freemius.com/v1/products/{product_id}/aff.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.
- Go to the Freemius Developer Dashboard.
- Open the Settings page of the relevant product.
- Click the API & Keys tab.
- Copy the API Bearer Authorization Token from the UI.
Retrieves the product's affiliation program details.
Request
Responses
- 200
- 400
- 401
- 402
- 404
The retrieved product affiliate program details.
Schema
The number of days the affiliate will get paid for all renewals after the initial upgrade/purchase. 0 for only the first payment, and null for all renewals. For greater than 0, affiliate will get paid for all renewals x commission_renewals_days days after the initial upgrade/purchase.
Whether to show the affiliation program only to users who are already affiliates of the product. If true, the affiliation program will be hidden from users who are not affiliates of the product.
Bad request. The request could not be understood by the server due to malformed syntax or arguments.
Schema
Unauthorized access error. The request requires authentication but was not provided or the provided authentication does not satisfy the required permissions.
Schema
The request is missing the specified argument.
Schema
The requested resource was not found.