Customer Address get API is used to find and view existing customer address information.
URL:{Root URL}/Api/ShipBill/Get/{API Key}
Parameters
Parameter |
Description |
Required |
Comment
|
Linkadd |
Customer Address Key |
Y |
|
Custno |
Customer Number |
N |
|
Shipto |
Ship to Name |
N |
The person you are shipping to |
Address1 |
First line of the address |
N |
|
Address2 |
Second Line of the address |
N |
|
City |
City |
N |
Ship to City |
State |
State |
N |
Ship to State |
Zip |
Zip Code |
N |
Ship to Zip code |
Country |
Country |
N |
Ship to country |
Phone |
Phone number |
N |
Ship to Phone Number |
Fax |
Fax |
N |
Ship to fax address |
Email |
Email |
N |
Ship to email address |
Attention |
Attention |
N |
Attention notice for the shipping |
recordtype |
The type of record |
N |
Can be C for Confirm to or R for Remit to |
Example Strings
Get Address
URL:?LinkAdd=LINKADD
A successful request should return
{
"$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 exists.",
"SessionId": null,
"IsValidUser": true,
"ResponseObject": null
}
|