Skip to content

List Shipping Methods

Prerequisites

The example uses an illustrative cart id. Admin cart endpoints only operate on draft carts (is_active=0) — storefront carts are rejected by the admin cart guard. Create a draft cart first with the createAdminDraftCart mutation and use the returned cartId.

Operation

OperationTypePurpose
adminCartShippingRates(cartId: Int!)QueryCollectionList available shipping rates

Sequence

Both billing AND shipping addresses must be saved on the cart, otherwise the response carries an errors[] entry equivalent to HTTP 409 on REST (Addresses must be saved before selecting a shipping method.).

Errors

CauseNotes
Cart not foundUnknown id
403 — active storefront cartOnly draft carts (is_active = 0) are accessible
409 — addresses missingSave addresses via saveAddressAdminCart first
UnauthenticatedMissing admin Bearer token

Released under the MIT License.