Skip to main content

Connections

The management API offer two different queries to retrieve the list of carrier connections configured for your account.

User connections

The user connections are carrier accounts registered by the user, a team member or an organization administrator.

Query user connections

query getUserConnections {
user_connections {
__typename
... on AlliedExpressSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
username
password
account
service_type
}
... on AlliedExpressLocalSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
username
password
account
service_type
}
... on AmazonShippingSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
seller_id
developer_id
mws_auth_token
aws_region
config
}
... on AramexSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
username
password
account_pin
account_entity
account_number
account_country_code
config
}
... on AsendiaUSSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
username
password
account_number
api_key
config
}
... on AustraliaPostSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
api_key
password
account_number
config
}
... on BoxKnightSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
username
password
config
metadata
}
... on BelgianPostSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
account_id
passphrase
services {
id
active
service_name
service_code
carrier_service_code
description
currency
transit_days
transit_time
max_weight
max_width
max_height
max_length
weight_unit
dimension_unit
domicile
international
zones {
label
rate
min_weight
max_weight
transit_days
transit_time
radius
latitude
longitude
cities
postal_codes
country_codes
}
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on CanadaPostSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
username
password
customer_number
contract_id
config
}
... on CanparSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
config
}
... on ChronopostSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
password
account_number
account_country_code
config
}
... on ColissimoSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
password
contract_number
laposte_api_key
services {
id
active
service_name
service_code
carrier_service_code
description
currency
transit_days
transit_time
max_weight
max_width
max_height
max_length
weight_unit
dimension_unit
domicile
international
zones {
label
rate
min_weight
max_weight
transit_days
transit_time
radius
latitude
longitude
cities
postal_codes
country_codes
}
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on DHLParcelDESettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
customer_number
dhl_api_key
tracking_consumer_key
tracking_consumer_secret
config
services {
id
active
service_name
service_code
carrier_service_code
description
currency
transit_days
transit_time
max_weight
max_width
max_height
max_length
weight_unit
dimension_unit
domicile
international
zones {
label
rate
min_weight
max_weight
transit_days
transit_time
radius
latitude
longitude
cities
postal_codes
country_codes
}
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on DHLExpressSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
site_id
password
account_number
account_country_code
config
}
... on DHLPolandSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
username
password
account_number
services {
id
active
service_name
service_code
carrier_service_code
description
currency
transit_days
transit_time
max_weight
max_width
max_height
max_length
weight_unit
dimension_unit
domicile
international
zones {
label
rate
min_weight
max_weight
transit_days
transit_time
radius
latitude
longitude
cities
postal_codes
country_codes
}
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on DHLUniversalSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
consumer_key
consumer_secret
config
}
... on DicomSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
billing_account
config
}
... on DPDSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
config
capabilities
delis_id
password
depot
account_country_code
services {
active
currency
description
dimension_unit
domicile
id
international
max_height
max_length
max_weight
max_width
service_code
service_name
carrier_service_code
transit_days
transit_time
weight_unit
zones {
cities
postal_codes
country_codes
label
latitude
longitude
max_weight
min_weight
radius
rate
transit_days
transit_time
}
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on DPDHLSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
app_id
app_token
zt_id
zt_password
account_number
config
services {
id
active
service_name
service_code
carrier_service_code
description
currency
transit_days
transit_time
max_weight
max_width
max_height
max_length
weight_unit
dimension_unit
domicile
international
zones {
label
rate
min_weight
max_weight
transit_days
transit_time
radius
latitude
longitude
cities
postal_codes
country_codes
}
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on EShipperSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
config
}
... on EasyPostSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
api_key
config
}
... on FedexSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
account_number
api_key
secret_key
track_api_key
track_secret_key
account_country_code
config
}
... on FedexWSSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
account_number
password
meter_number
user_key
account_country_code
config
}
... on FreightcomSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
config
}
... on GenericSettingsType {
id
carrier_id
carrier_name
display_name
custom_carrier_name
account_number
test_mode
active
metadata
config
capabilities
account_country_code
services {
id
active
service_name
service_code
carrier_service_code
description
currency
transit_days
transit_time
max_weight
max_width
max_height
max_length
weight_unit
dimension_unit
domicile
international
zones {
label
rate
min_weight
max_weight
transit_days
transit_time
radius
latitude
longitude
cities
postal_codes
country_codes
}
}
label_template {
id
slug
template
template_type
shipment_sample
width
height
}
rate_sheet {
id
name
slug
carrier_name
metadata
}
}
... on GEODISSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
api_key
identifier
language
config
}
... on LaPosteSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
api_key
lang
config
}
... on Locate2uSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
account_country_code
client_id
client_secret
}
... on NationexSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
api_key
customer_id
billing_account
language
config
}
... on PurolatorSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
account_number
user_token
config
}
... on RoadieSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
api_key
config
}
... on RoyalMailSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
client_id
client_secret
config
}
... on SendleSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
sendle_id
api_key
account_country_code
config
}
... on TNTSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
account_number
account_country_code
config
}
... on UPSSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
client_id
client_secret
account_number
account_country_code
config
}
... on USPSSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
mailer_id
customer_registration_id
logistics_manager_mailer_id
config
}
... on USPSInternationalSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
metadata
capabilities
username
password
mailer_id
customer_registration_id
logistics_manager_mailer_id
config
}
... on Zoom2uSettingsType {
id
carrier_id
carrier_name
display_name
test_mode
active
capabilities
metadata
config
account_country_code
api_key
}
}
}

Create user connection

mutation createConnection($data: CreateCarrierConnectionMutationInput!) {
create_carrier_connection(input: $data) {
errors {
field
messages
}
}
}

Update user connection

mutation update_connection($data: UpdateCarrierConnectionMutationInput!) {
update_carrier_connection(input: $data) {
errors {
field
messages
}
}
}

Delete user connection

mutation delete_connection($data: DeleteMutationInput!) {
delete_carrier_connection(input: $data) {
id
}
}

System connections

The system connections are carrier accounts registered by the system super administrator and made publicly available to all users and organizations. organization admin can enable or disable the system connections for their account.

info

Note that the system connections are read-only and the credetials are hidden for security reasons. Only super admin can edit the system connections account details and related carrier API credentials.

Query system connections

query getSystemConnections {
system_connections {
id
carrier_id
test_mode
active
capabilities
carrier_name
display_name
enabled
config
}
}

Enable/Disable connection

note

By enabling a system connection, you are opting to use the carrier account provided by the system super administrator. Therefore, you will be provided with a billing agreement for your usage.

mutation mutate_system_connection($data: SystemCarrierMutationInput!) {
mutate_system_connection(input: $data) {
carrier {
id
active
}
}
}