---
title: "Create Category"
method: POST
path: "/v1/categories"
tags: ["Categories"]
---

# Create Category

`POST /v1/categories`

Create category with a specific name and hierarchy.

## Request body

- CategoriesCreateRequestBody — Request body schema for **POST** `v1/categories`.
  - `name` string, required — Category name.
  - `hierarchy` integer, required — Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.

## Response `200`

Returns a newly created category object.

- CategoriesCreateResponseBody — Response body schema for **POST** `v1/categories`.
  - `id` string, required — Unique category ID assigned by Voucherify.
  - `name` string, required — Category name.
  - `hierarchy` integer, required — Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.
  - `object` 'category', required
  - `created_at` string, date-time, required — Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.

## Other responses

- `400` — Returns an error if the payload is incomplete.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/versions/4982266e0494/schema)
