Create a product
curl -X POST "https://test-api.kashier.io/v2/products" \ -H "Content-Type: application/json" \ -d '{ "productName": "Premium Widget", "currency": "EGP", "unitPrice": 100, "isVariant": false, "quantity": 100 }'{ "data": { "_id": "string", "merchantId": "string", "name": "string", "sku": "string", "price": 0, "currency": "string", "description": "string", "image": "string", "status": "string", "createdAt": "string", "updatedAt": "string" }}Adds a single product to the catalogue. Only the name, currency, and unit price are required; set isVariant when the product is a variation of another item, and quantity when you want Kashier to track stock and mark the product out of stock once it runs out.
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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
List products GET
Retrieves the merchant's products. Every filter is optional — call it with no query at all to page through the whole catalogue, or narrow it down by category, stock status, currency, or a free-text…
Get a product GET
Retrieves a single product by its record id, including its description, image, price, and stock status.