Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
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 with a specific name and hierarchy.
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"
}Documentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
Specify the details of the category that you would like to create.
Returns a newly created category object.
Response body schema for POST v1/categories.
Unique category ID assigned by Voucherify.
Category name.
Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.
x >= 0category Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.
"2022-07-14T10:45:13.156Z"
Was this page helpful?