Developers / API ReferenceAPI Version 3.0
SPIDER TL · DEVELOPER API

Spider TL API v3 Documentation

Shipping, international customs invoices and dedicated customs clearance workflows — including H7 declarations.

GET STARTED

Overview

#

Integrate shipping rates, label creation and shipment tracking into your application through Spider TL API v3.

Base URLhttps://service.spider-tl.com
API versionv3
AuthenticationBearer token
Integration sequence

1. Request rates → 2. Select carriers[].id → 3. Create shipment → 4. Retrieve labels and tracking numbers.

GET STARTED

Authentication

#

Send your API token in the Authorization header on every request. The Postman collection uses host and variable_token variables.

HEADERS
{
  "Authorization": "Bearer {{variable_token}}",
  "Content-Type": "application/json"
}
Postman setup

Import the downloadable collection, set host to https://service.spider-tl.com, and set variable_token to your own API token. Do not expose tokens in frontend code.

Download shipping Postman collection →
SHIPPING API

Get shipping rates

#

Get available shipping services and price estimates using origin, destination and parcel weight.

POST/api/v3/shipments/rates

Request example

JSON
{
  "senderAddress": {
    "countryCode": "FR",
    "postalCode": "93300"
  },
  "receiverAddress": {
    "countryCode": "FR",
    "postalCode": "75002"
  },
  "parcels": [
    {
      "weight": 1
    }
  ]
}

Response example

JSON
{
  "Response": {
    "Date": 1765451621,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "transactionId": "EXAMPLE_TRANSACTION_ID",
      "shipmentRequest": {
        "senderAddress": {
          "countryCode": "FR",
          "postalCode": "93300"
        },
        "receiverAddress": {
          "countryCode": "FR",
          "postalCode": "75002"
        },
        "parcels": [
          {
            "weight": 1
          }
        ]
      },
      "carriers": [
        {
          "id": "EXAMPLE_CARRIER_ID",
          "code": "fedex",
          "name": "FedEx",
          "price": 2107,
          "priceIncTax": 2528,
          "logo": "https://service.spider-tl.com/media/logo/sq/fedex.png",
          "infos": {
            "estimatedArrival": "3-4 day(s)",
            "maximumSizeSupported": "Max 80*50*30cm, 25kg"
          }
        }
      ]
    }
  }
}
Prices are returned in cents. price: 2107 corresponds to €21.07 excluding tax; priceIncTax: 2528 corresponds to €25.28 including tax. Currency interpretation follows the account/quotation context.

Response fields

Field Type Description
Response.Date Integer Response timestamp
Response.Status String Response status: "SUCCEEDED" indicates success
Response.Code Integer HTTP status code, 200 indicates success
Message.transactionId String Unique transaction ID for this quote request
Message.shipmentRequest Object Returned quote request parameters (for confirmation)
Message.carriers Array List of available carriers
carriers[].id String Carrier unique ID (used for subsequent order placement)
carriers[].code String Carrier code (e.g., fedex, ups, gls)
carriers[].name String Carrier display name
carriers[].price Integer Price excluding tax (unit: cent)
carriers[].priceIncTax Integer Price including tax (unit: cent)
carriers[].logo String Carrier logo image URL
carriers[].infos Object Additional carrier information (transit time, size limits, pickup points, etc.)
Field Type Unit Example Description
"weight": 3 Float [0-9](0,3) Kilogram (kg) 3 = 3 kg Parcel weight unit is kilogram
Within parcels array Array Kilogram {"weight": 8} = 8 kg All weight-related fields use kilograms

Weight units

Field Type Unit Example Description
"weight": 3 Float [0-9](0,3) Kilogram (kg) 3 = 3 kg Parcel weight unit is kilogram
Within parcels array Array Kilogram {"weight": 8} = 8 kg All weight-related fields use kilograms
SHIPPING API

Create a shipment

#

Once the customer has selected a carrier, submit its rate-response carrierId together with the shipment details.

POST/api/v3/shipments/checkout
Endpoint normalization

The uploaded Postman requests consistently use /api/v3/shipments/checkout, including the international examples. The old documentation also mentioned singular /shipment/checkout; this version follows the supplied Postman collection.

JSON
{
  "transactionId": "TRANSACTION_ID_FROM_RATES",
  "carrierId": "CARRIER_ID_FROM_RATES",
  "shipmentRequest": {
    "parcels": [
      {
        "weight": 1,
        "reference": "ORDER-001"
      }
    ],
    "senderAddress": {
      "firstName": "Alex",
      "lastName": "Martin",
      "company": "Example Sender SAS",
      "email": "sender@example.com",
      "phoneNumber": "+33100000000",
      "street": "10 Rue Exemple",
      "city": "Aubervilliers",
      "postalCode": "93300",
      "countryCode": "FR"
    },
    "receiverAddress": {
      "firstName": "Sam",
      "lastName": "Taylor",
      "company": "Example Recipient",
      "email": "recipient@example.com",
      "phoneNumber": "+33100000001",
      "street": "20 Rue Exemple",
      "city": "Paris",
      "postalCode": "75002",
      "countryCode": "FR"
    }
  }
}

The sample uses a France-to-France shipment without an invoice object.

JSON
{
  "transactionId": "TRANSACTION_ID_FROM_RATES",
  "carrierId": "CARRIER_ID_FROM_RATES",
  "shipmentRequest": {
    "parcels": [
      {
        "weight": 1,
        "reference": "ORDER-001"
      }
    ],
    "senderAddress": {
      "firstName": "Alex",
      "lastName": "Martin",
      "company": "Example Sender SAS",
      "email": "sender@example.com",
      "phoneNumber": "+33100000000",
      "street": "10 Rue Exemple",
      "city": "Aubervilliers",
      "postalCode": "93300",
      "countryCode": "FR"
    },
    "receiverAddress": {
      "firstName": "Sam",
      "lastName": "Taylor",
      "company": "Example Recipient",
      "email": "recipient@example.com",
      "phoneNumber": "+41790000000",
      "street": "10 Example Street",
      "city": "Lausanne",
      "postalCode": "1003",
      "countryCode": "CH"
    },
    "invoice": {
      "invoiceNumber": "INV-001",
      "invoiceDate": "2026-10-24",
      "invoiceItems": [
        {
          "denomination": "Clothing accessories",
          "hsCode": "71179000",
          "weight": "1",
          "value": "90.40",
          "quantity": "1",
          "originCountry": "CN"
        }
      ],
      "fileFormat": "PDF",
      "file": "BASE64_ENCODED_PDF_CONTENT"
    }
  }
}

