POST api/Store/ApproveOrder
Request Information
URI Parameters
None.
Body Parameters
ApproveOrderDTOName | Description | Type | Additional information |
---|---|---|---|
OrderId | integer |
None. |
|
BusinessId | integer |
None. |
|
LoginuserId | integer |
None. |
|
ApproveOrderList | Collection of ItemsOrderedListBase |
None. |
|
TransactionCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "OrderId": 1, "BusinessId": 2, "LoginuserId": 3, "ApproveOrderList": [ { "UnitsToSell": 1, "ItemId": 2, "Quantity": 3, "AvailableUnits": 4 }, { "UnitsToSell": 1, "ItemId": 2, "Quantity": 3, "AvailableUnits": 4 } ], "TransactionCode": "sample string 4" }
application/xml, text/xml
Sample:
<ApproveOrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ApproveOrderList> <ItemsOrderedListBase> <AvailableUnits>4</AvailableUnits> <ItemId>2</ItemId> <Quantity>3</Quantity> <UnitsToSell>1</UnitsToSell> </ItemsOrderedListBase> <ItemsOrderedListBase> <AvailableUnits>4</AvailableUnits> <ItemId>2</ItemId> <Quantity>3</Quantity> <UnitsToSell>1</UnitsToSell> </ItemsOrderedListBase> </ApproveOrderList> <BusinessId>2</BusinessId> <LoginuserId>3</LoginuserId> <OrderId>1</OrderId> <TransactionCode>sample string 4</TransactionCode> </ApproveOrderDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/04 03:50:09", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>