Create Shipment
create_shipmentCreate a PostNL shipment using a barcode plus sender and receiver addresses, and generate a PDF shipping label returned as base64 for printing or storage.
Instructions
Create a PostNL shipment and generate a shipping label. Requires a barcode (use generate_barcode first), sender address (AddressType 02), and receiver address (AddressType 01). Returns a PDF label as base64. Common product codes: 3085 (standard), 3385 (stated address only), 3090 (neighbour + return), 3087 (extra cover), 3089 (signature on delivery), 3533/3534 (pickup point). Evening delivery: use product option {Characteristic: '118', Option: '006'} with a DeliveryDate. WARNING: Creating a shipment incurs shipping costs. Always confirm with the user before calling this tool.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"barcode": "<barcode>",
"addresses": "<addresses>"
},
"name": "create_shipment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remark | No | Remark for the shipment | |
| barcode | Yes | The barcode for this shipment (use generate_barcode to create one) | |
| confirm | No | Confirm the shipment immediately (true) or save as concept (false) | |
| customs | No | Customs information (required for international shipments) | |
| contacts | No | Contact information for notifications | |
| addresses | Yes | Array of addresses. Must include sender (AddressType 02) and receiver (AddressType 01) | |
| dimension | No | Package dimensions | |
| reference | No | Your reference for this shipment | |
| printerType | No | Label output format | GraphicFile|PDF |
| deliveryDate | No | Requested delivery date (format: dd-MM-yyyy HH:mm:ss) | |
| productOptions | No | Additional product options | |
| productCodeDelivery | No | Product code: 3085 (standard), 3385 (evening), 3090 (pickup), 3087 (extra@home), 3089 (signature) | 3085 |