Shipping Zones

Manage shipping zones

Retrieving shipping zones

get

Retrieves shipping zones for the specified site.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Available scopes:
  • : Needed to manage shipping settings.
  • : Needed to read shipping settings.
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
sitestringRequired

Site unique identifier. A site is a specific shop.

If the tenant owns only one shop, the value should be set to main.

Query parameters
activeMethodsstringOptional
  • If set to true, only active methods are included.
  • If set to false, only inactive methods are included.
  • If not specified, all expanded shipping methods are included.
expandstringOptional
  • methods: To return zones with expanded shipping methods.
  • fees: To expand the configured fees for those shipping methods.
Example: methods,fees
Header parameters
Accept-LanguagestringOptional

The Accept-Language request HTTP header defines which languages the client is able to understand, and which locale variant is preferred. It can be a priority list working as a fallback mechanism. If the Accept-Language header is empty, all languages for localized fields are returned in a map format where the key is language code and the value is a translation.

Example: fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7
Responses
get
/shipping/{tenant}/{site}/zones

Creating a shipping zone

post

Creates a new shipping zone for the specified site.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage shipping settings.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
sitestringRequired

Site unique identifier. A site is a specific shop.

If the tenant owns only one shop, the value should be set to main.

Header parameters
Content-LanguagestringOptional

The Content-Language request HTTP header defines language of the payload. When the Content-Language header is empty, all localized fields in a payload should be in a map format, where the key is a language code and the value is a translation.

Example: fr
Body

The zone is an area where shipments can be delivered.

idstringRequired

Delivery zone's unique identifier.

defaultbooleanOptional

Flag indicating whether the zone is the default delivery zone for the site.

nameone ofRequired
stringOptional

String value in the specified language.

Example: FedEx 2Day
or
Responses
201

Resource successfully created.

application/json
post
/shipping/{tenant}/{site}/zones

Retrieving a shipping zone

get

Retrieves the specified shipping zone's details.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Available scopes:
  • : Needed to manage shipping settings.
  • : Needed to read shipping settings.
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
sitestringRequired

Site unique identifier. A site is a specific shop.

If the tenant owns only one shop, the value should be set to main.

zoneIdstringRequired

Shipping zone's unique identifier.

Query parameters
activeMethodsstringOptional
  • If set to true, only active methods are included.
  • If set to false, only inactive methods are included.
  • If not specified, all expanded shipping methods are included.
expandstringOptional
  • methods: To return zones with expanded shipping methods.
  • fees: To expand the configured fees for those shipping methods.
Example: methods,fees
Header parameters
Accept-LanguagestringOptional

The Accept-Language request HTTP header defines which languages the client is able to understand, and which locale variant is preferred. It can be a priority list working as a fallback mechanism. If the Accept-Language header is empty, all languages for localized fields are returned in a map format where the key is language code and the value is a translation.

Example: fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7
Responses
get
/shipping/{tenant}/{site}/zones/{zoneId}

Updating a shipping zone

put

Fully updates the specified shipping zone.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage shipping settings.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
sitestringRequired

Site unique identifier. A site is a specific shop.

If the tenant owns only one shop, the value should be set to main.

zoneIdstringRequired

Shipping zone's unique identifier.

Header parameters
Content-LanguagestringOptional

The Content-Language request HTTP header defines language of the payload. When the Content-Language header is empty, all localized fields in a payload should be in a map format, where the key is a language code and the value is a translation.

Example: fr
Body

The zone is an area where shipments can be delivered.

idstringRequired

Delivery zone's unique identifier.

defaultbooleanOptional

Flag indicating whether the zone is the default delivery zone for the site.

nameone ofRequired
stringOptional

String value in the specified language.

Example: FedEx 2Day
or
Responses
put
/shipping/{tenant}/{site}/zones/{zoneId}

No content

Deleting a shipping zone

delete

Deletes the specified shipping zone.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage shipping settings.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
sitestringRequired

Site unique identifier. A site is a specific shop.

If the tenant owns only one shop, the value should be set to main.

zoneIdstringRequired

Shipping zone's unique identifier.

Responses
delete
/shipping/{tenant}/{site}/zones/{zoneId}

No content

Partially updating a shipping zone

patch

Partially updates the specified shipping zone.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage shipping settings.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
sitestringRequired

Site unique identifier. A site is a specific shop.

If the tenant owns only one shop, the value should be set to main.

zoneIdstringRequired

Shipping zone's unique identifier.

Header parameters
Content-LanguagestringOptional

The Content-Language request HTTP header defines language of the payload. When the Content-Language header is empty, all localized fields in a payload should be in a map format, where the key is a language code and the value is a translation.

Example: fr
Body

The zone is an area where shipments can be delivered.

idstringRequired

Delivery zone's unique identifier.

defaultbooleanOptional

Flag indicating whether the zone is the default delivery zone for the site.

nameone ofRequired
stringOptional

String value in the specified language.

Example: FedEx 2Day
or
Responses
patch
/shipping/{tenant}/{site}/zones/{zoneId}

No content

Last updated

Was this helpful?