Introduction
Base URL
https://dev.api.clearit.com
Authenticating requests
To authenticate requests, include a Token header with the value "your token".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Endpoints
Get Token
(POST api/us/getToken)
This endpoint is for the getting token
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getToken" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Token: string required" \
--data "{
\"affiliateCode\": \"myCode\",
\"password\": \"myCode@123\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getToken"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Token": "string required",
};
let body = {
"affiliateCode": "myCode",
"password": "myCode@123"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getToken',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Token' => 'string required',
],
'json' => [
'affiliateCode' => 'myCode',
'password' => 'myCode@123',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getToken'
payload = {
"affiliateCode": "myCode",
"password": "myCode@123"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Token': 'string required'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Get Estimate
requires authentication
(POST api/us/getEstimate)
This endpoint is for the getting estimate
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getEstimate" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"estimateGuid\": \"4EA36764-DC3F-9BE5-7279-677CB94674BF\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getEstimate"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"estimateGuid": "4EA36764-DC3F-9BE5-7279-677CB94674BF"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getEstimate',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'estimateGuid' => '4EA36764-DC3F-9BE5-7279-677CB94674BF',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getEstimate'
payload = {
"estimateGuid": "4EA36764-DC3F-9BE5-7279-677CB94674BF"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Get Estimate Calculation
requires authentication
This endpoint is for the getting estimate calulation
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getEstimateCalculation" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reference_id\": \"myCode\",
\"shipping_method\": 2,
\"shipping_from\": \"US\",
\"bond_type\": 3,
\"freight_charge\": 33.54,
\"commodities_json_string\": \"[{}]\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getEstimateCalculation"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reference_id": "myCode",
"shipping_method": 2,
"shipping_from": "US",
"bond_type": 3,
"freight_charge": 33.54,
"commodities_json_string": "[{}]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getEstimateCalculation',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'reference_id' => 'myCode',
'shipping_method' => 2,
'shipping_from' => 'US',
'bond_type' => 3,
'freight_charge' => 33.54,
'commodities_json_string' => '[{}]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getEstimateCalculation'
payload = {
"reference_id": "myCode",
"shipping_method": 2,
"shipping_from": "US",
"bond_type": 3,
"freight_charge": 33.54,
"commodities_json_string": "[{}]"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Create ticket
requires authentication
(POST api/us/createTicket)
This endpoint is for the create ticket
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/createTicket" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"transport\": 1,
\"userIdentifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"soldToId\": 1,
\"vendorId\": 1,
\"carrier\": \"UPS\",
\"trackingNumber\": \"123456\",
\"requiresDelivery\": 1,
\"deliverySelection\": 2,
\"deliveryAddress\": \"123 Main St, City, State, Zip\",
\"affiliateReference\": \"reference\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/createTicket"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"transport": 1,
"userIdentifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"soldToId": 1,
"vendorId": 1,
"carrier": "UPS",
"trackingNumber": "123456",
"requiresDelivery": 1,
"deliverySelection": 2,
"deliveryAddress": "123 Main St, City, State, Zip",
"affiliateReference": "reference"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/createTicket',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'transport' => 1,
'userIdentifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'soldToId' => 1,
'vendorId' => 1,
'carrier' => 'UPS',
'trackingNumber' => '123456',
'requiresDelivery' => 1,
'deliverySelection' => 2,
'deliveryAddress' => '123 Main St, City, State, Zip',
'affiliateReference' => 'reference',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/createTicket'
payload = {
"transport": 1,
"userIdentifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"soldToId": 1,
"vendorId": 1,
"carrier": "UPS",
"trackingNumber": "123456",
"requiresDelivery": 1,
"deliverySelection": 2,
"deliveryAddress": "123 Main St, City, State, Zip",
"affiliateReference": "reference"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Cancel ticket
requires authentication
(POST api/us/cancelTicket)
This endpoint is for the cancel ticket
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/cancelTicket" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"TicketIdentifier\": \"B1B7577D-1989-3A47-2D55-4CE8738EF16E\",
\"AffiliateReference\": \"123456\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/cancelTicket"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"TicketIdentifier": "B1B7577D-1989-3A47-2D55-4CE8738EF16E",
"AffiliateReference": "123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/cancelTicket',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'TicketIdentifier' => 'B1B7577D-1989-3A47-2D55-4CE8738EF16E',
'AffiliateReference' => '123456',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/cancelTicket'
payload = {
"TicketIdentifier": "B1B7577D-1989-3A47-2D55-4CE8738EF16E",
"AffiliateReference": "123456"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Get document upload types
requires authentication
(POST api/us/getDocumentUploadTypes)
This endpoint is for the getting document upload types
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getDocumentUploadTypes" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"transport\": 3
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getDocumentUploadTypes"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"transport": 3
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getDocumentUploadTypes',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'transport' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getDocumentUploadTypes'
payload = {
"transport": 3
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Attach a document to a ticket
requires authentication
(POST api/us/attachTicketDocument)
This endpoint allows you to attach a document to a ticket. Ensure that the document format is supported and that the ticket ID provided is valid and exists in the database.
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/attachTicketDocument" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"affiliateCode\": \"quidem\",
\"affiliateId\": \"dolorem\",
\"file\": \"voluptates\",
\"file_name\": \"myFile.png\",
\"ticketIdentifier\": \"B1B7577D-1989-3A47-2D55-4CE8738EF16E\",
\"description\": \"Commercial Invoice\",
\"documentDescription\": \"My ticket document\",
\"invoiceNumber\": \"123456\",
\"supplierName\": \"supplier\",
\"affiliateReference\": \"reference\",
\"affiliateIdentifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"documentStatus\": \"ADD\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/attachTicketDocument"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"affiliateCode": "quidem",
"affiliateId": "dolorem",
"file": "voluptates",
"file_name": "myFile.png",
"ticketIdentifier": "B1B7577D-1989-3A47-2D55-4CE8738EF16E",
"description": "Commercial Invoice",
"documentDescription": "My ticket document",
"invoiceNumber": "123456",
"supplierName": "supplier",
"affiliateReference": "reference",
"affiliateIdentifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"documentStatus": "ADD"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/attachTicketDocument',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'affiliateCode' => 'quidem',
'affiliateId' => 'dolorem',
'file' => 'voluptates',
'file_name' => 'myFile.png',
'ticketIdentifier' => 'B1B7577D-1989-3A47-2D55-4CE8738EF16E',
'description' => 'Commercial Invoice',
'documentDescription' => 'My ticket document',
'invoiceNumber' => '123456',
'supplierName' => 'supplier',
'affiliateReference' => 'reference',
'affiliateIdentifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'documentStatus' => 'ADD',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/attachTicketDocument'
payload = {
"affiliateCode": "quidem",
"affiliateId": "dolorem",
"file": "voluptates",
"file_name": "myFile.png",
"ticketIdentifier": "B1B7577D-1989-3A47-2D55-4CE8738EF16E",
"description": "Commercial Invoice",
"documentDescription": "My ticket document",
"invoiceNumber": "123456",
"supplierName": "supplier",
"affiliateReference": "reference",
"affiliateIdentifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"documentStatus": "ADD"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Get tariff number
requires authentication
(POST api/us/getTariffNumber)
This endpoint is for the getting tariff number
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getTariffNumber" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tariffNumber\": \"9999.99.9999\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getTariffNumber"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tariffNumber": "9999.99.9999"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getTariffNumber',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'tariffNumber' => '9999.99.9999',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getTariffNumber'
payload = {
"tariffNumber": "9999.99.9999"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Search tariff number
requires authentication
(POST api/us/searchTariffNumber)
This endpoint is for the search tariff number
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/searchTariffNumber" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchString\": \"102.32\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/searchTariffNumber"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchString": "102.32"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/searchTariffNumber',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'searchString' => '102.32',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/searchTariffNumber'
payload = {
"searchString": "102.32"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Create User
requires authentication
(POST api/us/createUser)
This endpoint is for the create user
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/createUser" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\",
\"accountType\": 1,
\"businessStructureType\": 2,
\"signingOfficerType\": 1,
\"legalBusinessName\": \"\\\"ABC Company\\\"\",
\"tradeName\": \"\\\"ABC\\\"\",
\"importerNumber\": \"\\\"123456789\\\"\",
\"streetAddress\": \"\\\"123 Main St\\\"\",
\"city\": \"\\\"New York\\\"\",
\"country\": \"\\\"USA\\\"\",
\"stateIdentifier\": \"\\\"NY\\\"\",
\"postalCode\": \"\\\"10001\\\"\",
\"contactFirstName\": \"\\\"John\\\"\",
\"contactLastName\": \"\\\"Doe\\\"\",
\"phoneNumber\": 1234567890,
\"faxNumber\": \"\\\"1234567890\\\"\",
\"birthDate\": \"\\\"1990-01-01\\\"\",
\"haveBond\": 1,
\"bondReferenceNumber\": \"\\\"123456789\\\"\",
\"bondExpirationYear\": \"\\\"2022\\\"\",
\"bondExpirationMonth\": \"\\\"01\\\"\",
\"bondExpirationDay\": \"\\\"01\\\"\",
\"bondType\": 1,
\"affiliateReference\": \"\\\"123456789\\\"\",
\"affiliateShipmentNumber\": \"\\\"123456789\\\"\",
\"createdByUserId\": 64784,
\"jurisdictionState\": \"\\\"NY\\\"\",
\"verificationUserId\": 64784,
\"registrationIP\": \"67.249.78.206\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/createUser"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]",
"accountType": 1,
"businessStructureType": 2,
"signingOfficerType": 1,
"legalBusinessName": "\"ABC Company\"",
"tradeName": "\"ABC\"",
"importerNumber": "\"123456789\"",
"streetAddress": "\"123 Main St\"",
"city": "\"New York\"",
"country": "\"USA\"",
"stateIdentifier": "\"NY\"",
"postalCode": "\"10001\"",
"contactFirstName": "\"John\"",
"contactLastName": "\"Doe\"",
"phoneNumber": 1234567890,
"faxNumber": "\"1234567890\"",
"birthDate": "\"1990-01-01\"",
"haveBond": 1,
"bondReferenceNumber": "\"123456789\"",
"bondExpirationYear": "\"2022\"",
"bondExpirationMonth": "\"01\"",
"bondExpirationDay": "\"01\"",
"bondType": 1,
"affiliateReference": "\"123456789\"",
"affiliateShipmentNumber": "\"123456789\"",
"createdByUserId": 64784,
"jurisdictionState": "\"NY\"",
"verificationUserId": 64784,
"registrationIP": "67.249.78.206"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/createUser',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => '[email protected]',
'accountType' => 1,
'businessStructureType' => 2,
'signingOfficerType' => 1,
'legalBusinessName' => '"ABC Company"',
'tradeName' => '"ABC"',
'importerNumber' => '"123456789"',
'streetAddress' => '"123 Main St"',
'city' => '"New York"',
'country' => '"USA"',
'stateIdentifier' => '"NY"',
'postalCode' => '"10001"',
'contactFirstName' => '"John"',
'contactLastName' => '"Doe"',
'phoneNumber' => 1234567890,
'faxNumber' => '"1234567890"',
'birthDate' => '"1990-01-01"',
'haveBond' => 1,
'bondReferenceNumber' => '"123456789"',
'bondExpirationYear' => '"2022"',
'bondExpirationMonth' => '"01"',
'bondExpirationDay' => '"01"',
'bondType' => 1,
'affiliateReference' => '"123456789"',
'affiliateShipmentNumber' => '"123456789"',
'createdByUserId' => 64784,
'jurisdictionState' => '"NY"',
'verificationUserId' => 64784,
'registrationIP' => '67.249.78.206',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/createUser'
payload = {
"email": "[email protected]",
"accountType": 1,
"businessStructureType": 2,
"signingOfficerType": 1,
"legalBusinessName": "\"ABC Company\"",
"tradeName": "\"ABC\"",
"importerNumber": "\"123456789\"",
"streetAddress": "\"123 Main St\"",
"city": "\"New York\"",
"country": "\"USA\"",
"stateIdentifier": "\"NY\"",
"postalCode": "\"10001\"",
"contactFirstName": "\"John\"",
"contactLastName": "\"Doe\"",
"phoneNumber": 1234567890,
"faxNumber": "\"1234567890\"",
"birthDate": "\"1990-01-01\"",
"haveBond": 1,
"bondReferenceNumber": "\"123456789\"",
"bondExpirationYear": "\"2022\"",
"bondExpirationMonth": "\"01\"",
"bondExpirationDay": "\"01\"",
"bondType": 1,
"affiliateReference": "\"123456789\"",
"affiliateShipmentNumber": "\"123456789\"",
"createdByUserId": 64784,
"jurisdictionState": "\"NY\"",
"verificationUserId": 64784,
"registrationIP": "67.249.78.206"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/getAffiliateUser
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getAffiliateUser" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"affiliateUserIdentifier\": \"ab\",
\"userEmail\": \"adipisci\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getAffiliateUser"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"affiliateUserIdentifier": "ab",
"userEmail": "adipisci"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getAffiliateUser',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'affiliateUserIdentifier' => 'ab',
'userEmail' => 'adipisci',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getAffiliateUser'
payload = {
"affiliateUserIdentifier": "ab",
"userEmail": "adipisci"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/updateUserAffiliateReference
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/updateUserAffiliateReference" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"eaque\",
\"userIdentifier\": \"ut\",
\"affiliateReference\": \"magnam\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/updateUserAffiliateReference"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "eaque",
"userIdentifier": "ut",
"affiliateReference": "magnam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/updateUserAffiliateReference',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'token' => 'eaque',
'userIdentifier' => 'ut',
'affiliateReference' => 'magnam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/updateUserAffiliateReference'
payload = {
"token": "eaque",
"userIdentifier": "ut",
"affiliateReference": "magnam"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/createSoldTo
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/createSoldTo" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"userIdentifier\": \"quis\",
\"firstname\": \"numquam\",
\"lastname\": \"esse\",
\"legalBusinessName\": \"possimus\",
\"streetAddress\": \"sed\",
\"city\": \"et\",
\"country\": \"laudantium\",
\"stateIdentifier\": \"iste\",
\"postalCode\": \"et\",
\"phoneNumber\": \"id\",
\"faxNumber\": \"cumque\",
\"importerNumber\": \"et\",
\"email\": \"earum\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/createSoldTo"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"userIdentifier": "quis",
"firstname": "numquam",
"lastname": "esse",
"legalBusinessName": "possimus",
"streetAddress": "sed",
"city": "et",
"country": "laudantium",
"stateIdentifier": "iste",
"postalCode": "et",
"phoneNumber": "id",
"faxNumber": "cumque",
"importerNumber": "et",
"email": "earum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/createSoldTo',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'userIdentifier' => 'quis',
'firstname' => 'numquam',
'lastname' => 'esse',
'legalBusinessName' => 'possimus',
'streetAddress' => 'sed',
'city' => 'et',
'country' => 'laudantium',
'stateIdentifier' => 'iste',
'postalCode' => 'et',
'phoneNumber' => 'id',
'faxNumber' => 'cumque',
'importerNumber' => 'et',
'email' => 'earum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/createSoldTo'
payload = {
"userIdentifier": "quis",
"firstname": "numquam",
"lastname": "esse",
"legalBusinessName": "possimus",
"streetAddress": "sed",
"city": "et",
"country": "laudantium",
"stateIdentifier": "iste",
"postalCode": "et",
"phoneNumber": "id",
"faxNumber": "cumque",
"importerNumber": "et",
"email": "earum"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/createVendor
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/createVendor" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"userIdentifier\": \"quisquam\",
\"name\": \"nostrum\",
\"address\": \"et\",
\"city\": \"ratione\",
\"stateIdentifier\": \"quia\",
\"country\": \"est\",
\"postalCode\": \"iusto\",
\"phoneNumber\": \"nihil\",
\"email\": \"et\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/createVendor"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"userIdentifier": "quisquam",
"name": "nostrum",
"address": "et",
"city": "ratione",
"stateIdentifier": "quia",
"country": "est",
"postalCode": "iusto",
"phoneNumber": "nihil",
"email": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/createVendor',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'userIdentifier' => 'quisquam',
'name' => 'nostrum',
'address' => 'et',
'city' => 'ratione',
'stateIdentifier' => 'quia',
'country' => 'est',
'postalCode' => 'iusto',
'phoneNumber' => 'nihil',
'email' => 'et',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/createVendor'
payload = {
"userIdentifier": "quisquam",
"name": "nostrum",
"address": "et",
"city": "ratione",
"stateIdentifier": "quia",
"country": "est",
"postalCode": "iusto",
"phoneNumber": "nihil",
"email": "et"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/saveTicketUserHTSCode
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/saveTicketUserHTSCode" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ticketId\": \"exercitationem\",
\"tariffNum\": \"accusantium\",
\"userHTSId\": \"ab\",
\"ticketUserHtsId\": \"natus\",
\"userId\": \"eveniet\",
\"userDescription\": \"ut\",
\"usageDescription\": \"quaerat\",
\"sku\": \"ea\",
\"quantity\": \"dolorem\",
\"unitPrice\": \"omnis\",
\"countryId\": \"porro\",
\"agentId\": \"asperiores\",
\"commodityID\": \"exercitationem\",
\"commodityURL\": \"minima\",
\"note\": \"qui\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/saveTicketUserHTSCode"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ticketId": "exercitationem",
"tariffNum": "accusantium",
"userHTSId": "ab",
"ticketUserHtsId": "natus",
"userId": "eveniet",
"userDescription": "ut",
"usageDescription": "quaerat",
"sku": "ea",
"quantity": "dolorem",
"unitPrice": "omnis",
"countryId": "porro",
"agentId": "asperiores",
"commodityID": "exercitationem",
"commodityURL": "minima",
"note": "qui"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/saveTicketUserHTSCode',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'ticketId' => 'exercitationem',
'tariffNum' => 'accusantium',
'userHTSId' => 'ab',
'ticketUserHtsId' => 'natus',
'userId' => 'eveniet',
'userDescription' => 'ut',
'usageDescription' => 'quaerat',
'sku' => 'ea',
'quantity' => 'dolorem',
'unitPrice' => 'omnis',
'countryId' => 'porro',
'agentId' => 'asperiores',
'commodityID' => 'exercitationem',
'commodityURL' => 'minima',
'note' => 'qui',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/saveTicketUserHTSCode'
payload = {
"ticketId": "exercitationem",
"tariffNum": "accusantium",
"userHTSId": "ab",
"ticketUserHtsId": "natus",
"userId": "eveniet",
"userDescription": "ut",
"usageDescription": "quaerat",
"sku": "ea",
"quantity": "dolorem",
"unitPrice": "omnis",
"countryId": "porro",
"agentId": "asperiores",
"commodityID": "exercitationem",
"commodityURL": "minima",
"note": "qui"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/getTicketByAffiliateReference
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getTicketByAffiliateReference" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"affiliateReference\": \"itaque\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getTicketByAffiliateReference"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"affiliateReference": "itaque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getTicketByAffiliateReference',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'affiliateReference' => 'itaque',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getTicketByAffiliateReference'
payload = {
"affiliateReference": "itaque"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/attachmentsUserHTS
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/attachmentsUserHTS" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"userHtsId\": \"exercitationem\",
\"userDescription\": \"dolor\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/attachmentsUserHTS"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"userHtsId": "exercitationem",
"userDescription": "dolor"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/attachmentsUserHTS',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'userHtsId' => 'exercitationem',
'userDescription' => 'dolor',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/attachmentsUserHTS'
payload = {
"userHtsId": "exercitationem",
"userDescription": "dolor"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/sendSkippedFileNotification
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/sendSkippedFileNotification" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"shipmentNumber\": \"maxime\",
\"documentType\": \"dolores\",
\"documentName\": \"illum\",
\"documentID\": \"et\",
\"documentChecksum\": \"sit\",
\"foundDocumentChecksum\": \"suscipit\",
\"serviceMethod\": \"fuga\",
\"file\": \"quae\",
\"file_name\": \"myFile.png\",
\"ticketIdentifier\": \"B1B7577D-1989-3A47-2D55-4CE8738EF16E\",
\"description\": \"Commercial Invoice\",
\"documentDescription\": \"My ticket document\",
\"invoiceNumber\": \"123456\",
\"supplierName\": \"supplier\",
\"affiliateReference\": \"reference\",
\"affiliateIdentifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"documentStatus\": \"ADD\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/sendSkippedFileNotification"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"shipmentNumber": "maxime",
"documentType": "dolores",
"documentName": "illum",
"documentID": "et",
"documentChecksum": "sit",
"foundDocumentChecksum": "suscipit",
"serviceMethod": "fuga",
"file": "quae",
"file_name": "myFile.png",
"ticketIdentifier": "B1B7577D-1989-3A47-2D55-4CE8738EF16E",
"description": "Commercial Invoice",
"documentDescription": "My ticket document",
"invoiceNumber": "123456",
"supplierName": "supplier",
"affiliateReference": "reference",
"affiliateIdentifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"documentStatus": "ADD"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/sendSkippedFileNotification',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'shipmentNumber' => 'maxime',
'documentType' => 'dolores',
'documentName' => 'illum',
'documentID' => 'et',
'documentChecksum' => 'sit',
'foundDocumentChecksum' => 'suscipit',
'serviceMethod' => 'fuga',
'file' => 'quae',
'file_name' => 'myFile.png',
'ticketIdentifier' => 'B1B7577D-1989-3A47-2D55-4CE8738EF16E',
'description' => 'Commercial Invoice',
'documentDescription' => 'My ticket document',
'invoiceNumber' => '123456',
'supplierName' => 'supplier',
'affiliateReference' => 'reference',
'affiliateIdentifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'documentStatus' => 'ADD',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/sendSkippedFileNotification'
payload = {
"shipmentNumber": "maxime",
"documentType": "dolores",
"documentName": "illum",
"documentID": "et",
"documentChecksum": "sit",
"foundDocumentChecksum": "suscipit",
"serviceMethod": "fuga",
"file": "quae",
"file_name": "myFile.png",
"ticketIdentifier": "B1B7577D-1989-3A47-2D55-4CE8738EF16E",
"description": "Commercial Invoice",
"documentDescription": "My ticket document",
"invoiceNumber": "123456",
"supplierName": "supplier",
"affiliateReference": "reference",
"affiliateIdentifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"documentStatus": "ADD"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Verify Invoice
requires authentication
(POST api/us/verifyInvoice)
This endpoint is for the Verify Invoice
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/verifyInvoice" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_identifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"document_details\": [
{
\"company_name\": \"porro\",
\"trade_name\": \"est\",
\"user_first_name\": \"soluta\",
\"user_last_name\": \"aliquam\"
}
]
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/verifyInvoice"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "porro",
"trade_name": "est",
"user_first_name": "soluta",
"user_last_name": "aliquam"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/verifyInvoice',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_identifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'document_details' => [
[
'company_name' => 'porro',
'trade_name' => 'est',
'user_first_name' => 'soluta',
'user_last_name' => 'aliquam',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/verifyInvoice'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "porro",
"trade_name": "est",
"user_first_name": "soluta",
"user_last_name": "aliquam"
}
]
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Verify Arrival Notice
requires authentication
(POST api/us/verifyArrivalNotice)
This endpoint is for the Verify Arrival Notice
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/verifyArrivalNotice" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_identifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"document_details\": [
{
\"company_name\": \"esse\",
\"trade_name\": \"consequatur\",
\"user_first_name\": \"et\",
\"user_last_name\": \"totam\"
}
]
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/verifyArrivalNotice"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "esse",
"trade_name": "consequatur",
"user_first_name": "et",
"user_last_name": "totam"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/verifyArrivalNotice',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_identifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'document_details' => [
[
'company_name' => 'esse',
'trade_name' => 'consequatur',
'user_first_name' => 'et',
'user_last_name' => 'totam',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/verifyArrivalNotice'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "esse",
"trade_name": "consequatur",
"user_first_name": "et",
"user_last_name": "totam"
}
]
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Verify Bill of Lading
requires authentication
(POST api/us/verifyBillOfLading)
This endpoint is for the Verify Bill of Lading
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/verifyBillOfLading" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_identifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"document_details\": [
{
\"company_name\": \"at\",
\"trade_name\": \"maxime\",
\"user_first_name\": \"iste\",
\"user_last_name\": \"libero\"
}
]
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/verifyBillOfLading"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "at",
"trade_name": "maxime",
"user_first_name": "iste",
"user_last_name": "libero"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/verifyBillOfLading',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_identifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'document_details' => [
[
'company_name' => 'at',
'trade_name' => 'maxime',
'user_first_name' => 'iste',
'user_last_name' => 'libero',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/verifyBillOfLading'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "at",
"trade_name": "maxime",
"user_first_name": "iste",
"user_last_name": "libero"
}
]
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Verify Airway Bill
requires authentication
(POST api/us/verifyAirwayBill)
This endpoint is for the Verify Airway Bill
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/verifyAirwayBill" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_identifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"document_details\": [
{
\"company_name\": \"architecto\",
\"trade_name\": \"rem\",
\"user_first_name\": \"laborum\",
\"user_last_name\": \"voluptas\"
}
]
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/verifyAirwayBill"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "architecto",
"trade_name": "rem",
"user_first_name": "laborum",
"user_last_name": "voluptas"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/verifyAirwayBill',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_identifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'document_details' => [
[
'company_name' => 'architecto',
'trade_name' => 'rem',
'user_first_name' => 'laborum',
'user_last_name' => 'voluptas',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/verifyAirwayBill'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "architecto",
"trade_name": "rem",
"user_first_name": "laborum",
"user_last_name": "voluptas"
}
]
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Verify ISF Worksheet
requires authentication
(POST api/us/verifyISFWorksheet)
This endpoint is for the Verify ISF Worksheet
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/verifyISFWorksheet" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"document_identifier\": \"F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0\",
\"document_details\": [
{
\"company_name\": \"voluptatem\",
\"trade_name\": \"maxime\",
\"user_first_name\": \"et\",
\"user_last_name\": \"nam\"
}
]
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/verifyISFWorksheet"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "voluptatem",
"trade_name": "maxime",
"user_first_name": "et",
"user_last_name": "nam"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/verifyISFWorksheet',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'document_identifier' => 'F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0',
'document_details' => [
[
'company_name' => 'voluptatem',
'trade_name' => 'maxime',
'user_first_name' => 'et',
'user_last_name' => 'nam',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/verifyISFWorksheet'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "voluptatem",
"trade_name": "maxime",
"user_first_name": "et",
"user_last_name": "nam"
}
]
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Clarifying Questions
requires authentication
(POST api/us/clarifyingQuestions)
This endpoint is for the clarifying questions
When the upstream HTS Predictions API rejects the request or returns an error (for example validation code VA-003), this endpoint responds with HTTP 422 and the upstream message. Previously it returned HTTP 200 with an unusable body.
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/clarifyingQuestions" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Enter a detailed description of your product?\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/clarifyingQuestions"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Enter a detailed description of your product?"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/clarifyingQuestions',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'description' => 'Enter a detailed description of your product?',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/clarifyingQuestions'
payload = {
"description": "Enter a detailed description of your product?"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Example response (422):
{
"message": "Input validation failed",
"data": {
"error_code": "VA-003",
"message": "Input validation failed"
}
}
Received response:
Request failed with error:
Predict Tariff
requires authentication
(POST api/us/predictTariff)
This endpoint is for the predict tariff
When the upstream HTS Predictions API rejects the request or returns an error (for example validation code VA-003), this endpoint responds with HTTP 422 and the upstream message. Previously it returned HTTP 200 with an unusable body.
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/predictTariff" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Enter a detailed description of your product?\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/predictTariff"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Enter a detailed description of your product?"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/predictTariff',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'description' => 'Enter a detailed description of your product?',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/predictTariff'
payload = {
"description": "Enter a detailed description of your product?"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Example response (422):
{
"message": "Input validation failed",
"data": {
"error_code": "VA-003",
"message": "Input validation failed"
}
}
Received response:
Request failed with error:
Get HTS Details
requires authentication
(POST api/us/getHTSDetails)
This endpoint is for the getting HTS details
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/htsDetails" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"hts_code\": \"rem\"
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/htsDetails"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"hts_code": "rem"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/htsDetails',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'hts_code' => 'rem',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/htsDetails'
payload = {
"hts_code": "rem"
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
POST api/us/calculateTariff
requires authentication
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/calculateTariff" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"col1_spfc_rate\": 70.97,
\"col1_rate_ad_vlrm\": 26508201.7692067
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/calculateTariff"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"col1_spfc_rate": 70.97,
"col1_rate_ad_vlrm": 26508201.7692067
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/calculateTariff',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'col1_spfc_rate' => 70.97,
'col1_rate_ad_vlrm' => 26508201.7692067,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/calculateTariff'
payload = {
"col1_spfc_rate": 70.97,
"col1_rate_ad_vlrm": 26508201.7692067
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error:
Get Duty Simulation
requires authentication
(POST api/us/getDutySimulation)
This endpoint is for the getting duty simulation
Example request:
curl --request POST \
"https://dev.api.clearit.com/api/us/getDutySimulation" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"estimate_id\": 0,
\"partner_id\": 10,
\"user_id\": 14,
\"transport_type_id\": 13,
\"bond_type_id\": 1,
\"has_free_trade_agreement\": 0,
\"hts_code\": \"sunt\",
\"product_description\": \"quia\",
\"total_units\": \"0.00\",
\"unit_price\": \"0.00\",
\"country_of_origin_id\": 13,
\"duty_units\": \"0.00\",
\"device_type\": \"minus\",
\"freight_charge\": 5152.5
}"
const url = new URL(
"https://dev.api.clearit.com/api/us/getDutySimulation"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"estimate_id": 0,
"partner_id": 10,
"user_id": 14,
"transport_type_id": 13,
"bond_type_id": 1,
"has_free_trade_agreement": 0,
"hts_code": "sunt",
"product_description": "quia",
"total_units": "0.00",
"unit_price": "0.00",
"country_of_origin_id": 13,
"duty_units": "0.00",
"device_type": "minus",
"freight_charge": 5152.5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json()); $client = new \GuzzleHttp\Client();
$response = $client->post(
'https://dev.api.clearit.com/api/us/getDutySimulation',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'estimate_id' => 0,
'partner_id' => 10,
'user_id' => 14,
'transport_type_id' => 13,
'bond_type_id' => 1,
'has_free_trade_agreement' => 0,
'hts_code' => 'sunt',
'product_description' => 'quia',
'total_units' => '0.00',
'unit_price' => '0.00',
'country_of_origin_id' => 13,
'duty_units' => '0.00',
'device_type' => 'minus',
'freight_charge' => 5152.5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); import requests
import json
url = 'https://dev.api.clearit.com/api/us/getDutySimulation'
payload = {
"estimate_id": 0,
"partner_id": 10,
"user_id": 14,
"transport_type_id": 13,
"bond_type_id": 1,
"has_free_trade_agreement": 0,
"hts_code": "sunt",
"product_description": "quia",
"total_units": "0.00",
"unit_price": "0.00",
"country_of_origin_id": 13,
"duty_units": "0.00",
"device_type": "minus",
"freight_charge": 5152.5
}
headers = {
'Token': 'string required',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() Received response:
Request failed with error: