Search throughout the HS Code structure
GET/search
Perform a text search across all levels of the HS hierarchy:- Sections- Chapters- Headings- SubheadingsReturn only the elements that match the search term,while maintaining the hierarchical structure between them.The search is case-insensitive and looks for partial matches.Requires JWT authentication in the Authorization header.
Request
Responses
- 200
- 400
- 401
- 500
Search completed successfully. Returns an array of sections containing at least one element that matches the search term, with the complete hierarchical structure from the section down to the matching element.
Invalid search parameters. This occurs when: - The 'search' parameter is not provided - The search term has fewer than 3 characters
Unauthorized. Occurs when:- The Authorization header is not provided- The JWT token is invalid or has expired- The token format is incorrectExample response:json{ message: Invalid or expired token}
Internal server error. This may occur if there are issues accessing the database.