import shippo
from shippo.models import operations
s = shippo.Shippo(
api_key_header='ShippoToken <API_TOKEN>',
shippo_api_version='2018-02-08',
)
res = s.carrier_accounts.get_registration_status(carrier=operations.Carrier.USPS)
if res is not None:
# handle response
pass{
"carrier_account": "99dc410d295b4a168993cc38809cb123",
"object_created": "2023-11-07T05:31:56Z",
"object_owner": "tom@gmail.com",
"object_updated": "2023-11-07T05:31:56Z",
"status": "PENDING_TERMS"
}Returns the registration status for the given account for the given carrier
import shippo
from shippo.models import operations
s = shippo.Shippo(
api_key_header='ShippoToken <API_TOKEN>',
shippo_api_version='2018-02-08',
)
res = s.carrier_accounts.get_registration_status(carrier=operations.Carrier.USPS)
if res is not None:
# handle response
pass{
"carrier_account": "99dc410d295b4a168993cc38809cb123",
"object_created": "2023-11-07T05:31:56Z",
"object_owner": "tom@gmail.com",
"object_updated": "2023-11-07T05:31:56Z",
"status": "PENDING_TERMS"
}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"
filter by specific carrier
ups, usps, canada_post Was this page helpful?