Site Logo

Update a Carrier Connection

Certain carriers allow you to update your account authentication details via ShipEngine without deleting the carrier and reconnecting it. This is useful if you've updated your carrier account password, API key, or other related credentials.

Requirements

  • The carrier_id and carrier_name for the account you wish to update (you can use the List Carriers endpoint to gather this informaiton)
  • The details for the properties you wish to update for that carrier (will vary by carrier)

Example Request & Response

Updating your carrier authentication details uses the following method and endpoint:

PUT /v1/connections/carriers/:carrier_name/:carrier_id

This example updates a Stamps.com account nickname, username, and password.

1
2
3
4
5
6
7
8
9
10
PUT /v1/connections/carriers/stamps_com/se-12345678 HTTP/1.1
Host: api.shipengine.com
API-Key: __YOUR_API_KEY_HERE__
Content-Type: application/json
{
"nickname": "new nickname",
"username": "newusername",
"password": "supersecretpassword"
}

No matter which carrier you are updating, the response will return the carrier_id.

1
2
3
{
"carrier_id": "se-12345678"
}

Supported Carriers

You can update the carrier authentication details listed for the following carriers:

Chronopost

PropertyTypeDescription
nicknamestringrequired
account_numberstringrequired
passwordstringrequired
injection_address_headingobject
titlestringMax length: 13 characters
namestringMax length: 100 characters
companystringMax length: 100 characters
address1stringMax length: 38 characters
address2stringMax length: 38 characters
citystringMax length: 50 characters
postal_codestringMax length: 9 characters
countrystringMax length: 2 characters
contact_namestringMax length: 100 characters
emailstringMax length: 80 characters
phonestringMax length: 17 characters

Colissimo

PropertyTypeDescription
nicknamestringrequired
usernamestringrequired
passwordstringrequired

Endicia

PropertyTypeDescription
nicknamestringrequired
accountstringrequired
passphrasestringrequired

Mondial Relay

PropertyTypeDescription
nicknamestringrequired
api_keystringrequired
Minimum length: 8 characters
enseignestringrequired

Stamps.com

PropertyTypeDescription
nicknamestringrequired
usernamestringrequired
passwordstringrequired

UPS

ParameterTypeDescription
nicknamestringrequired
is_primary_accountbooleanIndicates the account is or is not the default account.
pickup_typeenumerated stringdaily_pickup, occasional_pickup, customer_counter
See our Intro to Pickup Dropoff apge to learn more.
use_carbon_neutral_shipping_programbooleanAdds a fee to the shipment to purchase carbon offset credits.
use_ground_freight_pricingbooleanAn advanced option available for certain UPS services. See our UPS Ground Freight page for more details.
use_consolidation_servicesbooleanEnable the use of UPS SurePost® or UPS Mail Innovations® services.
use_order_number_on_mail_innovations_labelsboolean
mail_innovations_endorsementennumerated stringreturn_service_requested forwarding_service_requested address_service_requested change_service_requested leave_if_no_response
mail_innovations_cost_centerstring
use_negotiated_ratesbooleanIf your account has been approved for negotiated rates, you can enable this option to use those rates. Once enabled, negotiated rates cannot be disabled.
account_postal_codestringRequired
invoicestring
mail_innovations_customer_idstringRequired to get rates for MI services. Also known as UPS MI account number.
mail_innovations_customer_guidstringRequired to get rates for MI services. Also known as a rate key.
account_country_codestringRequired 2-character country code associated with the account.
account_numberstring

We will update this list as this method becomes available for more carriers.