We're announcing 🧑‍🚀 inter-galactic shipping ✨ for 3025!
Cosmo Cargo Inc.
Shipment API

Notifications

Server

Endpoints for tracking shipments and configuring notifications for shipment status updates.


Get shipment tracking events

GET
https://c1cf69108515455da09b5a33ff336111-oas.api.mockbin.io
/shipments/{shipmentId}/events
Bearer (JWT)
or
X-API-Key (header)

Retrieve detailed tracking events for a shipment

Get shipment tracking events › path Parameters

shipmentId
​string · uuid · required

Get shipment tracking events › Responses

200

Tracking events retrieved successfully

shipmentId
​string · uuid
​object[]

Set up notifications

POST
https://c1cf69108515455da09b5a33ff336111-oas.api.mockbin.io
/shipments/{shipmentId}/notifications
Bearer (JWT)
or
X-API-Key (header)

Configure notification preferences for shipment status updates

Set up notifications › path Parameters

shipmentId
​string · uuid · required

Set up notifications › Request Body

email
​string[]
sms
​string[]
webhooks
​string[]
events
​string[]
Enum values:
PICKUP_SCHEDULED
IN_TRANSIT
OUT_FOR_DELIVERY
DELIVERED
EXCEPTION

Set up notifications › Responses

Notification preferences updated

No data returned