younifyd
Menu

Create Category

Create Category

POST/v1/categories

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Create Category action (under Categories).
  3. 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.

namestring

Category name.

hierarchyinteger

Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.

json
{
  "name": "string",
  "hierarchy": 0
}

Response

Returns 200 with an object. Read it in later steps with {{createCategory.response.data.<field>}}.

idstring

Unique category ID assigned by Voucherify.

namestring

Category name.

hierarchyinteger

Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.

objectstring

One ofcategoryDefault "category"

created_atstring (date-time)

Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.

json
{
  "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.