Create a shipment
API reference
Create a shipment
Book a covered shipment for the authenticated workspace.
POST
Create a shipment
Creates a shipment in
Returns
pending / awaiting_payment. The workspace must have PayChangu connected, and the route must be covered. API creates do not set created_by.
If the customer name and email already exist on the workspace, Kasiye links that customer. Otherwise it creates a customer record.
string
required
Customer display name.
string
required
Customer email.
number
Existing customer id on this workspace. Ignored if it belongs to another team.
string
Optional national id or similar identifier.
string
required
Human-readable pickup address.
number
required
Pickup latitude (
-90 to 90).number
required
Pickup longitude (
-180 to 180).string
required
Human-readable dropoff address.
number
required
Dropoff latitude (
-90 to 90).number
required
Dropoff longitude (
-180 to 180).number
required
Package weight in kilograms. Must be at least
0.01.201 with the shipment wrapped in data.