KashierDevelopersKashier Developers

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
Authorization<token>

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

POST
/v2/products