Menu
Create Category
Create Category
POST
/v1/categoriesUse it in a workflow
- Add a step and choose the Voucherify connector.
- Pick the Create Category action (under Categories).
- Fill in the fields below, then reference the result from later steps as
{{createCategory.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"name": "string",
"hierarchy": 0
}
Response
Returns 200 with an object. Read it in later steps with {{createCategory.response.data.<field>}}.
{
"id": "string",
"name": "string",
"hierarchy": 0,
"object": "category",
"created_at": "2022-07-14T10:45:13.156Z"
}
Need more? See the Voucherify guide for connection setup and behaviour shared by every action.
Was this page helpful?