Shipping API

Manage shipping methods and rates

Base URL

https://{tenant}.logzi.com/api/shipping/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The shipping API enables managing shipping methods for the webshop and orders, calculating shipping costs, and retrieving shipping types.

GET /api/shipping/get

Retrieve a single shipping method.

Query parameters

ParameterTypeRequiredDescription
idintShipping method identifier
shipping_defaultintDefault shipping method (0/1)
shipping_webnamestringName shown in the webshop
language_idintLanguage identifier

Example request

GET /api/shipping/get?id=1&language_id=1
X-API-KEY: {your_api_key}
GET /api/shipping/get_all

Retrieve all shipping methods.

Query parameters

ParameterTypeRequiredDescription
idintFilter by identifier

Example request

GET /api/shipping/get_all
X-API-KEY: {your_api_key}
GET /api/shipping/get_receipt_cost

Calculate the shipping cost for a given list of products.

Query parameters

ParameterTypeRequiredDescription
idintShipping method identifier
product_listarrayList of products used to calculate the cost

Example request

GET /api/shipping/get_receipt_cost?id=1
X-API-KEY: {your_api_key}
GET /api/shipping/get_type

Retrieve a partner's shipping type.

Query parameters

ParameterTypeRequiredDescription
partner_idintPartner identifier
shipping_type_namestringShipping type name
language_idintLanguage identifier

Example request

GET /api/shipping/get_type?partner_id=1&language_id=1
X-API-KEY: {your_api_key}
GET /api/shipping/list

Retrieve the list of shipping methods in a given language.

Query parameters

ParameterTypeRequiredDescription
language_idintLanguage identifier

Example request

GET /api/shipping/list?language_id=1
X-API-KEY: {your_api_key}
POST /api/shipping/save

Create or update a shipping method.

POST fields — data object

The data object should contain the shipping method's details (name, webshop name, rates, shipping type).

Example request

POST /api/shipping/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "id": 1 } }
POST /api/shipping/delete

Delete a shipping method by identifier.

POST fields

FieldTypeRequiredDescription
idintIdentifier of the shipping method to delete

Example request

POST /api/shipping/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "id": 1 }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!