Retrieve the entire hierarchical structure of the HS Code
GET/
Retrieves the complete structure of the harmonized system, including all sections, chapters, headings, and subheadings organized hierarchically. The response includes all nested levels in a single request: - Sections (top level) - Chapters (within sections) - Headings (within chapters) - Subheadings (within headings) Requires JWT authentication via the Authorization header.
Responses
- 200
- 401
- 500
Structure successfully retrieved. Returns an array of sections, each with its nested chapters, which in turn contain items and subitems.
Unauthorized. Occurs when: - The Authorization header is not provided - The JWT token is invalid or has expired - The token format is incorrect Example response: json{ message: Invalid or expired token}
Internal server error. It may occur if there are issues accessing the database.