Skip to main content
POST
Create a shipment
Creates a shipment in 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.
Returns 201 with the shipment wrapped in data.
Connect PayChangu on the workspace first. Otherwise the API returns 422 on paychangu. Uncovered routes return 422 on coverage or weight_kg.