Shipping API Documentation
A practical developer reference for shipping rates, label creation, tracking and H7 customs clearance with Spider TL API v3.
Overview
Integrate shipping rates, label creation and shipment tracking into your application through Spider TL API v3.
1. Request rates → 2. Select carriers[].id → 3. Create shipment → 4. Retrieve labels and tracking numbers.
Authentication
Send your API token in the Authorization header on every request. The Postman collection uses host and variable_token variables.
{
"Authorization": "Bearer {{variable_token}}",
"Content-Type": "application/json"
}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.
Get shipping rates
Get available shipping services and price estimates using origin, destination and parcel weight.
/api/v3/shipments/ratesRequest example
{
"senderAddress": {
"countryCode": "FR",
"postalCode": "93300"
},
"receiverAddress": {
"countryCode": "FR",
"postalCode": "75002"
},
"parcels": [
{
"weight": 1
}
]
}Response example
{
"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"
}
}
]
}
}
}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 |
Create a shipment
Once the customer has selected a carrier, submit its rate-response carrierId together with the shipment details.
/api/v3/shipments/checkoutThe 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.
{
"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.
{
"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
{
"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) |
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 field | Meaning |
|---|---|
denomination | Product description |
hsCode | Customs HS code |
weight | Item weight (kg) |
value | Declared item value |
quantity | Item quantity |
originCountry | Country of origin (ISO alpha-2) |
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.
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.
/api/v3/tracking/findRequest example
{
"q": "EXAMPLE_TRACKING_NUMBER"
}Response fields have not been specified in the supplied materials. Confirm their structure using your authenticated API environment.
Company information lookup
Search company information using a keyword and postal code. The supplied Postman collection names this example G-A.
/api/v3/infos/companyRequest example
{
"q": "Easy",
"zipcode": "93300"
}No saved response schema was supplied for this operation.
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.
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.
{
"Response": {
"Date": 1765451621,
"Status": "SUCCEEDED",
"Code": 200,
"Message": {
"transactionId": "EXAMPLE_TRANSACTION_ID"
}
}
}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.
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.
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.
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).
Create H7 declaration
/api/v3/h7/createSubmit 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
{
"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
| Field | Type | Max length / allowed range | Validation requirement | Description & format |
|---|---|---|---|---|
goodsItems | Array of objects | — | Top-level request body | An array of objects in Postman; array constraints are not established by the supplied item validator. |
goodsItems[].customOrderNumber | String | 100 characters | Required, non-empty | Customer order reference. |
goodsItems[].bagGrade | Not validated here | Not specified | Not specified | Included in Postman and API response, but absent from this validate($item) method. |
goodsItems[].bagSizeInLength | Number | > 0 and ≤ 99999999.99 | Present; null/empty allowed | Package length; unit not enforced by this validator. |
goodsItems[].bagSizeInWidth | Number | > 0 and ≤ 99999999.99 | Present; null/empty allowed | Package width; unit not enforced by this validator. |
goodsItems[].bagSizeInHeight | Number | > 0 and ≤ 99999999.99 | Present; null/empty allowed | Package height; unit not enforced by this validator. |
goodsItems[].productId | String | 100 characters | Present; null/empty allowed | Product identifier. |
goodsItems[].packageBarcode | String | 100 characters | Required, non-empty | Package barcode; preserve leading zeros. |
goodsItems[].consignorName | String | 255 characters | Required, non-empty | Consignor name. |
goodsItems[].consignorCity | String | 150 characters | Present; null/empty allowed | Consignor city. |
goodsItems[].consignorZipCode | String | 30 characters | Present; null/empty allowed | Consignor postal code. |
goodsItems[].consignorAddress | String | 500 characters | Present; null/empty allowed | Consignor address. |
goodsItems[].consignorOrigin | String | 2 characters | Present; null/empty allowed | Consignor origin; exactly 2 uppercase A–Z letters when populated. |
goodsItems[].consigneeName | String | 255 characters | Required, non-empty | Consignee name. |
goodsItems[].recipientAddress | String | 500 characters | Present; null/empty allowed | Recipient full address. |
goodsItems[].countryCode | String | 2 characters | Required, non-empty | Destination country; exactly 2 uppercase A–Z letters. |
goodsItems[].cityOrTown | String | 150 characters | Present; null/empty allowed | Destination city or town. |
goodsItems[].street | String | 500 characters | Present; null/empty allowed | Destination street address. |
goodsItems[].zipCode | String | 30 characters | Present; null/empty allowed | Destination postal code. |
goodsItems[].ioss | String | 50 characters | Present; null/empty allowed | IOSS value where applicable. |
goodsItems[].skuDescription | String | 20000 characters | Required, non-empty | Goods / SKU description. |
goodsItems[].skuId | String | 100 characters | Present; null/empty allowed | SKU identifier. |
goodsItems[].currency | String | 3 characters | Required, non-empty | Currency; exactly 3 uppercase A–Z letters. |
goodsItems[].price | Number | 0 to 99999999999.9999 | Required, non-empty | Declared price; integer or floating-point JSON number. |
goodsItems[].quantity | Integer | 1 to 4294967295 | Required, non-empty | Must be a JSON integer, not a decimal or quoted numeric string. |
goodsItems[].weight | Number | > 0 and ≤ 99999999.9999 | Required, non-empty | Declared weight; integer or floating-point JSON number. |
goodsItems[].hsCode | String | 20 characters | Required, non-empty | HS code; exactly 6–10 digits (digits only), regardless of string capacity. |
goodsItems[].skuCode | String | 100 characters | Present; null/empty allowed | SKU code. |
goodsItems[].originCountry | String | 2 characters | Present; null/empty allowed | Goods origin; exactly 2 uppercase A–Z letters when populated. |
goodsItems[].type | String | 50 characters | Required, non-empty | Service-specific type; allowed values are not defined by this validator. |
goodsItems[].profile | String | 100 characters | Required, non-empty | Service profile; allowed values are not defined by this validator. |
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 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.
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
{
"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"
}
]
}
}
}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.
| Field | Type | Description |
|---|---|---|
Response.Date | Integer | Unix response timestamp. |
Response.Status | String | API processing result; SUCCEEDED in this sample. |
Response.Code | Integer | Application response code; 200 in this sample. |
Response.Message.TicketId | String | Identifier for the submitted ticket. |
Response.Message.Status / StatusLabel | String | Ticket processing status and its display label; Pending in this sample. |
Response.Message.Total | Integer | Number of returned items; 2 in this sample. |
Response.Message.Items | Array<object> | Created items with an LRN plus the submitted fields. |
Response.Message.Items[].LRN | String | LRN returned for the individual item. |
Get H7 declaration by LRN
/api/v3/h7/batches/{LRN}Retrieve the current details of a single H7 declaration by its Local Reference Number (LRN).
Path parameter
| Field | Type | Description |
|---|---|---|
LRN | String | Declaration reference in the URL path; for example 33W100-100-03. |
Request example
"GET /api/v3/h7/batches/33W100-100-03\nAuthorization: Bearer {{variable_token}}"Successful response example
{
"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": ""
}
}
}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
| Field | Type | Description |
|---|---|---|
Response.Message.LRN | String | Local Reference Number for the declaration. |
Response.Message.Status | String | Customs declaration status; BAE in the supplied success sample. |
Response.Message.UrlPDF | String | URL of the associated PDF, when returned. |
Response.Message.StatusLabel | String | Human-readable status; may be an empty string. |
Response.Message.CRN | String | CRN reference supplied by the API; exact operational definition not provided. |
Response.Message.MRN | String | Movement Reference Number. |
Response.Message.InternalReference | String | Internal reference value. |
Response.Message.Exporter | String | Exporter name. |
Response.Message.Profile | String | Service profile. |
Response.Message.Importer | String | Importer name. |
Response.Message.DataTags | String | Supplementary value; empty in the sample. |
Get declarations by ticket ID
/api/v3/h7/tickets/{ticketId}/batchesList the declarations associated with a given ticket identifier.
Path parameter
| Field | Type | Description |
|---|---|---|
ticketId | String | Ticket identifier in the request path. Use the value relevant to the ticket being queried. |
Request example
"GET /api/v3/h7/tickets/26FR617C06113209J5/batches\nAuthorization: Bearer {{variable_token}}"Successful response example
{
"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": ""
}
]
}
}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
| Field | Type | Description |
|---|---|---|
Response.Message[] | Array<object> | Declarations linked to the requested ticket. |
Response.Message[].LRN | String | Local Reference Number for the declaration. |
Response.Message[].Status | String | Customs declaration status; BAE in the supplied success sample. |
Response.Message[].UrlPDF | String | URL of the associated PDF, when returned. |
Response.Message[].StatusLabel | String | Human-readable status; may be an empty string. |
Response.Message[].CRN | String | CRN reference supplied by the API; exact operational definition not provided. |
Response.Message[].MRN | String | Movement Reference Number. |
Response.Message[].InternalReference | String | Internal reference value. |
Response.Message[].Exporter | String | Exporter name. |
Response.Message[].Profile | String | Service profile. |
Response.Message[].Importer | String | Importer name. |
Response.Message[].DataTags | String | Supplementary value; empty in the sample. |
Response formats and customs statuses
API request status and customs declaration status are separate fields. This distinction is important when interpreting a response.
| Field | Type | Description |
|---|---|---|
Response.Status | String | API result; the provided successful examples return SUCCEEDED. |
Response.Message.Status | String | Ticket status for create (Pending), or customs declaration status for lookup (BAE). |
Response.Message[].Status | String | Declaration status for each item in the ticket query array. |
BAE | Status code | Bon à enlever — customs released in the provided response. |
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.