[POST] .../v1/deliverycourier/add
Creates a new courier. Use this method to create a courier before assigning delivery orders or showing the courier in dispatch selectors. It creates one courier and returns new_id after validating a non-empty name up to 150 characters and optional description up to 300 characters. The caller must have courier add permission; missing body, invalid fields, denied access, duplicate or storage validation failures, and persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| description | String | Optional | Additional description. When provided, it must be no longer than 300 characters. |
| name | String | Required | Courier name. It cannot be empty and must be no longer than 150 characters. |
Request Example
{
"name": "Express Courier",
"description": "City courier service"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Insert | Created record result. |
Response Example
{
"ok": true,
"result": {
"new_id": 11
}
}