List available products
GET
/v1/subscriptions/{id}/available-products
Lists the products that are not yet in the subscription and can be added to it, already filtered by the subscription's frequency.
The format of each item depends on the subscription's origin:
- Subscriptions of Shopify products — one item per product, with the list
of
variantscompatible with the subscription's cadence.qis effectively required: without a search term the response comes back empty. - Subscriptions of internal Appmax products — a simple list of
active store products (
product_id,name,price,sku), up to 30 items. Withoutq, it returns the first products in alphabetical order.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Parameters
Path Parameters
id*
Subscription identifier.
Type
Requiredinteger
Example
10Query Parameters
q
Search term by product name or SKU. For Shopify subscriptions, without this parameter the response comes back empty.
Type
string
Example
"camiseta"Responses
Available products returned successfully.
application/json
JSON "data": { "products": [ { "shopify_product_id": "123", "title": "Camiseta Branca", "variants": [ { "shopify_variant_id": "456", "title": "Mensal", "price": "189.90", "sku": "SKU-2", "interval": "month", "interval_count": 1 } ] } ] }
{
}
GET
/v1/subscriptions/{id}/available-products