Provider API

Provider API

This page has two groups of calls: the webhooks that GLS/NXT sends, and the operations that locker providers call.

Webhooks

Webhooks provide real-time updates on locker and parcel statuses by pushing notifications to specified URLs. This ensures Carriers stay informed about relevant events as they happen.

Webhook endpoints are designed to push updates about lockers, parcels, and other events to URLs provided by the Carrier. These endpoints include:

  • Locker Events: Enables carriers to receive real-time updates about locker status and details.
  • Parcel Events: Allows carriers to receive notifications about changes in parcel status.
  • Collection Events: Daily notifications about parcels that need to be picked up from lockers.

Key Features:

  • Real-time Updates: Push notifications for immediate awareness of changes.
  • Customizable URLs: Configure URLs to receive specific event updates.

Locker provider operations

The Locker Provider API section has the operations that a locker provider calls on GLS/NXT:

  • Validation: The locker asks if it can accept a parcel for a first-mile or last-mile deposit, or if a labelless reference code is still free, before it opens a compartment.
  • Label printing: The locker gets a label PDF for a parcel.

A provider sends these calls to the provider connector URL with its provider API key in the X-API-Key header. Carriers do not call these operations.

Tags