API for updating sales order details using the Update Sales Order API. This API is used to update sales order or its cancellation. If sales invoice exists with this sales order then it will cancel the sales invoice also along with the sales order.
These are form parameters:
Parameter | Data Type | Required/Optional | Description |
---|---|---|---|
SecureKey | int | Required | It is a Unique key for accessing the API. For secure key email to support team. |
salesOrderNumber | String | Required | It takes sales order number for which user wants to update the details. |
cancel | Boolean | Optional | It takes boolean value (true/false).If true then it will cancel the sales order. |
shippingCity | String | Optional | Receiver's city |
shippingState | String | Optional | Receiver's State. |
shippingCountry | String | Optional | Receiver's country. |
shippingPincode | String | Optional | Receiver's Pincode. |
shippingPhone | String | Optional | Receiver's Phone Number. |
shippingAddress | String | Optional | Receiver's Address. |
receiverName | String | Optional | Receiver's Name. |
ON SUCCESS
{
"message": "Sales order has been cancelled successfully.",
"messageType": "Success",
"salesOrderNumber": "SO1574"
}
ON ERROR
{
"message": "From OU not found",
"messageType" : "Error"
}
Error Messages | Description |
---|---|
import java.util.Map;
public class UpdateSalesOrder {
public static void main(String[] args) throws IOException {
params.put("receiverName", "");
}
import requests
access_url = "https://api.logixplatform.com/Rachna/webservice/v2/UpdateSalesOrder"
}