KashierDevelopersKashier Developers

Create a category

curl -X POST "https://test-api.kashier.io/v2/category" \  -H "Content-Type: application/json" \  -d '{    "name": "Electronics"  }'
{  "body": {    "_id": "string",    "name": "string",    "description": "string",    "merchantId": "string",    "createdByUserId": "string",    "createdAt": "string",    "updatedAt": "string"  },  "message": "string"}

Creates a product category. A category only needs a name; products are filed into it afterwards with assignProductCategories or changeProductCategories.

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

application/json

POST
/v2/category