imprint). Designs can be listed, retrieved, and renamed, and their products retrieved through the API. Designs are the recommended way to work with swag. See the Designs overview for details.
A Base Product is a swag template - the unbranded item from which branded swag is made (e.g. “standard cotton t-shirt”).
A Base Variant is a specific version of a Base Product (e.g. “Standard cotton t-shirt, Medium, Navy”).
Base Product + Design = orderable swag item. When a Base Product is added to one of your Designs, Snappy creates a swag product - a standard Product in the swag catalog, with Variants you can order:
The Design Object
A Design’s products are standard Product objects with their Variants, returned by
GET /v3/swag/designs/{designId}/products. Each one also includes baseProductId - the ID of the Base Product it was made from, which you can look up with GET /v3/swag/base-products/{baseProductId}.
The Base Product Object
The Base Variant Object
A Base Variant represents a specific version of a Base Product. Base Variants are templates and can’t be ordered - to order swag, use the Variant of a swag product.Key Concepts & Business Rules
Swag endpoints vs standard Products
V3 exposes these related endpoint families:
Base Products and standard Products use different response schemas and are not interchangeable.
From Design to order
- Pick a Design -
GET /v3/swag/designs. - Get its products -
GET /v3/swag/designs/{designId}/products. Each is a standard Product with Variants. - Order a Variant -
POST /v3/orderswith the Variant’s ID asvariantId. Nothing design-specific is needed in the order.
Creating designs and adding products
Designs are created in the Snappy Dashboard, where you also add Base Products to them. Use the Base Products endpoints to see which items can be added.Coming soon:
- Design tags - label each Design, for example to attribute it to one of your clients if you serve several.
- Create designs through the API - a new endpoint to create Designs programmatically.
Pagination
Base Product, Base Variant, and Design list endpoints use page-number pagination (page[number], page[size]):
See Request & Response Standards for the full V3 pagination contract.
Filtering
The Base Product list endpoint supports these JSON:API-style filters:filter[brandId]- comma-separated brand IDsfilter[brandName]- case-insensitive brand name searchfilter[tagId]- comma-separated tag UUIDsfilter[title]- case-insensitive title searchfilter[id]- comma-separated Base Product UUIDsfilter[color]- comma-separated color titlesfilter[size]- comma-separated size titlesfilter[printingTechnique]- comma-separated printing-technique names
400.
The Design list endpoint supports these filters:
filter[search]- case-insensitive search on the design name
sort is not supported. Unknown query parameters return 400.
Location
All Base Product and Base Variant requests require a supported ISO 3166-1 alpha-2location query parameter.
Account scoping
All Base Product, Base Variant, and Design requests require theSnappy-Account-Id header. An unknown account returns 404.
Design availability
Only designs that are ready are returned. A design that is still being generated is not listed and responds with404 on get and rename.
Renaming a design
Onlyname can be changed. It is trimmed and must be 1-100 characters. Any other body field (for example imprint) returns 400. Design names are unique within the company: renaming a design to a name another design already uses returns 409.
Permissions
All Base Product and Base Variant endpoints require theproducts:read scope on your API key. Design read endpoints require the swag:designs:read scope, and renaming a design requires swag:designs:update.
How to Work with Swag
List designsbaseProductId - the Base Product each one was made from. Order a Variant through POST /v3/orders.
Rename a design
404 if the design does not exist, 409 if the name is already used by another design in the company.
List base products
include=brand,tags for related entities and fields=options,printingTechnique for expanded fields.
Get a single base product
include and fields expansions as the list endpoint.
List base variants for a base product
include or fields.
Get a single base variant
include or fields.