POST api/orders/CreateOrders
Request Information
URI Parameters
None.
Body Parameters
OrdersDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| userid | integer |
None. |
|
| kioskid | integer |
None. |
|
| addressid | integer |
None. |
|
| ordernumber | string |
None. |
|
| orderdate | date |
None. |
|
| totalamount | decimal number |
None. |
|
| statusid | integer |
None. |
|
| status | string |
None. |
|
| paymentstatusid | integer |
None. |
|
| paymentmethodid | integer |
None. |
|
| shippingmethodid | integer |
None. |
|
| shippingdate | date |
None. |
|
| deliverydate | date |
None. |
|
| notes | string |
None. |
|
| createdat | date |
None. |
|
| updatedat | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"userid": 2,
"kioskid": 1,
"addressid": 1,
"ordernumber": "sample string 3",
"orderdate": "2025-12-17T10:13:43.9209193+03:00",
"totalamount": 1.0,
"statusid": 4,
"status": "sample string 5",
"paymentstatusid": 1,
"paymentmethodid": 1,
"shippingmethodid": 1,
"shippingdate": "2025-12-17T10:13:43.9209193+03:00",
"deliverydate": "2025-12-17T10:13:43.9209193+03:00",
"notes": "sample string 6",
"createdat": "2025-12-17T10:13:43.9209193+03:00",
"updatedat": "2025-12-17T10:13:43.9209193+03:00"
}
application/xml, text/xml
Sample:
<OrdersDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs"> <AddressID>1</AddressID> <CreatedAt>2025-12-17T10:13:43.9209193+03:00</CreatedAt> <DeliveryDate>2025-12-17T10:13:43.9209193+03:00</DeliveryDate> <ID>1</ID> <KioskID>1</KioskID> <Notes>sample string 6</Notes> <OrderDate>2025-12-17T10:13:43.9209193+03:00</OrderDate> <OrderNumber>sample string 3</OrderNumber> <PaymentMethodID>1</PaymentMethodID> <PaymentStatusID>1</PaymentStatusID> <ShippingDate>2025-12-17T10:13:43.9209193+03:00</ShippingDate> <ShippingMethodID>1</ShippingMethodID> <Status>sample string 5</Status> <StatusID>4</StatusID> <TotalAmount>1</TotalAmount> <UpdatedAt>2025-12-17T10:13:43.9209193+03:00</UpdatedAt> <UserID>2</UserID> </OrdersDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelOfOrdersDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| data | OrdersDTO |
None. |
|
| success | boolean |
None. |
|
| statusCode | integer |
None. |
|
| message | string |
None. |
|
| errorMessage | string |
None. |
|
| metadata | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"id": 1,
"userid": 2,
"kioskid": 1,
"addressid": 1,
"ordernumber": "sample string 3",
"orderdate": "2025-12-17T10:13:43.9229149+03:00",
"totalamount": 1.0,
"statusid": 4,
"status": "sample string 5",
"paymentstatusid": 1,
"paymentmethodid": 1,
"shippingmethodid": 1,
"shippingdate": "2025-12-17T10:13:43.9229149+03:00",
"deliverydate": "2025-12-17T10:13:43.9229149+03:00",
"notes": "sample string 6",
"createdat": "2025-12-17T10:13:43.9229149+03:00",
"updatedat": "2025-12-17T10:13:43.9229149+03:00"
},
"success": true,
"statusCode": 2,
"message": "sample string 3",
"errorMessage": "sample string 4",
"metadata": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfOrdersDTOqOm1f5oC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.Response">
<ErrorMessage>sample string 4</ErrorMessage>
<Message>sample string 3</Message>
<Metadata />
<StatusCode>2</StatusCode>
<Success>true</Success>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs">
<d2p1:AddressID>1</d2p1:AddressID>
<d2p1:CreatedAt>2025-12-17T10:13:43.9229149+03:00</d2p1:CreatedAt>
<d2p1:DeliveryDate>2025-12-17T10:13:43.9229149+03:00</d2p1:DeliveryDate>
<d2p1:ID>1</d2p1:ID>
<d2p1:KioskID>1</d2p1:KioskID>
<d2p1:Notes>sample string 6</d2p1:Notes>
<d2p1:OrderDate>2025-12-17T10:13:43.9229149+03:00</d2p1:OrderDate>
<d2p1:OrderNumber>sample string 3</d2p1:OrderNumber>
<d2p1:PaymentMethodID>1</d2p1:PaymentMethodID>
<d2p1:PaymentStatusID>1</d2p1:PaymentStatusID>
<d2p1:ShippingDate>2025-12-17T10:13:43.9229149+03:00</d2p1:ShippingDate>
<d2p1:ShippingMethodID>1</d2p1:ShippingMethodID>
<d2p1:Status>sample string 5</d2p1:Status>
<d2p1:StatusID>4</d2p1:StatusID>
<d2p1:TotalAmount>1</d2p1:TotalAmount>
<d2p1:UpdatedAt>2025-12-17T10:13:43.9229149+03:00</d2p1:UpdatedAt>
<d2p1:UserID>2</d2p1:UserID>
</Data>
</ResponseModelOfOrdersDTOqOm1f5oC>