PostPlus API
  1. Scenarios And Workflows
PostPlus API
  • Authentication, Environments
  • Endpoints Overview
    • Parcels Endpoints
    • Shipments Endpoints
    • Tracking Endpoints
    • Accounts Endpoints
  • Scenarios And Workflows
    • Working with parcels
    • Create or update parcel record
    • Cancel or delete a parcel record
    • Manifesting parcels in bags and shipments
    • Query parcel tracking events
    • Import parcel tracking events
  • All API Endpoints
    • Parcels
      • Create or update single parcel.
      • Create or update up to 200 parcels in a single request.
      • Get parcel details by parcel Id.
      • Get up to 100 parcels details by parcel Ids.
      • Get parcel details by parcel number (tracking number).
      • Get up to 100 parcels details by parcel numbers (tracking numbers).
      • Get parcel details by sender reference number.
      • Get up to 100 parcel details by sender reference numbers.
      • Query up to 500 parcels.
      • Delete parcel by Id.
      • Delete up to 100 parcels by Ids.
      • Get print details and contents by print Id.
      • Get up to 100 parcel print details and contents by print Ids.
      • Get pickup point details by Id.
      • Query pickup points.
      • Group parcels into bags and link to a shipment (update parcel references). When AllowPartialSuccess is true, valid parcels are updated and invalid ones returned in FailedParcels.
      • Get parcel details by manifest reference numbers.
      • Get up to 100 parcel details by manifest reference numbers.
      • Get parcel details by carrier reference numbers.
      • Get up to 100 parcel details by carrier reference numbers.
    • Shipments
      • Cancel erroneous parcels in a shipment.
      • Delete shipment manifest file.
      • Create new shipment.
      • Create new bag level shipment.
      • Update bag level shipment.
      • Link parcels with specified bag numbers to a shipment.
      • Validate and prepare shipment for submitting.
      • Submit and lock shipment and it's parcels.
      • Group parcels into bags and link to a shipment, then prepare and submit shipment in one transaction.
      • Delete shipment.
      • Update shipment.
      • Get shipment details by shipment id.
      • Query up to 500 shipments.
      • Upload shipment manifest file.
      • Upload shipment document.
      • Get shipment details by shipment number.
    • Documents
      • Download manifest file.
      • Download shipment documents in archive file.
      • Download shipment document file by Id.
      • Download parcel label by Id.
      • Generate and download generic bag labels.
      • Generate and download bag label.
      • Download resulting (processed) manifest file.
      • Generate and download shipment parcel labels.
      • Generate and download parcel commercial invoices.
      • Download resulting (processed) shipment file.
    • Tracking
      • Fetch up to 500 tracking events in cursor fashion.
      • Get event codes and other metadata.
      • Get tracking events by the list of parcel numbers, up to 50, comma separated.
      • Get tracking events by the list of sender reference numbers, up to 50, comma separated.
      • Get tracking events by the list of parcel numbers or sender reference numbers, up to 50, comma separated.
      • Get bag tracking events by the list of bag numbers, up to 50, comma separated.
      • Get bag tracking events by the list of bag numbers or shipment numbers, up to 50, comma separated.
      • Upload tracking events file.
    • Accounts
      • Get current account details.
    • Integrations
      • Add up to 500 tracking events to the processing queue. The whole batch either succeeds or fails.
      • Add tracking event with generic payload.
  1. Scenarios And Workflows

Import parcel tracking events

Overview of tracking related endpoints: Tracking Endpoints
šŸ“Œ Request Rate Limits
PostPlus API applies rate limiting (normally 5 requests per second), so integrators must use batch operations whenever possible, not one-by-one.

Importing tracking events to PostPlus system#

Add up to 500 tracking events to the processing queue. The whole batch either succeeds or fails.
The example import payload contains 2 events, one with explicit eventId and one with auto-generated (autogenraed based on event time, event parcel number etc).
When integrators have their own unique tracking event ids, they can provide them in eventId parameter, and so the subsequent request with same eventId will update the exiting event instead of creating a new one.
@host = https://api.test.post-plus.io
@integrationApiKey = "integration-api-key-12345"

POST {{host}}/api/v1/integrations/tracking-import
content-type: application/json
X-API-KEY: {{integrationApiKey}}

{
  "events": [
    {
      "eventId": "SomeExternalSourceUNiqueEventId012356",
      "eventSourceAlt": "SomeExternalSource",
      "eventCode": "DELIVERED",
      "eventMessage": "Delivered to the recipient",
      "eventTime": "2024-04-04 04:04:00",
      "eventLocation": "Location",
      "trackingNr": "PARCEL-NR-1"
    },
    {
      "eventSourceAlt": "SomeExternalSource",
      "eventCode": "DELIVERED",
      "eventMessage": "Delivered to the recipient",
      "eventTime": "2024-04-04 04:04:00",
      "eventLocation": "Location",
      "trackingNr": "PARCEL-NR-2"
    }
  ]
}
Add tracking event with generic/custom payload.
This endpoint should be used by the agreement with PostPlus when events in custom format are inserted into the queue and then processed by the custom logic implmented by the PostPlus.
@host = https://api.test.post-plus.io
@integrationApiKey = integration-api-key-12345

POST {{host}}/api/v1/integrations/tracking-import-generic?DataSource=IntegratorName
content-type: application/json
X-API-KEY: {{integrationApiKey}}

{
  "integratorEventCode": "deliveredCode",
  "integratorEventMessage": "parcel was delivered",
  "date": "2025-01-01"
}
Previous
Query parcel tracking events
Next
Create or update single parcel.
Built with