Snappy-Account-Id header, scoping requests to a specific account’s swag configuration.
Prerequisites
- A Snappy account with swag enabled
- An API key with
products:readandcollections:readscopes - The
accountIdfor the account whose swag you’re accessing
The Snappy-Account-Id header
Every swag API call must include:Three endpoints
1. List Swag collections
Retrieve collections tagged as swag to discover what’s available for your account.JavaScript
2. List products in a Swag collection
Once you have a collection ID, fetch its products with the swag catalog filter:JavaScript
3. List all Swag products (across collections)
To fetch all swag products without filtering by collection:Python
Swag base products (coming soon)
Snappy is adding a Base Products API for swag that exposes the underlying product catalog before account-specific configuration is applied. This is useful for building swag configurators and admin tooling. See the API Reference for the current spec.Common pitfalls
Related
- Real-Time Catalog Access — standard marketplace catalog pattern
- Place Orders — placing swag orders (also requires
Snappy-Account-Id)