Introduction
Base URL
https://api.clearit.com
Authenticating requests
Authenticate requests to this API's endpoints by sending 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://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://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://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://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://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://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://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://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
(POST api/us/getEstimateCalculation)
This endpoint is for the getting estimate calulation
Example request:
curl --request POST \
"https://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.53999999999999914734871708787977695465087890625,
\"commodities_json_string\": \"[{}]\"
}"
const url = new URL(
"https://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.53999999999999914734871708787977695465087890625,
"commodities_json_string": "[{}]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://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.53999999999999914734871708787977695465087890625,
'commodities_json_string' => '[{}]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/getEstimateCalculation'
payload = {
"reference_id": "myCode",
"shipping_method": 2,
"shipping_from": "US",
"bond_type": 3,
"freight_charge": 33.53999999999999914734871708787977695465087890625,
"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://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://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://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://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://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://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://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://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://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://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://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://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://api.clearit.com/api/us/attachTicketDocument" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"file\": \"suscipit\",
\"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://api.clearit.com/api/us/attachTicketDocument"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"file": "suscipit",
"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://api.clearit.com/api/us/attachTicketDocument',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'file' => 'suscipit',
'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://api.clearit.com/api/us/attachTicketDocument'
payload = {
"file": "suscipit",
"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://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://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://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://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://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://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://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://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://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://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://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://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:
Verify Invoice
requires authentication
(POST api/us/verifyInvoice)
This endpoint is for the Verify Invoice
Example request:
curl --request POST \
"https://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\": \"error\",
\"trade_name\": \"officia\",
\"user_first_name\": \"ex\",
\"user_last_name\": \"sed\"
}
]
}"
const url = new URL(
"https://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": "error",
"trade_name": "officia",
"user_first_name": "ex",
"user_last_name": "sed"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://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' => 'error',
'trade_name' => 'officia',
'user_first_name' => 'ex',
'user_last_name' => 'sed',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/verifyInvoice'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "error",
"trade_name": "officia",
"user_first_name": "ex",
"user_last_name": "sed"
}
]
}
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://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\": \"labore\",
\"trade_name\": \"animi\",
\"user_first_name\": \"fuga\",
\"user_last_name\": \"beatae\"
}
]
}"
const url = new URL(
"https://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": "labore",
"trade_name": "animi",
"user_first_name": "fuga",
"user_last_name": "beatae"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://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' => 'labore',
'trade_name' => 'animi',
'user_first_name' => 'fuga',
'user_last_name' => 'beatae',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/verifyArrivalNotice'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "labore",
"trade_name": "animi",
"user_first_name": "fuga",
"user_last_name": "beatae"
}
]
}
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://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\": \"dicta\",
\"trade_name\": \"cum\",
\"user_first_name\": \"a\",
\"user_last_name\": \"et\"
}
]
}"
const url = new URL(
"https://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": "dicta",
"trade_name": "cum",
"user_first_name": "a",
"user_last_name": "et"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://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' => 'dicta',
'trade_name' => 'cum',
'user_first_name' => 'a',
'user_last_name' => 'et',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/verifyBillOfLading'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "dicta",
"trade_name": "cum",
"user_first_name": "a",
"user_last_name": "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:
Verify Airway Bill
requires authentication
(POST api/us/verifyAirwayBill)
This endpoint is for the Verify Airway Bill
Example request:
curl --request POST \
"https://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\": \"rerum\",
\"trade_name\": \"autem\",
\"user_first_name\": \"repellendus\",
\"user_last_name\": \"nihil\"
}
]
}"
const url = new URL(
"https://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": "rerum",
"trade_name": "autem",
"user_first_name": "repellendus",
"user_last_name": "nihil"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://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' => 'rerum',
'trade_name' => 'autem',
'user_first_name' => 'repellendus',
'user_last_name' => 'nihil',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/verifyAirwayBill'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "rerum",
"trade_name": "autem",
"user_first_name": "repellendus",
"user_last_name": "nihil"
}
]
}
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://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\": \"molestiae\",
\"trade_name\": \"numquam\",
\"user_first_name\": \"quos\",
\"user_last_name\": \"ab\"
}
]
}"
const url = new URL(
"https://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": "molestiae",
"trade_name": "numquam",
"user_first_name": "quos",
"user_last_name": "ab"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://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' => 'molestiae',
'trade_name' => 'numquam',
'user_first_name' => 'quos',
'user_last_name' => 'ab',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/verifyISFWorksheet'
payload = {
"document_identifier": "F07FE9DF-CEBF-7051-F2E1-2CBQ23D5B9A0",
"document_details": [
{
"company_name": "molestiae",
"trade_name": "numquam",
"user_first_name": "quos",
"user_last_name": "ab"
}
]
}
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
Example request:
curl --request POST \
"https://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://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://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://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()Received response:
Request failed with error:
Predict Code
requires authentication
(POST api/us/predictCode)
This endpoint is for predicting HTS code based on clarifying answers
Example request:
curl --request POST \
"https://api.clearit.com/api/us/predictCode" \
--header "Token: string required" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"clarifying_answers\": \"{}\"
}"
const url = new URL(
"https://api.clearit.com/api/us/predictCode"
);
const headers = {
"Token": "string required",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"clarifying_answers": "{}"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.clearit.com/api/us/predictCode',
[
'headers' => [
'Token' => 'string required',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'clarifying_answers' => '{}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api.clearit.com/api/us/predictCode'
payload = {
"clarifying_answers": "{}"
}
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: