Developers / API ReferenceAPI Version 3.0
SPIDER TL · DEVELOPER API

Shipping API Documentation

A practical developer reference for shipping rates, label creation, tracking and H7 customs clearance with Spider TL API v3.

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 sanitized 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 · H7

H7 customs clearance API

#

The H7 customs clearance endpoints allow clients to submit multiple goods items, retrieve a declaration by its LRN, and list declarations linked to a ticket.

ServiceH7 Customs Clearance
Base URLhttps://service.spider-tl.com
AuthenticationBearer token
Workflow

1. POST /api/v3/h7/create → receive TicketId and item LRN values → 2. Query individual declarations by LRN or query the collection by ticketId → 3. Read the customs status and available PDF URL.

Creation is not clearance

Response.Status = SUCCEEDED confirms the API operation, while Message.Status = Pending describes the submitted batch. It does not mean that customs clearance has been granted. An individual declaration can later report BAE (Bon à enlever / customs released).

Download H7 Postman collection →
H7 ENDPOINT

Create H7 declaration

#
POST/api/v3/h7/create

Submit an array of H7 goods items. The example below is taken from the supplied Postman collection and contains two items. Use your own values in production.

Request body

JSON
{
  "goodsItems": [
    {
      "customOrderNumber": "EXAMPLE-0002",
      "bagGrade": "EXAMPLE-0002-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": "Jean Dupont",
      "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": 12.5,
      "quantity": 1,
      "weight": 0.25,
      "hsCode": "854442",
      "skuCode": "SKU-001",
      "originCountry": "CN",
      "type": "A_CONFIRMER",
      "profile": "SPIDERVLP"
    },
    {
      "customOrderNumber": "EXAMPLE-0003",
      "bagGrade": "EXAMPLE-0002-2",
      "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": "Jean Dupont",
      "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": 12.5,
      "quantity": 1,
      "weight": 0.25,
      "hsCode": "854442",
      "skuCode": "SKU-001",
      "originCountry": "CN",
      "type": "A_CONFIRMER",
      "profile": "SPIDERVLP"
    }
  ]
}

Request fields

FieldTypeMax length / allowed rangeValidation requirementDescription & format
goodsItemsArray of objects—Top-level request bodyAn array of objects in Postman; array constraints are not established by the supplied item validator.
goodsItems[].customOrderNumberString100 charactersRequired, non-emptyCustomer order reference.
goodsItems[].bagGradeNot validated hereNot specifiedNot specifiedIncluded in Postman and API response, but absent from this validate($item) method.
goodsItems[].bagSizeInLengthNumber> 0 and ≤ 99999999.99Present; null/empty allowedPackage length; unit not enforced by this validator.
goodsItems[].bagSizeInWidthNumber> 0 and ≤ 99999999.99Present; null/empty allowedPackage width; unit not enforced by this validator.
goodsItems[].bagSizeInHeightNumber> 0 and ≤ 99999999.99Present; null/empty allowedPackage height; unit not enforced by this validator.
goodsItems[].productIdString100 charactersPresent; null/empty allowedProduct identifier.
goodsItems[].packageBarcodeString100 charactersRequired, non-emptyPackage barcode; preserve leading zeros.
goodsItems[].consignorNameString255 charactersRequired, non-emptyConsignor name.
goodsItems[].consignorCityString150 charactersPresent; null/empty allowedConsignor city.
goodsItems[].consignorZipCodeString30 charactersPresent; null/empty allowedConsignor postal code.
goodsItems[].consignorAddressString500 charactersPresent; null/empty allowedConsignor address.
goodsItems[].consignorOriginString2 charactersPresent; null/empty allowedConsignor origin; exactly 2 uppercase A–Z letters when populated.
goodsItems[].consigneeNameString255 charactersRequired, non-emptyConsignee name.
goodsItems[].recipientAddressString500 charactersPresent; null/empty allowedRecipient full address.
goodsItems[].countryCodeString2 charactersRequired, non-emptyDestination country; exactly 2 uppercase A–Z letters.
goodsItems[].cityOrTownString150 charactersPresent; null/empty allowedDestination city or town.
goodsItems[].streetString500 charactersPresent; null/empty allowedDestination street address.
goodsItems[].zipCodeString30 charactersPresent; null/empty allowedDestination postal code.
goodsItems[].iossString50 charactersPresent; null/empty allowedIOSS value where applicable.
goodsItems[].skuDescriptionString20000 charactersRequired, non-emptyGoods / SKU description.
goodsItems[].skuIdString100 charactersPresent; null/empty allowedSKU identifier.
goodsItems[].currencyString3 charactersRequired, non-emptyCurrency; exactly 3 uppercase A–Z letters.
goodsItems[].priceNumber0 to 99999999999.9999Required, non-emptyDeclared price; integer or floating-point JSON number.
goodsItems[].quantityInteger1 to 4294967295Required, non-emptyMust be a JSON integer, not a decimal or quoted numeric string.
goodsItems[].weightNumber> 0 and ≤ 99999999.9999Required, non-emptyDeclared weight; integer or floating-point JSON number.
goodsItems[].hsCodeString20 charactersRequired, non-emptyHS code; exactly 6–10 digits (digits only), regardless of string capacity.
goodsItems[].skuCodeString100 charactersPresent; null/empty allowedSKU code.
goodsItems[].originCountryString2 charactersPresent; null/empty allowedGoods origin; exactly 2 uppercase A–Z letters when populated.
goodsItems[].typeString50 charactersRequired, non-emptyService-specific type; allowed values are not defined by this validator.
goodsItems[].profileString100 charactersRequired, non-emptyService profile; allowed values are not defined by this validator.
How required fields are validated

For every field listed in this table except goodsItems and bagGrade, the server requires the property to be present in each goods item. “Present; null/empty allowed” means the property may contain null or ""; it does not mean it may be omitted. Required fields must be non-null, non-empty, and meet type/format rules. For required strings, whitespace-only values are rejected after trimming. String lengths are checked after trimming using UTF-8 characters when mb_strlen is available (otherwise byte length).

Numeric and format constraints

Numeric fields accept JSON integer or floating-point values, except quantity, which requires a JSON integer. Numeric strings such as "12.5" are invalid. All numeric values must be finite. The validator checks range but does not explicitly restrict decimal places. countryCode, consignorOrigin, and originCountry use ^[A-Z]{2}$ when populated; currency uses ^[A-Z]{3}$; hsCode uses ^[0-9]{6,10}$. These patterns validate format, not membership in official code lists.

Validation scope

The supplied validate($item) function validates one goods item. It does not define a maximum number of goodsItems, nor does it validate bagGrade or establish minimum and maximum length for that field. Other server-side validation may exist outside this function.

Successful response example

JSON
{
  "Response": {
    "Date": 1794432558,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "TicketId": "TKT20261111222848860",
      "Status": "Pending",
      "StatusLabel": "Pending",
      "Total": 2,
      "Items": [
        {
          "LRN": "TKT20261111222848860-1",
          "customOrderNumber": "EXAMPLE-0002",
          "bagGrade": "EXAMPLE-0002-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": "Jean Dupont",
          "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": 12.5,
          "quantity": 1,
          "weight": 0.25,
          "hsCode": "854442",
          "skuCode": "SKU-001",
          "originCountry": "CN",
          "type": "A_CONFIRMER",
          "profile": "SPIDERVLP"
        },
        {
          "LRN": "TKT20261111222848860-2",
          "customOrderNumber": "EXAMPLE-0003",
          "bagGrade": "EXAMPLE-0002-2",
          "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": "Jean Dupont",
          "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": 12.5,
          "quantity": 1,
          "weight": 0.25,
          "hsCode": "854442",
          "skuCode": "SKU-001",
          "originCountry": "CN",
          "type": "A_CONFIRMER",
          "profile": "SPIDERVLP"
        }
      ]
    }
  }
}
Identifier relationship

One creation response includes a batch TicketId and separate Items[].LRN values. The example returns two items and Total = 2. Do not substitute bagGrade for LRN.

FieldTypeDescription
Response.DateIntegerUnix response timestamp.
Response.StatusStringAPI processing result; SUCCEEDED in this sample.
Response.CodeIntegerApplication response code; 200 in this sample.
Response.Message.TicketIdStringIdentifier for the submitted ticket.
Response.Message.Status / StatusLabelStringTicket processing status and its display label; Pending in this sample.
Response.Message.TotalIntegerNumber of returned items; 2 in this sample.
Response.Message.ItemsArray<object>Created items with an LRN plus the submitted fields.
Response.Message.Items[].LRNStringLRN returned for the individual item.
H7 ENDPOINT

Get H7 declaration by LRN

#
GET/api/v3/h7/batches/{LRN}

Retrieve the current details of a single H7 declaration by its Local Reference Number (LRN).

Path parameter

FieldTypeDescription
LRNStringDeclaration reference in the URL path; for example 33W100-100-03.

Request example

HTTP
"GET /api/v3/h7/batches/33W100-100-03\nAuthorization: Bearer {{variable_token}}"

Successful response example

JSON
{
  "Response": {
    "Date": 1794434632,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": {
      "LRN": "33W100-100-03",
      "Status": "BAE",
      "UrlPDF": "https://service.spider-tl.com/storage/trade/26FR617C06113209J5/33W100-100-03.pdf",
      "StatusLabel": "",
      "CRN": "XXXX48261699",
      "MRN": "26FRXXXX482616XXXX",
      "InternalReference": "112-90849220",
      "Exporter": "Example Exporter Ltd",
      "Profile": "SPIDERVLP",
      "Importer": "Example Importer",
      "DataTags": ""
    }
  }
}
Response shape

For this endpoint, Response.Message is a single object, not an array. UrlPDF is a returned document URL and can use a different host from the API base URL. The example URL is illustrative and may not remain accessible.

Message fields

FieldTypeDescription
Response.Message.LRNStringLocal Reference Number for the declaration.
Response.Message.StatusStringCustoms declaration status; BAE in the supplied success sample.
Response.Message.UrlPDFStringURL of the associated PDF, when returned.
Response.Message.StatusLabelStringHuman-readable status; may be an empty string.
Response.Message.CRNStringCRN reference supplied by the API; exact operational definition not provided.
Response.Message.MRNStringMovement Reference Number.
Response.Message.InternalReferenceStringInternal reference value.
Response.Message.ExporterStringExporter name.
Response.Message.ProfileStringService profile.
Response.Message.ImporterStringImporter name.
Response.Message.DataTagsStringSupplementary value; empty in the sample.
H7 ENDPOINT

Get declarations by ticket ID

#
GET/api/v3/h7/tickets/{ticketId}/batches

List the declarations associated with a given ticket identifier.

Path parameter

FieldTypeDescription
ticketIdStringTicket identifier in the request path. Use the value relevant to the ticket being queried.

Request example

HTTP
"GET /api/v3/h7/tickets/26FR617C06113209J5/batches\nAuthorization: Bearer {{variable_token}}"

Successful response example

JSON
{
  "Response": {
    "Date": 1794434054,
    "Status": "SUCCEEDED",
    "Code": 200,
    "Message": [
      {
        "LRN": "33W100-100-03",
        "Status": "BAE",
        "UrlPDF": "https://service.spider-tl.com/storage/trade/26FR617C06113209J5/33W100-100-03.pdf",
        "StatusLabel": "",
        "CRN": "XXXX48261699",
        "MRN": "26FRXXXX482616XXXX",
        "InternalReference": "112-90849220",
        "Exporter": "Example Exporter Ltd",
        "Profile": "SPIDERVLP",
        "Importer": "Example Importer",
        "DataTags": ""
      },
      {
        "LRN": "33W100-100-04",
        "Status": "BAE",
        "UrlPDF": "https://service.spider-tl.com/storage/trade/26FR617C06113209J5/33W100-100-04.pdf",
        "StatusLabel": "",
        "CRN": "XXXX48261709",
        "MRN": "26FRXXXX482617XXXX",
        "InternalReference": "112-90849220",
        "Exporter": "Example Exporter Ltd",
        "Profile": "SPIDERVLP",
        "Importer": "Example Importer 2",
        "DataTags": ""
      }
    ]
  }
}
Response shape

Unlike the single-LRN endpoint, this endpoint returns Response.Message as an array of objects. The supplied sample has two declaration records. Do not assume that the ticket ID in this GET example has the same format as the TicketId shown in the creation example.

Array item fields

FieldTypeDescription
Response.Message[]Array<object>Declarations linked to the requested ticket.
Response.Message[].LRNStringLocal Reference Number for the declaration.
Response.Message[].StatusStringCustoms declaration status; BAE in the supplied success sample.
Response.Message[].UrlPDFStringURL of the associated PDF, when returned.
Response.Message[].StatusLabelStringHuman-readable status; may be an empty string.
Response.Message[].CRNStringCRN reference supplied by the API; exact operational definition not provided.
Response.Message[].MRNStringMovement Reference Number.
Response.Message[].InternalReferenceStringInternal reference value.
Response.Message[].ExporterStringExporter name.
Response.Message[].ProfileStringService profile.
Response.Message[].ImporterStringImporter name.
Response.Message[].DataTagsStringSupplementary value; empty in the sample.
H7 REFERENCE

Response formats and customs statuses

#

API request status and customs declaration status are separate fields. This distinction is important when interpreting a response.

FieldTypeDescription
Response.StatusStringAPI result; the provided successful examples return SUCCEEDED.
Response.Message.StatusStringTicket status for create (Pending), or customs declaration status for lookup (BAE).
Response.Message[].StatusStringDeclaration status for each item in the ticket query array.
BAEStatus codeBon à enlever — customs released in the provided response.
Status catalogue is not exhaustive

The attached H7 collection contains no response examples or complete enumeration for errors and other customs statuses. This page documents only states evidenced by the supplied responses: Pending and BAE.

The example exporter/importer names have been anonymized for public documentation. JSON keys, value types, object/array structures, and reference formats are preserved.