DELETE Order/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
OrderViewName | Description | Type | Additional information |
---|---|---|---|
OrderId | integer |
None. |
|
IsPayed | boolean |
None. |
|
PayDate | date |
None. |
|
CancelDate | date |
None. |
|
CancelReason | string |
None. |
|
OrderStatus | OrderStatusView |
None. |
|
OrderStatusDate | date |
None. |
|
DelivaryPrice | decimal number |
None. |
|
DelivaryAddress | string |
None. |
|
Price | decimal number |
None. |
|
DiscountValue | decimal number |
None. |
|
CreateDate | date |
None. |
|
UpdateDate | date |
None. |
|
User | ShortUserView |
None. |
|
PersonType | PersonTypeView |
None. |
|
PaySystemId | integer |
None. |
|
TransportCompany | TransportCompanyView |
None. |
|
UserDescription | string |
None. |
|
AdditionalInfo | string |
None. |
|
Comments | string |
None. |
|
OrderItems | Collection of OrderItemView |
None. |
Response Formats
application/json, text/json
Sample:
{ "OrderId": 1, "IsPayed": true, "PayDate": "2025-01-22T23:12:24.9414565+03:00", "CancelDate": "2025-01-22T23:12:24.9414565+03:00", "CancelReason": "sample string 3", "OrderStatus": { "OrderStatusId": 1, "Code": "sample string 2", "Title": "sample string 3", "Description": "sample string 4" }, "OrderStatusDate": "2025-01-22T23:12:24.9414565+03:00", "DelivaryPrice": 1.0, "DelivaryAddress": "sample string 5", "Price": 6.0, "DiscountValue": 1.0, "CreateDate": "2025-01-22T23:12:24.9414565+03:00", "UpdateDate": "2025-01-22T23:12:24.9414565+03:00", "User": { "Id": "sample string 1", "UserName": "sample string 2", "FullName": "sample string 3", "AvatarUrl": "sample string 4" }, "PersonType": { "PersonTypeId": 1, "Code": "sample string 2", "Title": "sample string 3", "Description": "sample string 4" }, "PaySystemId": 1, "TransportCompany": { "TransportCompanyId": 1, "Title": "sample string 2", "Description": "sample string 3", "Text": "sample string 4", "SeoTitle": "sample string 5", "SeoDescription": "sample string 6", "Keywords": "sample string 7", "Price": 8.0, "LogoUrl": "sample string 9" }, "UserDescription": "sample string 9", "AdditionalInfo": "sample string 10", "Comments": "sample string 11", "OrderItems": [ { "OrderItemId": 1, "Quantity": 2, "ColorSourceCode": "sample string 3", "ProductName": "sample string 4", "ProductFullName": "sample string 5", "ProductSourceCode": "sample string 6", "ProductDescription": "sample string 7", "ProductImageUrl": "sample string 8", "PriceValue": 9.0, "CurrencySourceCode": "sample string 10" }, { "OrderItemId": 1, "Quantity": 2, "ColorSourceCode": "sample string 3", "ProductName": "sample string 4", "ProductFullName": "sample string 5", "ProductSourceCode": "sample string 6", "ProductDescription": "sample string 7", "ProductImageUrl": "sample string 8", "PriceValue": 9.0, "CurrencySourceCode": "sample string 10" } ] }
application/xml, text/xml
Sample:
<OrderView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PackageSite.Models.View"> <AdditionalInfo>sample string 10</AdditionalInfo> <CancelDate>2025-01-22T23:12:24.9414565+03:00</CancelDate> <CancelReason>sample string 3</CancelReason> <Comments>sample string 11</Comments> <CreateDate>2025-01-22T23:12:24.9414565+03:00</CreateDate> <DelivaryAddress>sample string 5</DelivaryAddress> <DelivaryPrice>1</DelivaryPrice> <DiscountValue>1</DiscountValue> <IsPayed>true</IsPayed> <OrderId>1</OrderId> <OrderItems> <OrderItemView> <ColorSourceCode>sample string 3</ColorSourceCode> <CurrencySourceCode>sample string 10</CurrencySourceCode> <OrderItemId>1</OrderItemId> <PriceValue>9</PriceValue> <ProductDescription>sample string 7</ProductDescription> <ProductFullName>sample string 5</ProductFullName> <ProductImageUrl>sample string 8</ProductImageUrl> <ProductName>sample string 4</ProductName> <ProductSourceCode>sample string 6</ProductSourceCode> <Quantity>2</Quantity> </OrderItemView> <OrderItemView> <ColorSourceCode>sample string 3</ColorSourceCode> <CurrencySourceCode>sample string 10</CurrencySourceCode> <OrderItemId>1</OrderItemId> <PriceValue>9</PriceValue> <ProductDescription>sample string 7</ProductDescription> <ProductFullName>sample string 5</ProductFullName> <ProductImageUrl>sample string 8</ProductImageUrl> <ProductName>sample string 4</ProductName> <ProductSourceCode>sample string 6</ProductSourceCode> <Quantity>2</Quantity> </OrderItemView> </OrderItems> <OrderStatus> <Code>sample string 2</Code> <Description>sample string 4</Description> <OrderStatusId>1</OrderStatusId> <Title>sample string 3</Title> </OrderStatus> <OrderStatusDate>2025-01-22T23:12:24.9414565+03:00</OrderStatusDate> <PayDate>2025-01-22T23:12:24.9414565+03:00</PayDate> <PaySystemId>1</PaySystemId> <PersonType> <Code>sample string 2</Code> <Description>sample string 4</Description> <PersonTypeId>1</PersonTypeId> <Title>sample string 3</Title> </PersonType> <Price>6</Price> <TransportCompany> <Description>sample string 3</Description> <Keywords>sample string 7</Keywords> <LogoUrl>sample string 9</LogoUrl> <Price>8</Price> <SeoDescription>sample string 6</SeoDescription> <SeoTitle>sample string 5</SeoTitle> <Text>sample string 4</Text> <Title>sample string 2</Title> <TransportCompanyId>1</TransportCompanyId> </TransportCompany> <UpdateDate>2025-01-22T23:12:24.9414565+03:00</UpdateDate> <User> <AvatarUrl>sample string 4</AvatarUrl> <FullName>sample string 3</FullName> <Id>sample string 1</Id> <UserName>sample string 2</UserName> </User> <UserDescription>sample string 9</UserDescription> </OrderView>