POST api/{siteCode}/PurchaseOrder/AddOrderStatus
Adds an order status.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteCode |
The site code. |
integer |
Required |
Body Parameters
The order status.
OrderStatus| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID | integer |
Required |
|
| StatusCode | string |
String length: inclusive between 0 and 25 |
|
| StatusName | string |
String length: inclusive between 0 and 50 |
|
| StatusNotes | string |
String length: inclusive between 0 and 4000 |
|
| UserName | string |
String length: inclusive between 0 and 255 |
|
| CreatedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderID": 2,
"StatusCode": "sample string 3",
"StatusName": "sample string 4",
"StatusNotes": "sample string 5",
"UserName": "sample string 6",
"CreatedDate": "2025-12-07T07:02:56.1106891+00:00"
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HTTP Status Code 200
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |