Returns a list of all carrier accounts connected to your Shippo account. These carrier accounts include both Shippo carrier accounts and your own carrier accounts that you have connected to your Shippo account.
Additionally, you can get information about the service levels associated with each carrier account by passing in the ?service_levels=true query parameter.
Using it appends the property service_levels to each carrier account.
By default, if the query parameter is omitted, the service_levels property will not be included in the response.
curl https://api.goshippo.com/carrier_accounts?service_levels=true \ -H "Authorization: ShippoToken shippo_test_3a47d23c032ca626fce863c48d0f93d63a394396"
{- "next": "baseurl?page=3&results=10",
- "previous": "baseurl?page=1&results=10",
- "results": [
- {
- "account_id": "****",
- "active": true,
- "carrier": "usps",
- "parameters": { },
- "carrier_name": "USPS",
- "is_shippo_account": false,
- "metadata": "string",
- "object_id": "6aa34d5f6865448fbb1ee93636e98999",
- "object_owner": "bob+22@gmail.com",
- "service_levels": [
- {
- "name": "Priority Mail Express",
- "token": "usps_priority_express",
- "supports_return_labels": true
}
], - "test": false,
- "object_info": {
- "authentication": {
- "type": "default",
- "status": "disconnected"
}
}
}
]
}