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:
Parameter | Type | Example | Description |
---|---|---|---|
categories__in | <int>,<int>,...,<int> | 1, 12 | Comma separated list of categories ids |
id__in | <int>,<int>,...,<int> | 4144, 4146 | Comma separated list product ids |
Ordering
You can order Supplier Products using the ordering
query parameter. You can order via the following fields:
Field | Description |
---|---|
id | Supplier Product id |
created_at | Date and time the Supplier Product was created |
name | Supplier 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