API reference and playgroundProducts
Update a product
curl -X PUT "https://test-api.kashier.io/v2/products/string" \ -H "Content-Type: application/json" \ -d '{ "productName": "Premium Widget", "unitPrice": 110, "quantity": 150 }'{ "data": { "_id": "string", "merchantId": "string", "name": "string", "sku": "string", "price": 0, "currency": "string", "description": "string", "image": "string", "status": "string", "createdAt": "string", "updatedAt": "string" }}Updates an existing product. Send only the fields you want to change — anything you leave out keeps its current value, so this is safe to call from an ERP that only knows about price and stock movements.
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
Path Parameters
id*string
The product's record id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The fields to change on a product. Anything you leave out keeps its current value.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json