For customs shipments, include the invoice structure when required by the service. The invoice.file value is illustrative; replace it with the complete Base64-encoded PDF content.

Checkout response example

JSON
{
  "Response": {
    "Date": 1765452070,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "transactionId": "EXAMPLE_TRANSACTION_ID",
      "labels": "https://service.spider-tl.com/storage/file/pdf/example/combined.pdf",
      "parcels": [
        {
          "ticket": "https://service.spider-tl.com/storage/file/pdf/example/parcel-1.pdf",
          "tracking": "EXAMPLE_TRACKING_NUMBER"
        }
      ]
    }
  }
}

Response fields

Field Type Description
Response.Date Integer Response timestamp
Response.Status String Response status: "SUCCEEDED" indicates success
Response.Code Integer HTTP status code, 200 indicates success
Message.transactionId String Unique transaction ID for the order
Message.labels String Download URL for the shipping label PDF (combined for all parcels)
Message.parcels Array Detailed information for each parcel
parcels[].ticket String Shipping label PDF URL for individual parcel
parcels[].tracking String Parcel tracking number
Field Type Description
transactionId String (Length: 42) Order unique identifier, recommended to be generated by the business system
carrierId String Carrier ID, obtained from the /rates interface
parcels Array Parcel list, includes weight, reference number, etc.
senderAddress Object Sender address information
receiverAddress Object Receiver address information
invoice Object Invoice information (required for cross-border shipping)

Request fields

Field Type Description
transactionId String (Length: 42) Order unique identifier, recommended to be generated by the business system
carrierId String Carrier ID, obtained from the /rates interface
parcels Array Parcel list, includes weight, reference number, etc.
senderAddress Object Sender address information
receiverAddress Object Receiver address information
invoice Object Invoice information (required for cross-border shipping)
SHIPPING API

Customs invoice

#

The international checkout examples in the supplied Postman collection include shipmentRequest.invoice, with invoice metadata, line items, and an encoded invoice document.

Invoice field reference

Field Type Required Description
carrierId String Yes Carrier ID obtained from the rates interface response
invoice.file String Yes Base64 encoded string of the invoice file
invoice.fileFormat String Yes Invoice format (e.g., pdf)
invoice.invoiceItems Array Yes Product details (including HS code, country of origin, unit price, etc.)
Invoice item fieldMeaning
denominationProduct description
hsCodeCustoms HS code
weightItem weight (kg)
valueDeclared item value
quantityItem quantity
originCountryCountry of origin (ISO alpha-2)
Important

The Postman file includes a real-world invoice encoded in Base64. It has deliberately been excluded from these public-facing examples and the downloadable sanitized collection.

ADDITIONAL ENDPOINTS

Find tracking information

#

Look up a shipment using the search query q. The supplied Postman collection contains a request example, but no saved response example.

POST/api/v3/tracking/find

Request example

JSON
{
  "q": "EXAMPLE_TRACKING_NUMBER"
}

Response fields have not been specified in the supplied materials. Confirm their structure using your authenticated API environment.

ADDITIONAL ENDPOINTS

Company information lookup

#

Search company information using a keyword and postal code. The supplied Postman collection names this example G-A.

POST/api/v3/infos/company

Request example

JSON
{
  "q": "Easy",
  "zipcode": "93300"
}

No saved response schema was supplied for this operation.

REFERENCE

Address fields

#

Both senderAddress and receiverAddress use a similar structure. Some shipping services can require additional fields depending on destination.

Field Type / Length Example Description
firstName String / 25 "TestFirstName" First name
lastName String / 25 "TestLastName" Last name
company String / 35 "TestCompany" Company name
siret String / 20 "82339490300038" French company registration number
shopName String / 35 "TestShopName" Shop name
email String / 35 "test@123.com" Email address
phoneNumber / mobileNumber String / 15 "0600000000" Phone/Mobile number
street String / 35 "8 Rue de la Haie Coq" Street address
city String / 35 "Aubervilliers" City
postalCode String / 10 "93300" Postal code
countryCode String / 2 "FR" Country code (ISO 3166-1 alpha-2)
instructions String / 35 "TestInstruction" Delivery notes

The collection also uses complement and stateProvinceCode; these are included in examples but length constraints were not documented in the original page.

REFERENCE

Response envelope

#

Available saved examples use a top-level Response object with Date, Status, Code and Message. The example below shows the structure of a successful response.

JSON
{
  "Response": {
    "Date": 1765451621,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "transactionId": "EXAMPLE_TRANSACTION_ID"
    }
  }
}
About errors

No authoritative error-code catalogue or failure-response examples were provided. Do not assume the numeric Response.Code is always identical to the HTTP status.

CUSTOMS CLEARANCE API

Customs Clearance API overview

#

Manage customs clearance applications through standardized templates, document attachments, workflow tracking and H7 parcel declarations. All paths below use the same API v3 host and Bearer token authentication as Shipping.

Base URLhttps://service.spider-tl.com
Endpoints10 confirmed operations
AuthenticationBearer {{variable_token}}

Recommended integration flow

Template → Create → Submit → Monitor

1. GET /customs/templates → 2. POST /customs/clearances (or /h7) → 3. POST /customs/clearances/{task_number}/submit → 4. GET status/details/events/documents. Cancellation is a separate DELETE operation.

Status and progress semantics

FieldTypeDescription
Response.StatusStringOutcome of the API call (e.g. SUCCEEDED).
Message.statusStringBusiness state of the clearance (observed: NEW, IN_PROGRESS, CANCELLED).
Message.h7.statusStringH7 submission processing state (observed: Pending).
Message.nodes.progressPercentNumberWorkflow progress percentage returned by the status endpoint.
Message.data[].progress.percentIntegerWorkflow progress in the list; CANCELLED may show 100% with all nodes SKIPPED.
Scope of confirmed documentation

Success responses and request shapes are based on the supplied Postman collection and actual API examples. Required/optional flags, maximum lengths, failure payloads, exhaustive enums, timezone semantics and download response headers have not yet been independently verified. Application Response.Code is not assumed to equal the transport HTTP status.

