curl --location --request POST '/carrier_accounts/register/new' \
--header 'Authorization: ShippoToken {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"carrier": "canada_post",
"parameters": {
"company": "Shippo",
"full_name": "Shippo Meister",
"email": "hippo@shippo.com",
"phone": "1112221122",
"canada_post_terms": true
}
}'{
"account_id": "****",
"carrier": "usps",
"active": true,
"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
}Adds a Shippo carrier account
curl --location --request POST '/carrier_accounts/register/new' \
--header 'Authorization: ShippoToken {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"carrier": "canada_post",
"parameters": {
"company": "Shippo",
"full_name": "Shippo Meister",
"email": "hippo@shippo.com",
"phone": "1112221122",
"canada_post_terms": true
}
}'{
"account_id": "****",
"carrier": "usps",
"active": true,
"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
}API key authentication using the ShippoToken scheme. Format: Authorization: ShippoToken <API_TOKEN> Example: Authorization: ShippoToken shippo_live_abc123
Optional string used to pick a non-default API version to use. See our API version guide.
"2018-02-08"
The body of the request.
Carrier account
Unique identifier of the account. Please check the carrier accounts tutorial
page for the account_id per carrier.
To protect account information, this field will be masked in any API response.
"****"
Carrier token, see Carriers
Please check the carrier accounts tutorial page for all supported carriers.
"usps"
Determines whether the account is active. When creating a shipment, if no carrier_accounts are explicitly
passed Shippo will query all carrier accounts that have this field set. By default, this is set to True.
An array of additional parameters for the account, such as e.g. password or token. Please check our carrier accounts guide for the parameters per carrier. To protect account information, this field will be masked in any API response. In the case of masked fields, they should be handled carefully.
Fields also must consider:
false
Unique identifier of the carrier account object.
"6aa34d5f6865448fbb1ee93636e98999"
Username of the user who created the carrier account object.
"bob+22@gmail.com"
Show child attributes
Indicates whether the object has been created in test mode.
false
Was this page helpful?