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

# Create a category

`POST /v1/categories`

## Request

- Base URL: `https://orders-api.paymongo.com`
- URL: `https://orders-api.paymongo.com/v1/categories`
- Auth: HTTP basic

Creates a menu category. location_slug is optional (omit for org-level).

## Request body

- CreateCategoryRequestDTO
  - `location_slug` string: optional; omit for org-level
  - `name` string, required
  - `sort_order` integer

## Response `201`

Created

- object: Standard response containing data and its metadata if any
  - `data` CategoryResponseDTO
    - `created_at` string
    - `id` string
    - `is_deleted` boolean
    - `is_enabled` boolean
    - `livemode` boolean
    - `location_slug` string
    - `name` string
    - `sort_order` integer
    - `updated_at` string
  - `has_more` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `default`

---

[API](https://skmtc.dev/paymongo/apis/orders.md) - [All operations](https://skmtc.dev/paymongo/apis/orders/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/orders/revisions/7962c4ea82b5?raw)
