Skip to content

Get Shipping Methods

Retrieve available shipping methods based on address and cart contents.

Endpoint

POST /api/shop/checkout/shipping-methods

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Request Body

json
{
  "country": "US",
  "state": "NY",
  "postcode": "10001"
}
FieldTypeRequiredDescription
countrystringYesCountry code (ISO)
statestringYesState/Province code
postcodestringYesPostal code

Response Fields (200 OK)

FieldTypeDescription
idintegerShipping method ID
codestringShipping method code
namestringDisplay name
descriptionstringMethod description
pricedecimalShipping cost
estimatedDaysintegerEstimated delivery days
maxDeliveryDatestringExpected delivery date

Use Cases

  • Display shipping options during checkout
  • Calculate shipping cost
  • Allow customer to select shipping method
  • Show delivery estimates
  • Filter methods by location

Notes

  • Methods vary by location and product
  • Prices may be calculated dynamically
  • Some methods may have weight/dimension limits
  • International shipping may have restrictions

Released under the MIT License.