Skip to content
You are reading the unreleased documentation. No version is released yet, and these pages describe code that is not in a release.

Shipping (storefront API)

Storefront and customer routes of the shipping module. Send Accept-Language (or X-Locale from a browser) on every call; a customer route needs the session cookie.

Calculate shipping rates

Request body: CalculateRatesDto.

Responses:

  • 200: Rates calculated.
  • 400: Invalid input.
  • country (string, min length 2, max length 2, required).
  • postalCode (string, optional).
  • items (array of ShippingRateItemDto, required).
  • subtotal (number, min 0, required).
  • weight (number, min 0, required).
  • quantity (number, min 1, required).