Function
The Customer Tax edit API is used to modify an existing customer's tax information.
URL
{Root URL}/API/ShipTax/Edit/{API Key} |
Parameters
Parameter | Description | Required | Comment | |
1 | unqshiptax | Primary tax key | Y | Must be Unique |
2 | Linkadd | Link to ship bill table | Y | Links the tax info to the shipping info |
3 | Custno | Customer number | Y | |
4 | Taxdesc | Tax description | N | |
5 | tax_rate | Tax rate | N | |
6 | Tax_id | Tax ID | N | |
7 | recordtype | Record type | N | |
8 | ptProd | Primary tax product | N | |
9 | ptFr | Primary tax freight | N | |
10 | stProd | Secondary tax product | N | |
11 | stFrt | Secondary tax freight | N | |
12 | stTx | Secondary tax | N | |
13 | modifiedDate | Last modified date | N |
Example Strings
Customer Edit Tax Details
URL
?UNQSHIPTAX=UniqShipTa&Custno=0000000011&Taxdesc=ORANGE COUNTY&Taxtype=S&Tax_Rate=7.5&Tax_id=CA USE&Recordtype=S |
JSON
{ “UNQSHIPTAX”:”USQNT0M26L”, “Custno”:”0000000011”, “Taxdesc”:”ORANGE COUNTY”, “Taxtype”:”S”, “Tax_Rate”:”7.5” , “Tax_id”:”CA USE “, “Recordtype”:”S” } |
A successful edit should result in:
{ "$id": "1", "Code": "200", "Message": "ShipTax edited successfully.", "SessionId": "null", "IsValidUser": "true", "ResponseObject": "null" } |
Common Errors
API Key Error
If there is an error with the entered API key, the system will return an error message describing an API key error:
{ "$id": "1", "Code": "403", "Message": "Invalid API Key.", "SessionId": "null", "IsValidUser": "false", "ResponseObject": "null" } |
URL Error
If there is an error with the URL, the system will return an HTTP error message:
{ "$id": "1", "Message": "No HTTP resource was found that matches the request URI 'http://localhost/api/ShipTaxEdit/123456789'.", "MessageDetail": "No type was found that matches the controller named 'ShipTaxEdit'." } |
Parameter Value Error
If there is a problem with one of the entered parameter values or a required parameter is missing, the system will return an error message describing the problem:
{ "$id": "1", "Code": "403", "Message": "'ShipTax' Object is not initialized properly.", "SessionId": "null", "IsValidUser": "true", "ResponseObject": "null" } |