Skip to main content

Get Document Categories

Method: GET
/api/v1/document-category


Description

This endpoint retrieves a list of document categories based on the provided filters. Document categories may be categorized by types such as PRODUCT or TRADE, and can be filtered by tenant, date range, or other parameters.


🔑 Authentication

This endpoint requires authentication via headers.

ParamValueType
tenantId{{tenantId}}string
userId{{userId}}string
countryCode{{countryCode}}string (optional)

Query Parameters

NameTypeDescription
documentCategorySearchstringSearch for document categories by name or keyword.
documentCategoryDateRangestringFilter document categories by date range (e.g., 2020-11-12,2022-11-15).
byTenantIdsstringFilter by tenant IDs (comma-separated).
byCategoryTypestringFilter by category types (PRODUCT, TRADE).
orderstringSort results in ascending (ASC) or descending (DESC) order.
pagestringSpecify the page number for paginated results.
limitstringSpecify the number of results per page.

Response: 200 OK

A successful response returns a list of document categories along with their details.

Example Response:

[
{
"documentCategoryId": "12345",
"name": "Product Documents",
"type": "PRODUCT",
"createdAt": "2025-02-12T04:04:39.986Z",
"tenantId": "tenant123"
},
{
"documentCategoryId": "67890",
"name": "Trade Documents",
"type": "TRADE",
"createdAt": "2025-02-11T08:20:15.000Z",
"tenantId": "tenant456"
}
]

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/document-category \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!