Skip to main content

Get details of a specific category by code

GET 

/truckers/categories/getDetails/:value

Search and return the details of a specific category identified by its code.

Features:

  • Searches in headings (4 digits) and subheadings (6 digits)
  • Exact match (case insensitive)
  • Returns the first result found
  • Normalizes titles and labels (removes prefixes, cleans special characters)

Processing:

  1. Removes prefixes such as heading, subheading from titles
  2. Combines multiple labels into a single one separated by spaces
  3. Cleans special characters such as -, : from labels

Request

Responses

Details of the category found with normalized title and label.

Structure:

  • title: Normalized category code (without prefixes)
  • label: Readable description (without special characters, normalized spaces)

Complete example:

{
title: 010121,
label: Purebred breeding stock,
metadata: {
type: subheading,
originalTitle: subheading 010121,
originalLabels: [Reproductores, -, de, raza, pura]
}
}

Use cases:

  1. Obtain details to display in user interface
  2. Validate existing category codes
  3. Integrate with systems requiring exact code mapping