Update a category
curl -X PUT "https://test-api.kashier.io/v2/category/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Electronics and appliances" }'{ "data": { "_id": "string", "name": "string", "description": "string", "merchantId": "string", "createdByUserId": "string", "createdAt": "string", "updatedAt": "string" }}Renames an existing category. The products filed into it are left untouched.
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
Path Parameters
The category's record id.
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
application/json
Delete a category DELETE
Deletes a category. Products that were filed into it stay in the catalogue — only the grouping goes away.
List a merchant's categories (public) GET
Returns just the ids and names of a merchant's categories, with no pagination and no authentication. This is the lightweight read a storefront or a payment page uses to render a category picker, so…