Products
Supplier Products

Supplier product

A Supplier Product is a product in the catalog that can be used to create a Custom Product with a user-supplied design. The design is created in the Safsira Design Lab.

Getting Supplier Products

Supplier Products are accessible through the API on the following endpoint:

GET https://api.safsira.com/v1/supplier-products

You can also get a specific Supplier Product by id:

GET https://api.safsira.com/v1/supplier-products/{id}

Filtering

You can filter Supplier Products by the following parameters:

ParameterTypeExampleDescription
categories__in<int>,<int>,...,<int>1, 12Comma separated list of categories ids
id__in<int>,<int>,...,<int>4144, 4146Comma separated list product ids

Ordering

You can order Supplier Products using the ordering query parameter. You can order via the following fields:

FieldDescription
idSupplier Product id
created_atDate and time the Supplier Product was created
nameSupplier Product name

Example:

To filter products by the date they were created in descending order (newest first), you can use the following query parameter:

GET https://api.safsira.com/v1/supplier-products?ordering=-created_at

Search

You can search Supplier Products by name using the search query parameter. You can pass a string to search by. The search will be performed over the name field.

Example:

GET https://api.safsira.com/v1/supplier-products?search=Christmas