Customer Access - Ascent Global Logistics

Customer Access

Some PEAK Connect resources, for example, the Quote resource for obtaining carrier rates, require an Ascent assigned customer number as part of the inputs. The Customer Access resource allows you to retrieve the set of customer numbers that your PEAK Connect account is allowed to access. This is an HTTP POST resource

Resource URL

QA: http(s)://qa-connect.ascentgl.com/v1/customerAccess.{xml , json}

Production: http(s)://connect.ascentgl.com/v1/customerAccess.{xml , json}

Parameters
Search:
Property Name Required Format Definition
accesstoken Yes String accessToken value returned from a call to the Authenticate API
Response Properties
Search:
Property Name Date Type Description
customers A collection of customers for those customers visible for the accessToken in the request. See below for customer details
errors A collection of error messages. See below for error message details
Customer Details
Search:
Property Name Date Type Description
number String Ascent customer number – used where needed in other API requests
name String Display name for the customer
Error Details
Search:
Property Name Date Type Description
code String Internal Ascent error code
Message String Display message for the error
JSON Request/Response Examples
JSON Request Body

{
“accessToken”:”str1234″
}

 

JSON Response

 

{
“customers”:
[
{ “number”:”005825C”, “name”:”JOHNS MANUFACTURING COMPANY LLC” },
{ “number”:”AF6DA94B”, “name”:”JOHNS MANUFACTURING COMPANY LLC – HOUSTON” },
{ “number”:”043542B6″, “name”:”JOHNS MANUFACTURING COMPANY LLC – CHARLOTTE, NC” }
]
“errors”:
[
{ “code”:”0″, “message”:No Errors” }
]
}

XML Request/Response Examples
XML Request Body

<?xml version=”1.0″ encoding=”utf-8″?>
<CustomerAccessRequest xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=””>
<accessToken>str1234</accessToken>
</CustomerAccessRequest>

 

XML Response

 

<?xml version=”1.0″ encoding=”utf-8″?>
<CustomerAccessResponse xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=””>
<customers>
<customer>
<number>005825C</number>
<name>JOHNS MANUFACTURING COMPANY LLC</name>
</customer>
<customer>
<number>AF6DA94B</number>
<name>JOHNS MANUFACTURING COMPANY LLC</name>
</customer>
<customer>
<number>043542B6</number>
<name>JOHNS MANUFACTURING COMPANY LLC – CHARLOTTE, NC</name>
</customer>
</customers>
<errors>
<error>
<code>0</code>
<message>No Errors</message>
</error>
</errors>
</CustomerAccessResponse>

Thank you for contacting Ascent!
A member of our team will be in contact within a few business hours.
Okay

Request a quote

				
					<div id="zf_div_4oQmOZd_9JXIw2F7Kih3HivRVFGTzMxXrnkfgcgIuCw"></div><script type="text/javascript">(function() {
try{
var f = document.createElement("iframe");
f.src = 'https://forms.zohopublic.com/ascentlogistics5/form/OBCCampaignForm/formperma/4oQmOZd_9JXIw2F7Kih3HivRVFGTzMxXrnkfgcgIuCw?zf_rszfm=1';
f.style.border="none";
f.style.height="978px";
f.style.width="90%";
f.style.transition="all 0.5s ease";
f.setAttribute("aria-label", 'OBC\x20Campaign\x20Form');

var d = document.getElementById("zf_div_4oQmOZd_9JXIw2F7Kih3HivRVFGTzMxXrnkfgcgIuCw");
d.appendChild(f);
window.addEventListener('message', function (){
var evntData = event.data;
if( evntData && evntData.constructor == String ){
var zf_ifrm_data = evntData.split("|");
if ( zf_ifrm_data.length == 2 || zf_ifrm_data.length == 3 ) {
var zf_perma = zf_ifrm_data[0];
var zf_ifrm_ht_nw = ( parseInt(zf_ifrm_data[1], 10) + 15 ) + "px";
var iframe = document.getElementById("zf_div_4oQmOZd_9JXIw2F7Kih3HivRVFGTzMxXrnkfgcgIuCw").getElementsByTagName("iframe")[0];
if ( (iframe.src).indexOf('formperma') > 0 && (iframe.src).indexOf(zf_perma) > 0 ) {
var prevIframeHeight = iframe.style.height;
var zf_tout = false;
if( zf_ifrm_data.length == 3 ) {
iframe.scrollIntoView();
zf_tout = true;
}
if ( prevIframeHeight != zf_ifrm_ht_nw ) {
if( zf_tout ) {
setTimeout(function(){
iframe.style.height = zf_ifrm_ht_nw;
},500);
} else {
iframe.style.height = zf_ifrm_ht_nw;
}
}
}
}
}
}, false);
}catch(e){}
})();</script>