Create Category
curl --request POST \
--url https://{cluster}.voucherify.io/v1/categories \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Eighth",
"hierarchy": 8
}
'{
"id": "cat_0b8b5a427a0283c854",
"name": "Eighth",
"hierarchy": 8,
"created_at": "2022-08-16T11:45:54.171Z",
"object": "category"
}Create Category
Create category with a specific name and hierarchy.
POST
/
v1
/
categories
Create Category
curl --request POST \
--url https://{cluster}.voucherify.io/v1/categories \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Eighth",
"hierarchy": 8
}
'{
"id": "cat_0b8b5a427a0283c854",
"name": "Eighth",
"hierarchy": 8,
"created_at": "2022-08-16T11:45:54.171Z",
"object": "category"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Body
application/json
Specify the details of the category that you would like to create.
Response
Returns a newly created category object.
Response body schema for POST v1/categories.

