Skip to content
You are reading the pinned copy of v1.0, which is also the latest release. Read the latest.

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).
As seen on Open Source Alternatives The Merchant Engine badge