[POST] .../v1/deliveryfrom/add
Creates a new retail order source. Use this method to create a retail order source before assigning it to delivery orders or source-based reports. It creates one source and returns new_id after validating that name is provided and no longer than 250 characters. The caller must have retail order source add permission; missing body, invalid name, denied access, duplicate or storage validation failures and persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | String | Required | Retail order source name. It cannot be empty and must be no longer than 250 characters. |
Request Example
{
"name": "Website"
}
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": 7
}
}