Export products asynchronously
curl -X GET "https://test-api.kashier.io/v2/products/export-async"{ "data": { "taskId": "string", "status": "string", "email": "string" }}Exports the products matching the given filters without holding the request open. The workbook is generated in the background and emailed to email — or to the merchant account's own address when you leave it out — so the response only acknowledges the task.
Authorization
secretKey Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).
In: header
Query Parameters
Comma-separated product record ids, to export a specific set of products.
Include each product's variants.
Free-text search across product names.
Filter by stock status.
Value in
- "outOfStock"
- "available"
- "all"
Only export products priced in this currency.
Email address the finished export is sent to.
Field to sort by, for example creationDate.
Sorting direction: 1 = ascending, -1 = descending.
Value in
- 1
- -1
Response Body
application/json
application/json
application/json
application/json
application/json
Export products GET
Exports the products matching the given filters and returns the Excel workbook directly in the response. The filters are the same ones listProducts accepts. For a large catalogue use exportProducts…
Upload a product image POST
Uploads an image and returns the hosted URL for it. Upload the file first, then pass the returned URL as the product's image when you create or update it. Files must be under 5 MB.