Admin API / Mutations
connectShippoAccount
Connects a Shippo account by its API token. Shippo then bills that account for every new label and each label adjustment, and checkout quotes calculated shipping on it. The call checks the plan, the checkout version, the token shape and then the token at Shippo, in this order. A failed check stores nothing. A store on Checkout V1 gets CheckoutVersionUnsupportedError, because Checkout V1 cannot quote calculated shipping on a connected Shippo account. A token for the connected Shippo account in the same environment replaces the stored token. Another account or environment ends the active connection. A label uses the newest token of its own Shippo account, also after its connection ended. A repeat of a successful call with the same expectedConnectedAt returns ShippoConnectionChangedError and stores nothing. A Shippo account that another store has connected returns ShippoAccountAlreadyConnectedError and stores nothing. Requires the OWNER role or higher.
admin:shipping:credentialsRequires this member role or higher: OWNERconnectShippoAccount(
input: ConnectShippoAccountInput!
): ConnectShippoAccountPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | ConnectShippoAccountInput! | The token to connect. |