Retrieve a cart
GEThttps://api.freemius.com/v1/products/{product_id}/carts/{cart_id}.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.
Retrieve cart details associated with the product.
You can use
enriched=trueto get more details about the cart, for example thegross,coupon_codeandlicensesfields will only be returned if enriched is enabled. Please see individual parameters in the response data below to learn more.
Request
Path Parameters
Query Parameters
Responses
- 200
- 400
- 401
- 402
Cart details associated with the product.
Schema
The mode the checkout app was opened in, when the cart was created. For example
dashboard: The checkout was opened through our WordPress SDK.dialog: The checkout was opened through our JavaScript SDK.page: The checkout was opened directly.
The ISO 3166-1 alpha 2 two-letter country code associated with the entity.
Cart supports recovery campaign. If disabled, the recovery campaign will be stopped.
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.