Function 


The Customer Address Get API is used to find and view existing customer address information.


 

URL

  

{Root URL}/Api/ShipBill/Get/{API Key}

 

 

Parameters

 


ParameterDescriptionRequiredComment
1LinkaddCustomer address key  
2CustnoCustomer numberN 
3ShiptoShip to nameNThe person you are shipping to.
4Address1The first line of the addressN 
5Address2The second line of the addressN
6CityCityNShip to city
7StateStateNShip to state
8ZipZip codeNShip to zip code
9CountryCountryNShip to country
10PhonePhone numberNShip to phone number
11FaxFaxNShip to fax address
12EmailEmailNShip to email address
13AttentionAttentionNAttention notice for the shipping
14recordtypeThe type of recordNCan be "C" {for "Confirm to") or "R" (for "Remit to").

 

  

Example Strings

 

Customer Get Address

 

URL

 

LinkAdd=LINKADD


 

JSON

 

{

"LinkAdd","LINKADD"

}


 

A successful request should return the following:


"$id": "1",

"Code": "200",

"Message": "ShipBill details:",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": {

"$id": "2",

"LINKADD": "_4560WJU2L",

"CUSTNO": "0000000008",

"SHIPTO": "TestShipping ",

"ADDRESS1": "12 West St ",

"ADDRESS2": " ",

"CITY": "Swilton ",

"STATE": "NH ",

"ZIP": "02343 ",

"COUNTRY": "USA ",

"PHONE": "6035555555 ",

"FAX": " ",

"E_MAIL": "",

"TRANSDAY": "0",

"FOB": "ORIGIN-CUST P/U",

"SHIPCHARGE": "PREPAY/BILL CUS",

"SHIPVIA": "COMPANY TRUCK ",

"ATTENTION": " ",

"RECORDTYPE": "B",

"BILLACOUNT": " ",

"SHIPTIME": " ",

"SHIPNOTE": "",

"SHIP_DAYS": "0",

"RECV_DEFA": "false",

"CONFIRM": " ",

"PKFOOTNOTE": "",

"INFOOTNOTE": "",

"TAXEXEMPT": " ",

"FOREIGNTAX": "false",

"ModifiedDate": "2014-12-01T09:31:36.737"

}

}

 

   

Common Errors

 

API Key Error

 

If there is a problem with the used API key, the system will return an error describing it:

  

{

"$id": "1",

"Code": "403",

"Message": "Invalid API Key.",

"SessionId": "null",

"IsValidUser": "false",

"ResponseObject": "null"

}

  

  

URL Error

 

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

 

{

"$id": "1",

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

"MessageDetail": "No action was found on the controller 'ShipBill' that matches the request."

}

 

 

Parameter Error

 

If the entered parameter does not link to an existing ship-bill record, the system will return a "ShipBill does not exist" error message:

 

{

"$id": "1",

"Code": "403",

"Message": "ShipBill does not exist.",

"SessionId": "null",

"IsValidUser": "true",

"ResponseObject": "null"

}