import shippo
from shippo.models import components
s = shippo.Shippo(
api_key_header='ShippoToken <API_TOKEN>',
shippo_api_version='2018-02-08',
)
res = s.shippo_accounts.create(request=components.ShippoAccountUpdateRequest(
email='hippo@shippo.com',
first_name='Shippo',
last_name='Meister',
company_name='Acme',
))
if res is not None:
# handle response
pass{
"email": "hippo@shippo.com",
"first_name": "Shippo",
"last_name": "Meister",
"company_name": "Acme",
"object_created": "2023-11-07T05:31:56Z",
"object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
"object_updated": "2023-11-07T05:31:56Z"
}Creates a new Shippo Managed Account.
import shippo
from shippo.models import components
s = shippo.Shippo(
api_key_header='ShippoToken <API_TOKEN>',
shippo_api_version='2018-02-08',
)
res = s.shippo_accounts.create(request=components.ShippoAccountUpdateRequest(
email='hippo@shippo.com',
first_name='Shippo',
last_name='Meister',
company_name='Acme',
))
if res is not None:
# handle response
pass{
"email": "hippo@shippo.com",
"first_name": "Shippo",
"last_name": "Meister",
"company_name": "Acme",
"object_created": "2023-11-07T05:31:56Z",
"object_id": "adcfdddf8ec64b84ad22772bce3ea37a",
"object_updated": "2023-11-07T05:31:56Z"
}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"
Shippo account
Was this page helpful?