API reference and playgroundCategories
Get a category
curl -X GET "https://test-api.kashier.io/v2/category/string"{ "body": { "_id": "string", "name": "string", "description": "string", "merchantId": "string", "createdByUserId": "string", "createdAt": "string", "updatedAt": "string" }, "message": "string"}Retrieves a single category by its record id.
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 category's record id.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Create a category POST
Creates a product category. A category only needs a name; products are filed into it afterwards with assignProductCategories or changeProductCategories.
Delete a category DELETE
Deletes a category. Products that were filed into it stay in the catalogue — only the grouping goes away.