Booking Management¶
Core API
CRUD Operations
Comprehensive endpoints for managing shipment bookings throughout their lifecycleโfrom creation to fulfillment. Handle single bookings, multipiece shipments, and track booking states.
9 Endpoints
Full booking lifecycle
Auth
Bearer token required
Base URL
/partner/booking/
Available endpoints¶
Single bookings¶
| Endpoint | Method | Description |
|---|---|---|
| Create Booking | POST |
Create a new shipment booking with sender/receiver details |
| Update Booking | PUT |
Modify an existing booking's details |
| List Bookings | GET |
Retrieve paginated list of all bookings |
| Get Booking By ID | GET |
Retrieve complete details for a specific booking |
| Fetch Recent Bookings | GET |
Get recently created bookings with cursor pagination |
| Delete Booking | DELETE |
Remove a booking from the system |
Multipiece bookings¶
| Endpoint | Method | Description |
|---|---|---|
| Create Multipiece | POST |
Combine multiple bookings into a single shipment |
| Update Multipiece | PATCH |
Add or remove bookings from a multipiece |
| Get Multipiece By ID | GET |
Retrieve multipiece booking details |
Booking lifecycle¶
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ Created โ โโบ โ Paid โ โโบ โ Processed โ โโบ โ Shipped โ
โ (State 1) โ โ (State 2) โ โ (State 3) โ โ (State 8) โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
See Booking Enums for complete state definitions.
Common use cases¶
Creating a booking¶
- Authenticate to get a bearer token
- Call Create Booking with sender, receiver, and package details
- Receive booking ID and calculated quote
- Process payment using Transaction endpoints
Tracking bookings¶
- Use List Bookings for dashboard views
- Use Fetch Recent Bookings for incremental syncing
- Use Get Booking By ID for detailed single-booking views
Multipiece shipments¶
For shipments with multiple packages going to the same destination:
- Create individual bookings for each package
- Use Create Multipiece to combine them
- Add/remove packages with Update Multipiece
Related resources¶
- Invoices โ View and manage booking invoices
- Transactions โ Process payments for bookings
- Shipments โ Track shipped bookings
- Booking Enums โ State codes and type definitions
API authorization¶
All Booking Management endpoints require authorization via API tokens. Ensure each request includes a valid Authorization header:
Authorization: Bearer {{ your_token }}
See Authentication for token generation.