Skip to content
PostNL logo

Connectors / Supply chain · HTTP Connector

PostNL integration and API

Create a shipment with label in PostNL. Connect PostNL to the rest of your supply chain stack with Tray.ai.

What can you do with PostNL on Tray.ai?

PostNL is the Dutch postal and parcel carrier, offering APIs for shipping labels, barcodes, returns, delivery options at checkout and address checks. Tray.ai connects to PostNL through the HTTP Connector, so your workflows can call the PostNL API alongside the rest of your stack. API access comes through PostNL's partner program or API plan, so you need approved credentials first.

  • Create a shipment with label when an order is ready to ship in your e-commerce platform.
  • Check a Dutch address when a customer enters it at checkout, before the order reaches your warehouse.
  • Get pickup locations near a customer's address and include them in your order confirmation email.
  • Get delivery time frames for a postcode so your checkout can offer customers a delivery slot.
Connects through
HTTP Connector
Authentication
An API key in a request header

Set it up

Connect PostNL to Tray.ai

Each step uses PostNL's own API details, from its documentation.

Step 1

Save PostNL's API key

Ask PostNL for API access. Once it's approved, save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Import a request from PostNL's docs

Add an HTTP Client step and paste a cURL example from PostNL's API docs. Tray.ai fills in the method, URL, headers, and query.

Step 3

Start with “Get pickup locations”

It's one of 7 documented actions, under Delivery options. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Create a shipment with label” and “Confirm a shipment” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with PostNL

Connect PostNL with Shopify and NetSuite

Each one uses actions and events from PostNL's own API documentation.

Create PostNL labels for new Shopify orders

When

An order is placed in Shopify

Then

  1. Check a Dutch address
  2. Create a shipment with label
  3. Add the tracking barcode to the order in Shopify

With Shopify

Ship NetSuite sales orders with PostNL

When

A sales order is approved in NetSuite

Then

  1. Create a shipment with label
  2. Confirm a shipment
  3. Save the barcode on the fulfillment in NetSuite

With NetSuite

Apps you can build on PostNL data

Internal tools your team can build with an AI assistant, each one using PostNL calls from its API documentation.

Shipping label desk

Lets warehouse staff check a Dutch address, then create a shipment with its label and confirm it.

Delivery options lookup

Lets a support agent look up pickup locations and delivery time frames for a customer's address.

Give your AI agents PostNL tools

Build an MCP server on PostNL in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a shipment with label
  • Get pickup locations
  • Check a Dutch address
  • Confirm a shipment
  • Generate a barcode
  • Get delivery time frames
  • Check an international address

What the PostNL API covers

3 resources and 7 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. PostNL gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.

Shipments

  • Create a shipment with label
  • Confirm a shipment
  • Generate a barcode

Delivery options

  • Get pickup locations
  • Get delivery time frames

Addresses

  • Check a Dutch address
  • Check an international address

Checked against PostNL's own documentation on 2026-11-01

developer.postnl.nl/browse-apis

Frequently asked questions

What can a Tray.ai workflow do in PostNL?

+

The PostNL API documents 7 actions across 3 resources (Shipments, Delivery options, Addresses). For example: Create a shipment with label; Get pickup locations; Check a Dutch address. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with PostNL?

+

The PostNL API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Do I need special access to the PostNL API?

+

Yes. PostNL gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.

See PostNL working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.