Endpoint
POST — Create a Customer
Create a new customer record. Returns a409 Conflict if the provided user_code already exists within the courier account.
Request Body
A unique identifier for the customer within the courier account (e.g.,
"CUST001").Customer’s first name.
Customer’s last name.
The branch or pickup location to assign this customer to.
Whether the customer is active. Pass
1 for active, 0 for inactive.The courier organization to assign this customer to. Required for admin and manager roles. Courier role users have this field auto-set to their own account.
Example Request
Response
PUT — Update a Customer
Update one or more fields on an existing customer record. Only the fields you include in the request body are changed.Request Body
The UUID of the customer record to update.
Update the customer’s unique user code.
Update the customer’s first name.
Update the customer’s last name.
Update the customer’s assigned branch.
Set to
1 to activate or 0 to deactivate the customer.Example Request
Response
DELETE — Remove a Customer
Permanently delete a customer record. This action cannot be undone. You can identify the target customer using either method:- Query Parameter
- Request Body
Pass the customer UUID as a query string parameter:
Response
Role-Based Access
Courier role users can only create, update, and delete customers within their own courier organization. Admin and manager roles have cross-courier access and must pass
courier_id when creating customers.| Operation | Courier Role | Manager Role | Admin Role |
|---|---|---|---|
| Create customer | Own account only | Any courier | Any courier |
| Update customer | Own account only | Any courier | Any courier |
| Delete customer | Own account only | Any courier | Any courier |
Filter by courier_id | Ignored (auto-scoped) | Supported | Supported |