Function


The Customer Add Tax API is used to add tax information to a customer's information.



Parameters



ParameterDescriptionRequiredComment
1unqshiptaxPrimary tax keyYMust be unique.
2LinkaddLink to ship bill tableYLinks the tax info to the shipping info.
3CustnoCustomer numberY 
4TaxdescTax descriptionY 
5tax_rateTax rateY 
6Tax_idTax IDY 
7recordtypeRecord typeY 
8ptProdPrimary tax productN 
9ptFrPrimary tax freightN 
10stProdSecondary tax productN 
11stFrtSecondary tax freightN 
12stTxSecondary taxN 
13modifiedDateLast modified dateN 



Example Strings


Add New Tax Information


URL


?Linkadd=LINKADD&Custno=0000000011&Taxdesc=SANTA CLARA CNTY. USE TAX&Taxtype=S&Tax_Rate=8.2500&Tax_id=CA USE&Recordtype=S



JSON


{

Linkadd”:”LINKADD”,

Custno”:”0000000011”,

Taxdesc”:”SANTA CLARA CNTY. USE TAX”,

Taxtype”:”S”,

Tax_Rate”:”8.2500” ,

Tax_id”:”CA USE “,

Recordtype”:”S

}



A successful add should result in:


{

"$id": "1",

"Code": "200",

"Message": "ShipTax added 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/ShipTaxAdd/123456789'.",

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

}



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"

}