DELETE salesorder/cancel?customerNumber={customerNumber}&salesOrderNumber={salesOrderNumber}&purchaseOrderNumber={purchaseOrderNumber}
Submit request to process order cancellation
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerNumber |
Your ScanSource customer number |
string |
Required |
salesOrderNumber |
Specify sales order or purchase order number |
string |
None. |
purchaseOrderNumber |
Specify sales order or purchase order number |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
CancelOrderResponseName | Description | Type | Additional information |
---|---|---|---|
SalesOrderNumber |
Order number |
string |
None. |
OrderRejected |
Flag indicating reject order was accepted |
boolean |
None. |
Errors |
Errors |
Collection of ERPError |
None. |
Warnings |
Warnings |
Collection of ERPWarning |
None. |
Response Formats
application/json, text/json
Sample:
{ "SalesOrderNumber": "sample string 1", "OrderRejected": true, "Errors": [ { "Code": "sample string 1", "Message": "sample string 2" }, { "Code": "sample string 1", "Message": "sample string 2" } ], "Warnings": [ { "Code": "sample string 1", "Message": "sample string 2" }, { "Code": "sample string 1", "Message": "sample string 2" } ] }
application/xml, text/xml
Sample:
<CancelOrderResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SalesOrderNumber>sample string 1</SalesOrderNumber> <OrderRejected>true</OrderRejected> <Errors> <ERPError> <Code>sample string 1</Code> <Message>sample string 2</Message> </ERPError> <ERPError> <Code>sample string 1</Code> <Message>sample string 2</Message> </ERPError> </Errors> <Warnings> <ERPWarning> <Code>sample string 1</Code> <Message>sample string 2</Message> </ERPWarning> <ERPWarning> <Code>sample string 1</Code> <Message>sample string 2</Message> </ERPWarning> </Warnings> </CancelOrderResponse>