GraphQL
query HsCodes(
$where: QueryHsCodesWhereWhereConditions,
$orderBy: [QueryHsCodesOrderByOrderByClause!]
) {
HsCodes(
where: $where
orderBy: $orderBy
) {
data {
id
code
label
}
}
}
JSON
{
"where": {
"AND": [
{ "column": "CODE", "operator": "LIKE", "value": "84%" }
]
},
"orderBy": [
{ "column": "CODE", "order": "ASC" }
]
}
Field Type Description idID Unique identifier of the HS code. codeString HS code number. labelString Description of the HS code.
You can create filters based on following fields
id - ID Example: { "column": "ID", "operator": "EQ", "value": 100012 }
code - String Example: { "column": "CODE", "operator": "LIKE", "value": "84%" }
label - String Example: { "column": "LABEL", "operator": "LIKE", "value": "%machinery%" }
You can sort data based on following fields: id, code, label
GraphQL
query SortHsCodes(
$where: QueryHsCodesWhereWhereConditions
) {
HsCodes(
where: $where
orderBy: [{ column: CODE, order: ASC }]
) {
data {
id
code
label
}
}
}
JSON
{
"data": {
"HsCodes": [
{
"id": 100001,
"code": "8471.30.00",
"label": "Portable digital automatic data processing machines"
},
{
"id": 100002,
"code": "8471.41.00",
"label": "Digital automatic data processing machines"
}
]
}
}
Field Type Description idID Unique identifier of the HS code. codeString HS code number. labelString Description of the HS code.
Field Type Description idID! HS code ID (required for updates). codeString HS code number. labelString Description of the HS code.