Tariff Classificaiton
You can use our product tariff classification using our API.
curl -X 'POST' \
'https://dev.api.digicust.com/generic/api/<YOUR CUSTOMER ID>/<YOUR PROJECT ID>/tariff-classification/classify_cn' \
-H 'accept: application/json' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'Authorization: Bearer <YOUR ACCESS TOKEN>' \
-H 'content-type: application/json' \
-d '{
"description": "Schokolade",
"remark": "Manufacturer, Designation",
"barCode": "EAN code"
}'var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://dev.api.digicust.com/generic/api/<YOUR CUSTOMER ID>/<YOUR PROJECT ID>/tariff-classification/classify_cn', true);
xhr.setRequestHeader('Accept', 'application/json');
xhr.setRequestHeader('Accept-Language', 'en-US,en;q=0.9');
xhr.setRequestHeader('Authorization', 'Bearer <YOUR ACCESS TOKEN>');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.onreadystatechange = function () {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
console.log('Response:', xhr.responseText);
} else {
console.error('Error:', xhr.statusText);
}
}
};
var data = JSON.stringify({
description: "Schokolade",
remark: "Manufacturer, Designation",
barCode: "EAN code"
});
xhr.send(data);
Last updated