Download the Customs Postman collection (included in the ZIP package) using the link below.

Download Customs Postman collection →
CUSTOMS CLEARANCE API

List customs templates

#
GET/api/v3/customs/templates

Retrieve available customs service templates and select templates[].code for creating a request.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794947067,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "templates": [
        {
          "code": "TRADE_T1",
          "name": "T1",
          "description": "TRADE_T1",
          "serviceType": "TRADE_T1",
          "version": 1
        },
        {
          "code": "TRADE_SEA_IMPORT",
          "name": "海运进口",
          "description": "SEA_IMPORT",
          "serviceType": "SEA_IMPORT",
          "version": 1
        },
        {
          "code": "TRADE_SEA_IMPORT_STOPDOUANE",
          "name": "海运进口STOPDOUANE",
          "description": "TRADE_SEA_IMPORT_STOPDOUANE",
          "serviceType": "TRADE_SEA_IMPORT_STOPDOUANE",
          "version": 1
        },
        {
          "code": "TRADE_SEA_IMPORT_STOPDOUANE_OFFSHORE",
          "name": "海运进口STOPDOUANE离岸",
          "description": "TRADE_SEA_IMPORT_STOPDOUANE_OFFSHORE",
          "serviceType": "TRADE_SEA_IMPORT_STOPDOUANE_OFFSHORE",
          "version": 1
        },
        {
          "code": "TRADE_SEA_IMPORT_T1",
          "name": "海运进口T1",
          "description": "SEA_IMPORT_T1",
          "serviceType": "SEA_IMPORT_T1",
          "version": 1
        },
        {
          "code": "TRADE_SEA_IMPORT_T1_OFFSHORE",
          "name": "海运进口T1离岸",
          "description": "TRADE_SEA_IMPORT_T1_OFFSHORE",
          "serviceType": "TRADE_SEA_IMPORT_T1_OFFSHORE",
          "version": 1
        },
        {
          "code": "TRADE_SEA_IMPORT_OFFSHORE",
          "name": "海运进口离岸",
          "description": "TRADE_SEA_IMPORT_OFFSHORE",
          "serviceType": "TRADE_SEA_IMPORT_OFFSHORE",
          "version": 1
        },
        {
          "code": "TRADE_AIR_EXPORT",
          "name": "空运出口",
          "description": "AIR_EXPORT",
          "serviceType": "AIR_EXPORT",
          "version": 1
        },
        {
          "code": "TRADE_AIR_IMPORT",
          "name": "空运进口",
          "description": "AIR_IMPORT",
          "serviceType": "AIR_IMPORT",
          "version": 1
        },
        {
          "code": "TRADE_AIR_IMPORT_H7",
          "name": "空运进口H7_Villepinte",
          "description": "TRADE_AIR_IMPORT_H7",
          "serviceType": "TRADE_AIR_IMPORT_H7",
          "version": 1
        },
        {
          "code": "TRADE_AIR_IMPORT_T1",
          "name": "空运进口T1",
          "description": "TRADE_AIR_IMPORT_T1",
          "serviceType": "TRADE_AIR_IMPORT_T1",
          "version": 1
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.templatesArrayAvailable clearance templates
Message.templates[].codeStringTemplate code (when inside a template object)
Message.templates[].nameStringDisplay name
Message.templates[].descriptionStringRequest description
Message.templates[].serviceTypeStringTemplate service type identifier
Message.templates[].versionIntegerTemplate version
CUSTOMS CLEARANCE API

Create clearance request

#
POST/api/v3/customs/clearances

Create a standard customs clearance request and optionally include document attachments in Base64 form.

Request body

FieldTypeDescription
templateCodeStringTemplate code from GET /api/v3/customs/templates
titleStringHuman-readable request title
descriptionStringRequest description
priorityStringPriority; NORMAL is observed
billOfLadingNoStringBill of Lading / Air Waybill number
eventDataObjectBusiness metadata; the example contains requires_t1 and needs_storage booleans
attachmentsArrayAttached files encoded as Base64

Request example

JSON · illustrative (Base64 shortened)
{
  "templateCode": "TRADE_AIR_IMPORT_T1",
  "title": "Air import customs clearance",
  "description": "Customs clearance request created through API.",
  "priority": "NORMAL",
  "billOfLadingNo": "784-85524025",
  "eventData": {
    "requires_t1": true,
    "needs_storage": true
  },
  "attachments": [
    {
      "documentType": "bill_of_lading",
      "fileName": "AWB-784-85524025.pdf",
      "mimeType": "application/pdf",
      "contentBase64": "BASE64_ENCODED_PDF_CONTENT"
    },
    {
      "documentType": "commercial_invoice",
      "fileName": "invoice.pdf",
      "mimeType": "application/pdf",
      "contentBase64": "BASE64_ENCODED_PDF_CONTENT"
    },
    {
      "documentType": "packing_list",
      "fileName": "packing-list.pdf",
      "mimeType": "application/pdf",
      "contentBase64": "BASE64_ENCODED_PDF_CONTENT"
    }
  ]
}

In this readable example, BASE64_ENCODED_PDF_CONTENT is a placeholder, not a valid encoded document. Supply real Base64 content when calling the API.

Attachment object fields

FieldTypeDescription
attachments[].documentTypeStringDocument type (examples: bill_of_lading, commercial_invoice, packing_list)
attachments[].fileNameStringOriginal filename
attachments[].mimeTypeStringMIME type; application/pdf in example
attachments[].contentBase64StringBase64-encoded file bytes

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794950085,
    "Status": "SUCCEEDED",
    "Code": 201,
    "Message": {
      "clearanceNumber": "TSK-20261117-000006",
      "status": "NEW",
      "template": {
        "code": "TRADE_AIR_IMPORT_T1",
        "name": "空运进口T1"
      },
      "documents": [
        {
          "id": 16,
          "documentType": "bill_of_lading",
          "fileName": "AWB-784-85524025.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630
        },
        {
          "id": 17,
          "documentType": "commercial_invoice",
          "fileName": "invoice.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630
        },
        {
          "id": 18,
          "documentType": "packing_list",
          "fileName": "packing-list.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 201 in this example
Message.clearanceNumberStringUnique clearance application number
Message.statusStringCurrent business status (H7 status when nested under h7)
Message.templateObjectSelected clearance template
Message.template.codeStringTemplate code (when inside a template object)
Message.template.nameStringDisplay name
Message.documentsArrayAssociated clearance documents
Message.documents[].idIntegerReturned field; meaning depends on the parent object.
Message.documents[].documentTypeStringDocument category
Message.documents[].fileNameStringFilename
Message.documents[].mimeTypeStringMIME type
Message.documents[].fileSizeIntegerFile size value (unit not formally confirmed)
CUSTOMS CLEARANCE API

Create H7 clearance

#
POST/api/v3/customs/clearances/h7

Create a customs clearance request with H7 goodsItems[] and receive both the clearance number and H7 ticket/item associations.

Request body

FieldTypeDescription
templateCodeStringTemplate code from GET /api/v3/customs/templates
titleStringHuman-readable request title
descriptionStringRequest description
priorityStringPriority; NORMAL is observed
billOfLadingNoStringBill of Lading / Air Waybill number
eventDataObjectBusiness metadata; the example contains requires_t1 and needs_storage booleans
attachmentsArrayAttached files encoded as Base64
goodsItemsArrayH7 goods declaration items

Request example

JSON · illustrative (Base64 shortened)
{
  "templateCode": "TRADE_AIR_IMPORT_T1",
  "title": "Air import customs clearance",
  "description": "Customs clearance request created through API.",
  "priority": "NORMAL",
  "billOfLadingNo": "784-85524025",
  "eventData": {
    "requires_t1": true,
    "needs_storage": true
  },
  "attachments": [
    {
      "documentType": "bill_of_lading",
      "fileName": "AWB-784-85524025.pdf",
      "mimeType": "application/pdf",
      "contentBase64": "BASE64_ENCODED_PDF_CONTENT"
    },
    {
      "documentType": "commercial_invoice",
      "fileName": "invoice.pdf",
      "mimeType": "application/pdf",
      "contentBase64": "BASE64_ENCODED_PDF_CONTENT"
    },
    {
      "documentType": "packing_list",
      "fileName": "packing-list.pdf",
      "mimeType": "application/pdf",
      "contentBase64": "BASE64_ENCODED_PDF_CONTENT"
    }
  ],
  "goodsItems": [
    {
      "customOrderNumber": "EXAMPLE-0001",
      "bagGrade": "1002-1",
      "bagSizeInLength": 15.12,
      "bagSizeInWidth": 20,
      "bagSizeInHeight": 10,
      "productId": "PROD-001",
      "packageBarcode": "0123456789012",
      "consignorName": "Example Export Ltd",
      "consignorCity": "Shenzhen",
      "consignorZipCode": "518000",
      "consignorAddress": "88 Example Road",
      "consignorOrigin": "CN",
      "consigneeName": "Example Recipient",
      "recipientAddress": "12 Rue Exemple, 75001 Paris, FR",
      "countryCode": "FR",
      "cityOrTown": "Paris",
      "street": "12 Rue Exemple",
      "zipCode": "75001",
      "ioss": "SI_APPLICABLE",
      "skuDescription": "USB cable",
      "skuId": "SKU-001",
      "currency": "EUR",
      "price": 10.5,
      "quantity": 2,
      "weight": 0.25,
      "hsCode": "854442",
      "skuCode": "SKU-001",
      "originCountry": "CN",
      "type": "A_CONFIRMER",
      "profile": "SPIDERVLP",
      "MPID": "7417455454945",
      "NSPID": "LINK-0786",
      "SPID": ""
    },
    {
      "customOrderNumber": "EXAMPLE-0001",
      "bagGrade": "1002-1",
      "bagSizeInLength": 15.12,
      "bagSizeInWidth": 20,
      "bagSizeInHeight": 10,
      "productId": "PROD-001",
      "packageBarcode": "0123456789012",
      "consignorName": "Example Export Ltd",
      "consignorCity": "Shenzhen",
      "consignorZipCode": "518000",
      "consignorAddress": "88 Example Road",
      "consignorOrigin": "CN",
      "consigneeName": "Example Recipient",
      "recipientAddress": "12 Rue Exemple, 75001 Paris, FR",
      "countryCode": "FR",
      "cityOrTown": "Paris",
      "street": "12 Rue Exemple",
      "zipCode": "75001",
      "ioss": "SI_APPLICABLE",
      "skuDescription": "USB cable",
      "skuId": "SKU-001",
      "currency": "EUR",
      "price": 10.5,
      "quantity": 2,
      "weight": 0.25,
      "hsCode": "854442",
      "skuCode": "SKU-001",
      "originCountry": "CN",
      "type": "A_CONFIRMER",
      "profile": "SPIDERVLP",
      "MPID": "7417455454945",
      "NSPID": "LINK-0786",
      "SPID": ""
    }
  ]
}

In this readable example, BASE64_ENCODED_PDF_CONTENT is a placeholder, not a valid encoded document. Supply real Base64 content when calling the API.

Attachment object fields

FieldTypeDescription
attachments[].documentTypeStringDocument type (examples: bill_of_lading, commercial_invoice, packing_list)
attachments[].fileNameStringOriginal filename
attachments[].mimeTypeStringMIME type; application/pdf in example
attachments[].contentBase64StringBase64-encoded file bytes

H7 goodsItems[] fields

FieldTypeDescription
customOrderNumberStringCustomer order reference
bagGradeStringBag grade (meaning not confirmed)
bagSizeInLengthNumberH7 goods item field; example value: 15.12
bagSizeInWidthIntegerH7 goods item field; example value: 20
bagSizeInHeightIntegerH7 goods item field; example value: 10
productIdStringProduct identifier
packageBarcodeStringH7 goods item field; example value: 0123456789012
consignorNameStringH7 goods item field; example value: Example Export Ltd
consignorCityStringH7 goods item field; example value: Shenzhen
consignorZipCodeStringH7 goods item field; example value: 518000
consignorAddressStringH7 goods item field; example value: 88 Example Road
consignorOriginStringH7 goods item field; example value: CN
consigneeNameStringH7 goods item field; example value: Jean Dupont
recipientAddressStringH7 goods item field; example value: 12 Rue Exemple, 75001 Paris, FR
countryCodeStringConsignee country code
cityOrTownStringH7 goods item field; example value: Paris
streetStringH7 goods item field; example value: 12 Rue Exemple
zipCodeStringH7 goods item field; example value: 75001
iossStringH7 goods item field; example value: SI_APPLICABLE
skuDescriptionStringH7 goods item field; example value: USB cable
skuIdStringH7 goods item field; example value: SKU-001
currencyStringISO-style currency code in example (EUR); validation not confirmed
priceNumberDeclared price (unit/precision rules not confirmed)
quantityIntegerDeclared item quantity
weightNumberDeclared weight (unit not confirmed by supplied H7 schema)
hsCodeStringHarmonized System code
skuCodeStringSKU code
originCountryStringCountry of origin
typeStringType value; A_CONFIRMER in example
profileStringH7 profile; SPIDERVLP in example
MPIDStringH7 MPID code; validation not confirmed
NSPIDStringH7 NSPID code; validation not confirmed
SPIDStringH7 SPID code; may be empty
H7 template and grouping

This sample uses templateCode TRADE_AIR_IMPORT_T1 even though GET /customs/templates also returns TRADE_AIR_IMPORT_H7. This documentation reproduces the supplied successful call; it does not assert a required template or the server-side grouping algorithm. Two goods items in the actual response share one LRN.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794950194,
    "Status": "SUCCEEDED",
    "Code": 201,
    "Message": {
      "clearanceNumber": "TSK-20261117-000007",
      "status": "NEW",
      "template": {
        "code": "TRADE_AIR_IMPORT_T1",
        "name": "空运进口T1"
      },
      "documents": [
        {
          "id": 19,
          "documentType": "bill_of_lading",
          "fileName": "AWB-784-85524025.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630
        },
        {
          "id": 20,
          "documentType": "commercial_invoice",
          "fileName": "invoice.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630
        },
        {
          "id": 21,
          "documentType": "packing_list",
          "fileName": "packing-list.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630
        }
      ],
      "h7": {
        "ticketId": "TKT20261117221634870",
        "status": "Pending",
        "statusLabel": "Pending",
        "itemCount": 3,
        "items": [
          {
            "LRN": "TKT20261117221634870-1",
            "customOrderNumber": "EXAMPLE-0001",
            "productId": "PROD-001",
            "hsCode": "854442",
            "skuCode": "SKU-001",
            "MPID": "7417455454945",
            "NSPID": "LINK-0786",
            "SPID": ""
          },
          {
            "LRN": "TKT20261117221634870-1",
            "customOrderNumber": "EXAMPLE-0001",
            "productId": "PROD-001",
            "hsCode": "854442",
            "skuCode": "SKU-001",
            "MPID": "7417455454945",
            "NSPID": "LINK-0786",
            "SPID": ""
          },
          {
            "LRN": "TKT20261117221634870-2",
            "customOrderNumber": "EXAMPLE-0002",
            "productId": "PROD-001",
            "hsCode": "854442",
            "skuCode": "SKU-001",
            "MPID": "7417455454945",
            "NSPID": "LINK-0786",
            "SPID": ""
          }
        ]
      }
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 201 in this example
Message.clearanceNumberStringUnique clearance application number
Message.statusStringCurrent business status (H7 status when nested under h7)
Message.templateObjectSelected clearance template
Message.template.codeStringTemplate code (when inside a template object)
Message.template.nameStringDisplay name
Message.documentsArrayAssociated clearance documents
Message.documents[].idIntegerReturned field; meaning depends on the parent object.
Message.documents[].documentTypeStringDocument category
Message.documents[].fileNameStringFilename
Message.documents[].mimeTypeStringMIME type
Message.documents[].fileSizeIntegerFile size value (unit not formally confirmed)
Message.h7ObjectReturned field; meaning depends on the parent object.
Message.h7.ticketIdStringH7 ticket identifier
Message.h7.statusStringCurrent business status (H7 status when nested under h7)
Message.h7.statusLabelStringHuman-readable H7 processing status
Message.h7.itemCountIntegerNumber of H7 goods items
Message.h7.itemsArrayH7 item associations
Message.h7.items[].LRNStringH7 declaration LRN; can be shared by multiple goods items
Message.h7.items[].customOrderNumberStringCustomer order reference
Message.h7.items[].productIdStringProduct identifier
Message.h7.items[].hsCodeStringHarmonized System code
Message.h7.items[].skuCodeStringSKU code
Message.h7.items[].MPIDStringMPID value (semantics require confirmation)
Message.h7.items[].NSPIDStringNSPID value (semantics require confirmation)
Message.h7.items[].SPIDStringSPID value (may be empty)
CUSTOMS CLEARANCE API

List clearance requests

#
GET/api/v3/customs/clearances

Retrieve paginated clearance applications. The confirmed request query is page=1.

Query parameters

ParameterTypeDescription
pageIntegerPage number; page=1 in supplied example. Other filters and page-size query parameters are not confirmed.
Cancelled clearance can report 100%

The supplied CANCELLED record reports progress 18/18 (100%) while all detailed nodes are SKIPPED. Treat percent as workflow terminal progress, not successful clearance.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794950012,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "data": [
        {
          "clearanceNumber": "TSK-20261117-000005",
          "title": "Air import customs clearance",
          "status": "CANCELLED",
          "priority": "NORMAL",
          "templateCode": "TRADE_AIR_IMPORT_T1",
          "templateName": "空运进口T1",
          "billOfLadingNo": "784-85524025",
          "customsTicketId": null,
          "customsDeclarationId": null,
          "dueAt": null,
          "createdAt": "2026-11-17 22:09:53",
          "updatedAt": "2026-11-17 23:11:03",
          "progress": {
            "total": 18,
            "finished": 18,
            "percent": 100
          }
        },
        {
          "clearanceNumber": "TSK-20261117-000004",
          "title": "Air import customs clearance",
          "status": "NEW",
          "priority": "NORMAL",
          "templateCode": "TRADE_AIR_IMPORT_T1",
          "templateName": "空运进口T1",
          "billOfLadingNo": "784-85524025",
          "customsTicketId": null,
          "customsDeclarationId": null,
          "dueAt": null,
          "createdAt": "2026-11-17 22:08:59",
          "updatedAt": "2026-11-17 22:08:59",
          "progress": {
            "total": 18,
            "finished": 0,
            "percent": 0
          }
        },
        {
          "clearanceNumber": "TSK-20261117-000003",
          "title": "Air import customs clearance",
          "status": "NEW",
          "priority": "NORMAL",
          "templateCode": "TRADE_AIR_IMPORT_T1",
          "templateName": "空运进口T1",
          "billOfLadingNo": "784-85524025",
          "customsTicketId": null,
          "customsDeclarationId": null,
          "dueAt": null,
          "createdAt": "2026-11-17 22:07:45",
          "updatedAt": "2026-11-17 22:07:45",
          "progress": {
            "total": 18,
            "finished": 0,
            "percent": 0
          }
        },
        {
          "clearanceNumber": "TSK-20261117-000002",
          "title": "Air import customs clearance",
          "status": "NEW",
          "priority": "NORMAL",
          "templateCode": "TRADE_AIR_IMPORT_T1",
          "templateName": "空运进口T1",
          "billOfLadingNo": "784-85524025",
          "customsTicketId": null,
          "customsDeclarationId": null,
          "dueAt": null,
          "createdAt": "2026-11-17 22:07:04",
          "updatedAt": "2026-11-17 22:07:05",
          "progress": {
            "total": 18,
            "finished": 0,
            "percent": 0
          }
        },
        {
          "clearanceNumber": "TSK-20261117-000001",
          "title": "Air import customs clearance",
          "status": "IN_PROGRESS",
          "priority": "NORMAL",
          "templateCode": "TRADE_AIR_IMPORT_T1",
          "templateName": "空运进口T1",
          "billOfLadingNo": "157-53726960",
          "customsTicketId": "TKT20261117205618244",
          "customsDeclarationId": 1,
          "dueAt": null,
          "createdAt": "2026-11-17 21:56:18",
          "updatedAt": "2026-11-17 22:01:23",
          "progress": {
            "total": 18,
            "finished": 3,
            "percent": 17
          }
        }
      ],
      "page": 1,
      "pages": 1,
      "limit": 25,
      "total": 5
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.dataArrayEvent-specific details or list results
Message.data[].clearanceNumberStringUnique clearance application number
Message.data[].titleStringRequest title
Message.data[].statusStringCurrent business status (H7 status when nested under h7)
Message.data[].priorityStringPriority value
Message.data[].templateCodeStringSelected template code
Message.data[].templateNameStringTemplate display name
Message.data[].billOfLadingNoStringBill of Lading / Air Waybill number
Message.data[].customsTicketIdString / Integer / NullCustoms ticket identifier if available
Message.data[].customsDeclarationIdString / Integer / NullDeclaration identifier if available
Message.data[].dueAtString / Integer / NullDue date, nullable
Message.data[].createdAtStringCreation timestamp
Message.data[].updatedAtStringLast update timestamp
Message.data[].progressObjectWorkflow progress summary
Message.data[].progress.totalIntegerTotal number of records or nodes (context-dependent)
Message.data[].progress.finishedIntegerNumber of terminal/finished workflow nodes
Message.data[].progress.percentIntegerWorkflow progress percent
Message.pageIntegerCurrent page number
Message.pagesIntegerTotal number of pages
Message.limitIntegerPage size reported by API
Message.totalIntegerTotal number of records or nodes (context-dependent)
CUSTOMS CLEARANCE API

Get clearance details

#
GET/api/v3/customs/clearances/{id}

Retrieve detailed clearance metadata and an array of workflow nodes, including execution results and retry configuration.

Path parameter

ParameterTypeDescription
idStringClearance application number, e.g. TSK-20261117-000005.
Cancellation example

The full 18-node response is for a CANCELLED request; all nodes are SKIPPED. The exact JSON is included below for reference. Do not interpret SKIPPED as successful customs execution.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794949898,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "clearanceNumber": "TSK-20261117-000005",
      "title": "Air import customs clearance",
      "description": "Customs clearance request created through API.",
      "status": "CANCELLED",
      "priority": "NORMAL",
      "template": {
        "id": 1,
        "code": "TRADE_AIR_IMPORT_T1",
        "name": "空运进口T1",
        "serviceType": "TRADE_AIR_IMPORT_T1"
      },
      "billOfLadingNo": "784-85524025",
      "customsTicketId": null,
      "customsDeclarationId": null,
      "draftId": 5,
      "dueAt": null,
      "createdAt": "2026-11-17 22:09:53",
      "updatedAt": "2026-11-17 23:11:03",
      "nodes": [
        {
          "id": 73,
          "key": "check_files",
          "name": "Documents contrôlés",
          "department": "空运进口",
          "sequence": 1,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 74,
          "key": "submit_order",
          "name": "Dédouanement soumis",
          "department": "空运进口",
          "sequence": 2,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 75,
          "key": "check_balance",
          "name": "Solde vérifié",
          "department": "审计部",
          "sequence": 3,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 76,
          "key": "customs_declaration_draft",
          "name": "Service douane informé (Ébauche)",
          "department": "空运进口",
          "sequence": 5,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 77,
          "key": "check_bonmag",
          "name": "Bon Mag reçu",
          "department": "空运进口",
          "sequence": 7,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": true,
            "intervalSeconds": 900,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 78,
          "key": "t1_notify_customs_broker",
          "name": "Service douane informé (T1)",
          "department": "空运进口",
          "sequence": 40,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 79,
          "key": "check_t1",
          "name": "T1 reçu",
          "department": "清关部",
          "sequence": 45,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": true,
            "intervalSeconds": 300,
            "maxCount": 100,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 80,
          "key": "notify_warehouse_department",
          "name": "通知仓储部门",
          "department": "空运进口",
          "sequence": 50,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 81,
          "key": "unloading_notification",
          "name": "Stocké à l'entrepôt Spider",
          "department": "Villepinte仓库部",
          "sequence": 55,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 82,
          "key": "check_balance_copy",
          "name": "Solde vérifié",
          "department": "审计部",
          "sequence": 98,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 83,
          "key": "notify_issue_final_customs_declaration",
          "name": "Service douane informé (IMA)",
          "department": "空运进口",
          "sequence": 100,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 84,
          "key": "check_bill_finaly",
          "name": "IMA reçu",
          "department": "清关部",
          "sequence": 105,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": true,
            "intervalSeconds": 3600,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 85,
          "key": "delivery_notice",
          "name": "Service transport informé",
          "department": "空运进口",
          "sequence": 110,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 86,
          "key": "confirm_delivery",
          "name": "Mise en livraison",
          "department": "订车运输部",
          "sequence": 200,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 87,
          "key": "check_cmr",
          "name": "CMR reçu",
          "department": "订车运输部",
          "sequence": 1002,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": true,
            "intervalSeconds": 2700,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 88,
          "key": "notify_accounting",
          "name": "Comptabilité informée",
          "department": "运营部",
          "sequence": 1500,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 89,
          "key": "check_invoice_exists",
          "name": "Facture confirmée",
          "department": "运营部",
          "sequence": 1999,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": true,
            "intervalSeconds": 3600,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        },
        {
          "id": 90,
          "key": "air_import_t1_end",
          "name": "Clôture import aérien T1",
          "department": "空运进口",
          "sequence": 2000,
          "status": "SKIPPED",
          "required": true,
          "result": {
            "passed": false,
            "status": "SKIPPED",
            "summary": "Customs clearance cancelled before this node was executed.",
            "reason": null,
            "cancelled_at": "2026-11-17T22:11:03+01:00"
          },
          "dueAt": null,
          "startedAt": null,
          "completedAt": "2026-11-17 23:11:03",
          "retry": {
            "enabled": false,
            "intervalSeconds": null,
            "maxCount": null,
            "count": 0,
            "suspendedAt": null,
            "nextRetryAt": null
          }
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.clearanceNumberStringUnique clearance application number
Message.titleStringRequest title
Message.descriptionStringRequest description
Message.statusStringCurrent business status (H7 status when nested under h7)
Message.priorityStringPriority value
Message.templateObjectSelected clearance template
Message.template.idIntegerReturned field; meaning depends on the parent object.
Message.template.codeStringTemplate code (when inside a template object)
Message.template.nameStringDisplay name
Message.template.serviceTypeStringTemplate service type identifier
Message.billOfLadingNoStringBill of Lading / Air Waybill number
Message.customsTicketIdString / Integer / NullCustoms ticket identifier if available
Message.customsDeclarationIdString / Integer / NullDeclaration identifier if available
Message.draftIdIntegerAssociated draft identifier
Message.dueAtString / Integer / NullDue date, nullable
Message.createdAtStringCreation timestamp
Message.updatedAtStringLast update timestamp
Message.nodesArrayWorkflow nodes or node progress information
Message.nodes[].idIntegerReturned field; meaning depends on the parent object.
Message.nodes[].keyStringWorkflow node key
Message.nodes[].nameStringDisplay name
Message.nodes[].departmentStringResponsible department
Message.nodes[].sequenceIntegerNode ordering number
Message.nodes[].statusStringCurrent business status (H7 status when nested under h7)
Message.nodes[].requiredBooleanWhether this workflow node is marked required
Message.nodes[].resultObjectNode execution result
Message.nodes[].result.passedBooleanWhether node execution passed
Message.nodes[].result.statusStringCurrent business status (H7 status when nested under h7)
Message.nodes[].result.summaryStringHuman-readable result summary
Message.nodes[].result.reasonString / Integer / NullAdditional reason, nullable
Message.nodes[].result.cancelled_atStringCancellation timestamp from this scenario
Message.nodes[].dueAtString / Integer / NullDue date, nullable
Message.nodes[].startedAtNullableNode start time, nullable
Message.nodes[].completedAtStringNode completion time, nullable
Message.nodes[].retryObjectNode retry settings
Message.nodes[].retry.enabledBooleanWhether retry is enabled
Message.nodes[].retry.intervalSecondsNullableRetry delay in seconds, nullable
Message.nodes[].retry.maxCountNullableRetry limit, nullable
Message.nodes[].retry.countIntegerRecorded retry count
Message.nodes[].retry.suspendedAtString / Integer / NullRetry suspension timestamp, nullable
Message.nodes[].retry.nextRetryAtString / Integer / NullNext retry timestamp, nullable

The response includes 18 workflow nodes. The retry object may contain null intervalSeconds/maxCount and node result may contain cancellation-related fields. Timestamp formats are mixed in the supplied response.

CUSTOMS CLEARANCE API

Get clearance status

#
GET/api/v3/customs/clearances/{id}/status

Retrieve the clearance business status and summarized node progress.

Path parameter

ParameterTypeDescription
idStringClearance application number, e.g. TSK-20261117-000005.
Status interpretation

Response.Status describes the API call. Message.status is the business status; nodes.progressPercent is workflow progress, not proof of customs release.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794949575,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "clearanceNumber": "TSK-20261117-000005",
      "status": "NEW",
      "customsTicketId": null,
      "customsDeclarationId": null,
      "nodes": {
        "total": 18,
        "finished": 0,
        "progressPercent": 0,
        "byStatus": {
          "WAITING": 17,
          "READY": 1
        }
      },
      "updatedAt": "2026-11-17 22:09:53"
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.clearanceNumberStringUnique clearance application number
Message.statusStringCurrent business status (H7 status when nested under h7)
Message.customsTicketIdString / Integer / NullCustoms ticket identifier if available
Message.customsDeclarationIdString / Integer / NullDeclaration identifier if available
Message.nodesObjectWorkflow nodes or node progress information
Message.nodes.totalIntegerTotal number of records or nodes (context-dependent)
Message.nodes.finishedIntegerNumber of terminal/finished workflow nodes
Message.nodes.progressPercentIntegerWorkflow progress percentage
Message.nodes.byStatusObjectCounts grouped by workflow node status
Message.nodes.byStatus.WAITINGIntegerNumber of waiting nodes
Message.nodes.byStatus.READYIntegerNumber of ready nodes
Message.updatedAtStringLast update timestamp
CUSTOMS CLEARANCE API

Submit clearance request

#
POST/api/v3/customs/clearances/{task_number}/submit

Submit a created clearance request. In the provided example, the business status becomes IN_PROGRESS.

Path parameter

ParameterTypeDescription
task_numberStringClearance application number, e.g. TSK-20261117-000005.
Create and submit are separate

POST /customs/clearances and POST /customs/clearances/h7 return NEW on creation; the supplied submit example then returns IN_PROGRESS. This is not evidence that the customs declaration has been released.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794950194,
    "Status": "SUCCEEDED",
    "Code": 201,
    "Message": {
      "clearanceNumber": "TSK-20261117-000007",
      "status": "IN_PROGRESS"
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 201 in this example
Message.clearanceNumberStringUnique clearance application number
Message.statusStringCurrent business status (H7 status when nested under h7)
CUSTOMS CLEARANCE API

List clearance documents

#
GET/api/v3/customs/clearances/{id}/documents

List attached document metadata and relative download URLs.

Path parameter

ParameterTypeDescription
idStringClearance application number, e.g. TSK-20261117-000005.
Download link

downloadUrl is a relative URL, e.g. /api/v3/customs/clearances/TSK-20261117-000005/documents/15. Combine it with the configured host. HTTP download headers, file encoding and access rules have not yet been confirmed.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794949753,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "clearanceNumber": "TSK-20261117-000005",
      "documents": [
        {
          "id": 15,
          "documentType": "packing_list",
          "fileName": "packing-list.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630,
          "createdAt": "2026-11-17 22:09:53",
          "downloadUrl": "/api/v3/customs/clearances/TSK-20261117-000005/documents/15"
        },
        {
          "id": 14,
          "documentType": "commercial_invoice",
          "fileName": "invoice.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630,
          "createdAt": "2026-11-17 22:09:53",
          "downloadUrl": "/api/v3/customs/clearances/TSK-20261117-000005/documents/14"
        },
        {
          "id": 13,
          "documentType": "bill_of_lading",
          "fileName": "AWB-784-85524025.pdf",
          "mimeType": "application/pdf",
          "fileSize": 630,
          "createdAt": "2026-11-17 22:09:53",
          "downloadUrl": "/api/v3/customs/clearances/TSK-20261117-000005/documents/13"
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.clearanceNumberStringUnique clearance application number
Message.documentsArrayAssociated clearance documents
Message.documents[].idIntegerReturned field; meaning depends on the parent object.
Message.documents[].documentTypeStringDocument category
Message.documents[].fileNameStringFilename
Message.documents[].mimeTypeStringMIME type
Message.documents[].fileSizeIntegerFile size value (unit not formally confirmed)
Message.documents[].createdAtStringCreation timestamp
Message.documents[].downloadUrlStringRelative API download URL
CUSTOMS CLEARANCE API

Get clearance events

#
GET/api/v3/customs/clearances/{id}/events

Retrieve clearance audit events, actors and type-specific event data.

Path parameter

ParameterTypeDescription
idStringClearance application number, e.g. TSK-20261117-000005.
Event-specific data

data properties vary with the type of event. The confirmed examples include CLEARANCE_CREATED and ATTACHMENT_UPLOADED. Actor email is anonymized for public documentation.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794949796,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "clearanceNumber": "TSK-20261117-000005",
      "events": [
        {
          "id": 36,
          "nodeId": null,
          "type": "CLEARANCE_CREATED",
          "actor": {
            "id": 243,
            "name": "api-user@example.com"
          },
          "data": {
            "source": "API_V3",
            "template_code": "TRADE_AIR_IMPORT_T1",
            "attachment_count": 3
          },
          "createdAt": "2026-11-17 22:09:53"
        },
        {
          "id": 35,
          "nodeId": null,
          "type": "ATTACHMENT_UPLOADED",
          "actor": {
            "id": 243,
            "name": "api-user@example.com"
          },
          "data": {
            "source": "API_V3",
            "file_name": "packing-list.pdf",
            "attachment_id": 15
          },
          "createdAt": "2026-11-17 22:09:53"
        },
        {
          "id": 34,
          "nodeId": null,
          "type": "ATTACHMENT_UPLOADED",
          "actor": {
            "id": 243,
            "name": "api-user@example.com"
          },
          "data": {
            "source": "API_V3",
            "file_name": "invoice.pdf",
            "attachment_id": 14
          },
          "createdAt": "2026-11-17 22:09:53"
        },
        {
          "id": 33,
          "nodeId": null,
          "type": "ATTACHMENT_UPLOADED",
          "actor": {
            "id": 243,
            "name": "api-user@example.com"
          },
          "data": {
            "source": "API_V3",
            "file_name": "AWB-784-85524025.pdf",
            "attachment_id": 13
          },
          "createdAt": "2026-11-17 22:09:53"
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.clearanceNumberStringUnique clearance application number
Message.eventsArrayRecorded events
Message.events[].idIntegerReturned field; meaning depends on the parent object.
Message.events[].nodeIdString / Integer / NullAssociated workflow node ID, nullable
Message.events[].typeStringEvent type
Message.events[].actorObjectActor information
Message.events[].actor.idIntegerReturned field; meaning depends on the parent object.
Message.events[].actor.nameStringDisplay name
Message.events[].dataObjectEvent-specific details or list results
Message.events[].data.sourceStringOrigin of event (e.g. API_V3)
Message.events[].data.template_codeStringTemplate code
Message.events[].data.attachment_countIntegerAttachment count
Message.events[].createdAtStringCreation timestamp
CUSTOMS CLEARANCE API

Cancel clearance request

#
DELETE/api/v3/customs/clearances/{id}/cancel

Cancel a clearance request and retrieve the new status and alreadyCancelled flag.

Path parameter

ParameterTypeDescription
idStringClearance application number, e.g. TSK-20261117-000005.
Cancellation constraints not documented

The example returns alreadyCancelled=false and status=CANCELLED. Allowed source states and repeated-cancellation behavior are not confirmed.

Success response example

JSON · verified example
{
  "Response": {
    "Date": 1794949863,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "clearanceNumber": "TSK-20261117-000005",
      "status": "CANCELLED",
      "alreadyCancelled": false
    }
  }
}

Response fields

FieldTypeDescription
Response.DateIntegerUnix timestamp of the API response
Response.StatusStringAPI call outcome; SUCCEEDED in this example
Response.CodeIntegerApplication result code; 200 in this example
Message.clearanceNumberStringUnique clearance application number
Message.statusStringCurrent business status (H7 status when nested under h7)
Message.alreadyCancelledBooleanWhether it was already cancelled before this operation