UPS API integration- multiple accounts

922 Views Asked by At

I'm trying to integrate with UPS API, but would like to integrate with different UPS accounts based on various different rules that span over multiple portals.

Below mentioned are some of the access information to post ship-confirm-request

<AccessRequest xml:lang="en-US">
    <AccessLicenseNumber>132</AccessLicenseNumber>
    <UserId>XXX</UserId>
    <Password>XXX</Password>
</AccessRequest>

<Shipper>
        <ShipperNumber>xxx</ShipperNumber>
</Shipper>

Reading the UPS documentation, i see that

Shipper's six digit account number. Must be associated with the UserId specified in the AccessRequest XML

My Question To integrate with multiple accounts do i have to request for Shipper account number and info (below), for every single UPS account we have to integrate with?

<AccessRequest xml:lang="en-US">
        <AccessLicenseNumber>132</AccessLicenseNumber>
        <UserId>XXX</UserId>
        <Password>XXX</Password>
    </AccessRequest>

Or is there an easier way to do this?

2

There are 2 best solutions below

1
user1751510 On BEST ANSWER

I spoke to the tech support at UPS, There are two ways to handle multiple accounts.

<AccessRequest xml:lang="en-US">
    <AccessLicenseNumber>132</AccessLicenseNumber>
    <UserId>XXX</UserId>
    <Password>XXX</Password>
</AccessRequest>
1
Andrew Chan On

You have to request different times for the information. It is quite quick with 4 steps involved (see the guide to request UPS API credentials)