Generate Barcode
generate_barcodeGenerate a PostNL shipping barcode required before shipment creation; select the correct barcode type for mailbox, domestic, EU, letter, registered, or non-EU parcels.
Instructions
Generate a PostNL barcode for shipping. The barcode is required before creating a shipment. Types: 2S (mailbox parcel), 3S (domestic NL parcels), CC/CP/CD/CF (EU parcels), LA (EU letter), RI (registered international), UE (non-EU parcels).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Barcode type. 2S = mailbox parcel, 3S = domestic, CC = EU consumer parcel, CP = EU compact, CD = EU parcel, CF = EU bulk, LA = EU letter, RI = registered international, UE = non-EU | 3S |
| range | No | Customer code override (defaults to env POSTNL_CUSTOMER_CODE) | |
| serie | No | Barcode serie range | 000000000-999999999 |