Shipping

Introduction

Through the endpoints included in the Shipping section, you will be able to:

  • Calculate shipping rate for a given country and variant with specified quantity

  • Retrieve information about the shipping types

  • Retrieve information about the shipping methods

  • Retrieve a list of countries in our system

  • Retrieve a list of regions in a specific country

Endpoints

Shipping rates

Calculate shipping rates

post

This API endpoint retrieves a list of calculated shipping rates for the given items and shipping info

Authorizations
AuthorizationstringRequired
Body
Responses
200

Request completed successfully.

application/json
post
/shipping/rates

Shipping types

Show shipping types

get

This API endpoint retrieves a list of all available shipping types

Authorizations
AuthorizationstringRequired
Responses
200

Request completed successfully.

application/json
get
/shipping/types

Shipping methods

Show shipping methods

get

This API endpoint retrieves a list of all available shipping methods

Authorizations
AuthorizationstringRequired
Responses
200

Request completed successfully.

application/json
get
/shipping/methods

Countries

Show countries

get

This endpoint retrieves a list of countries with IDs and their corresponding codes.

Authorizations
AuthorizationstringRequired
Responses
200

Request completed successfully.

application/json
get
/countries

Regions

Show regions

get

This API endpoint retrieves the list of regions within a specific country by providing its ID.

Authorizations
AuthorizationstringRequired
Path parameters
country_idintegerRequired

ID of country from our system

Responses
200

Request completed successfully.

application/json
get
/regions/{country_id}

Parameters

Key
Description

shipping

An object that contains the country property.

shipping.country

The ID of the country from our system, check /api/beta/countries for more information about the countries.

items

An array of objects that contains information about the quantity and variant.

items.*.quantity

Quantity of a variant.

items.*.variant_id

The ID of the variant, please check /api/beta/products/{product_id} for more details about the variants.

Last updated