Function

  

The Sales Order (SO) Edit API is used to modify details in an existing SO. 


 

URL

  

{Root URL}/API/SO/Edit/{API Key}  

  

   

Parameters



ParameterDescriptionRequiredComment
1SoNoSales order numberYMust be unique. 
2custNoCustomer numberN
Ten digits, and filled to the left with "0."
3blinkAddBilling linkN
4slinkAddShipping address linkN
5orderDateOrder dateYDefaults to the current date. Can be changed using the following date format: MM-DD-YYYY.
6POAckPurchase order acknowledgementNCan be "1" or "0."
7PoNoPurchase order numberNEnter the purchase order number related to the sales order.
8SONoteSales order noteNUser input
9FOBFOBNCan be "ORIGIN-CUST P/U," "ORIGIN-SHIP," or "DESTINATION."
10ShipViaShip viaNDefaults with the customer. Can be "COMPANY TRUCK," "CUST PICK UP," "UPS-GRND TRACK," "UPS-BLUE," "UPS-RED," "FEDX-P1," or "FEDX-STD."
11shipChargeShipping chargeNCan be "NO CHARGE," "PREPAY/BILL CUS," "SET RATE:UPS-BR," "SET RATE:UPS-BL," "SET RATE:UPS-RD," or "FEDX-1"
12SoFoot Sales order footnoteNUser entry, and attaches a footnote to the sales order.
13DELIV_TIMEDelivery timeN
14BuyerBuyer nameNMust be a pre-existing customer.
15ATTENTIONAttention personNMust be a contact for the customer.
16SOAMTDSCTSales order discountN
17SOAPPROVALSales order approvalNCan be "0" or "1." If 1, then you must enter SOAPPRVINIT.
18SOAPPRVINITSales order approval InitialNMust be an approved user's initial.
19SOAPPRVDTSales order approval dateNThe system automatically uses the current date.
20ACKPO_DOCAcknowledge PO docNAdds a PO acknowledge doc.
21TERMSTermsNDefaults from customer information, and can be changed by the user.
22BILLACCOUNTBill accountNThe system defaults the customer information and can be changed by the user.

  

  

Example Strings

  

Edit Existing SO

  

URL

  

?SoNo=SONO?custNo=CUSTNO?FOB=ORIGIN-SHIP


    

JSON

  

{

"SoNo":"SONO",

"custNo":"CUSTNO",

"FOB":"ORIGIN-SHIP"

}

  

  

A successful request should return the following:

  

{

"$id":"1",

"Code":"200",

"Message":"Sales Order edited successfully.",

"SessionId":"null",

"IsValidUser":"true",

"ResponseObject":"null"

}

  

  

Common Errors

  

URL Error

   

If there is a problem with the URL, the system will return an HTTP error:

    

{

"$id": "1",

"Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/SOEdit/123456789'.",

"MessageDetail": "No type was found that matches the controller named 'SOEdit'."

}

  

  

API Key Error

 

{

"$id": "1",

"Code": "403",

"Message": "Invalid API Key.",

"SessionId": "null",

"IsValidUser": "false",

"ResponseObject": "null"

}

      

  

Parameter Error

  

If there is an error with a parameter, the system will return an error message detailing the error:

   

{

"$id": "1",

"Code": "403",

"Message": "Sales Order edit failed.Object reference not set to an instance of an object.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}