Admin API / Mutations
createShippingProfile
Creates a shipping profile of the caller. Belongs to the caller's account and applies in every marketplace the account sells in. Each CALCULATED setting is checked against current carrier rates on the Shippo account that shippingRateEstimates uses: a service level with no rate gives ShippingServiceLevelUnavailableError and creates nothing. When the marketplace bills labels to its own Shippo account and that account has no usable connection, a CALCULATED setting makes the call fail with SHIPPING_QUOTE_UNAVAILABLE and create nothing, and extensions.reason is NOT_CONNECTED or DEAUTHORIZED. A repeat with the same idempotencyKey and input within 24 hours in the same marketplace returns the first result and checks no rate. After deleteShippingProfile, such a repeat gives ShippingProfileNotFoundError. The same key in another marketplace creates a second profile.
admin:products:writeRequires this member role or higher: SELLERcreateShippingProfile(
input: CreateShippingProfileInput!
): CreateShippingProfilePayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateShippingProfileInput! | The profile to create. |