For the complete documentation index, see llms.txt. This page is also available as Markdown.

EU customs reform 2026

Product identifiers (PID) and recipient type for shipments imported into the EU

With the 2026 EU customs reform, some couriers require, for low-value shipments from outside the EU to recipients in the EU, the identification codes of each shipped product (Product Identifier, PID).

The codes are set on each line of dettagli_ordine, or in the rows of Orders, in the dati_doganali.pid object.

The keys of pid match the identifiers defined by the reform:

Key
Identifier
Content

merchant

M-PID

Merchant Product Identifier, the seller's item code

manufacturer

NS-PID

Non-standard Manufacturer Product Identifier, the manufacturer's code

standardized

S-PID

Standardized Product Identifier, the EAN/GTIN code

broker

none

Customs broker code

Gsped sends the codes to the courier in the shipment data and shows them on the proforma invoice, see Data sent to the couriers.

{
    "rcpt_type": 1,
    "dettagli_ordine": [
        {
            "sku": "PBK1",
            "description": "Cosa blu",
            "qty": "1",
            "um": "PCS",
            "barcode_riga": "8001234567890",
            "hs_code": "123456454",
            "prezzo_singolo": "12.50",
            "peso_riga": "1",
            "country_of_origin": "CN",
            "dati_doganali": {
                "pid": {
                    "merchant": "PBK1-BLU",
                    "manufacturer": "MF-001",
                    "standardized": "8001234567890",
                    "broker": "BRK-001"
                }
            }
        }
    ]
}

Compared to the original Shipment POST call, the following fields are added, with their description

Field
Required
Type
Description

rcpt_type

int

Recipient type: - 1 : Private - 2 : Business If not set it is 0 (not specified)

dettagli_ordine.dati_doganali.pid.merchant

string

M-PID, merchant code of the product, max 100 char If not set, the line sku is used, or the barcode_riga if the sku is missing

dettagli_ordine.dati_doganali.pid.manufacturer

string

NS-PID, manufacturer code of the product, max 100 char

dettagli_ordine.dati_doganali.pid.standardized

string

S-PID, EAN/GTIN code of the product: GTIN-8, GTIN-12, GTIN-13, GTIN-14 or ISBN-10 with a valid check digit, spaces and dashes are removed If not set, the barcode_riga is used, only if it is a valid GTIN

dettagli_ordine.dati_doganali.pid.broker

string

Broker code, max 64 char

dati_doganali can be sent as an object or as a JSON string and contains only the pid key. Keys other than the ones listed or invalid codes are rejected with a 400 error. An empty or null code is not saved. In the Orders PATCH, dati_doganali sent replaces the saved codes of the detail: codes not sent are deleted, null or empty deletes them all. If dati_doganali is not sent the codes stay unchanged.

Shipments subject to the checks

The checks are performed for the DHL, Spring and FedEx couriers on shipments with:

  • private or not specified recipient (rcpt_type 1 or 0)

  • sender outside the EU and recipient in the EU

  • value up to 150 €, values in another currency are converted into euro with the daily exchange rate

Return shipments are excluded and do not send product codes.

Errors

With a private recipient (rcpt_type 1), if a code set in the request is longer than the courier accepts, the shipment goes into error (status 0.6) and the error field reports the line to fix on the order.

Courier
Maximum length

DHL

35 char

Spring

64 char

Codes derived from sku or barcode_riga do not block the shipment: they are truncated by the courier and reported in the warnings. The line detail of the message is in Italian.

Warnings

The responses of Shipment POST, GET and PATCH, of Order To Shipment and of BulkShipment - closeMaster contain the warnings field, always present, with the warnings that do not block the shipment.

Field
Type
Description

code

string

Warning code

row

int

Index of the order line starting from 0, null for warnings on the shipment

sku

string

SKU of the line, null for warnings on the shipment

message

string

Description of the warning, in Italian: use code for automated checks

Code
Description

PID_TOO_LONG

The code is longer than the courier accepts and will be truncated

PID_MISSING

A code required by the courier is missing: - DHL and Spring: merchant code and manufacturer code - Spring: broker code for shipments to the USA

VALUE_MISSING

Shipment value missing, checks not performed

VALUE_NOT_VERIFIABLE

Value cannot be converted into euro, checks not performed

COUNTRY_NOT_VERIFIABLE

Origin or destination country cannot be verified, checks not performed

Data sent to the couriers

Courier
Data sent

DHL

Merchant code, manufacturer code and EAN/GTIN code, max 35 char. In consolidated shipments the master receives the lines of the children

FedEx

Merchant code, manufacturer code and EAN/GTIN code, if the EAN/GTIN code is missing NA is sent

Spring

All codes, max 64 char, see Spring

Asendia

EAN/GTIN code, see Asendia

The proforma invoice generated by Gsped shows the merchant, manufacturer and EAN/GTIN codes when they have been set.