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
string
required
A unique identifier for the customer within the courier account (e.g.,
"CUST001").string
required
Customer’s first name.
string
required
Customer’s last name.
string
The branch or pickup location to assign this customer to.
integer
default:"1"
Whether the customer is active. Pass
1 for active, 0 for inactive.string
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
string
required
The UUID of the customer record to update.
string
Update the customer’s unique user code.
string
Update the customer’s first name.
string
Update the customer’s last name.
string
Update the customer’s assigned branch.
integer
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.