Visit Main Site
Join Partner Program
Login
     
Introduction
Authentication
Documentation
Category
GET
POST
PUT
DELETE
Products
GET
POST
PUT
DELETE
Carts
GET
POST
PATCH
DELETE
Variations
GET
POST
PUT
DELETE
Currency
GET
POST
PUT
DELETE
Tax
Tax Profile
GET
POST
PUT
DELETE
Tax Rule
GET
POST
PUT
DELETE
Tax Code
GET
POST
PUT
DELETE
Tax Zone
GET
POST
PUT
DELETE
Discount
GET
POST
PUT
DELETE
Shipping
Shipping Profile
GET
POST
PUT
DELETE
Shipping Rate
GET
POST
PUT
DELETE
Shipping Rules
GET
POST
PUT
DELETE
Customer
GET
POST
PUT
DELETE
Orders
GET
POST
PATCH
Blog
GET
POST
PUT
DELETE
Settings
GET

Getting All Shipping Rates

Endpoint: GET /admin/shipping_rates

Purpose

This API retrieves a list of all shipping rates available in the system, including their rate policies, applicable conditions, and configuration details such as tax inclusion, handling costs, and more.

Path Parameters

No path parameters for this endpoint.

Query Parameters

ParameterTypeDescription
limitIntegerNumber of products per request.
offsetIntegerStarting point for pagination. 
order_byStringField to sort results by.
directionStringSort order by ascending or descending.

Use Case

This endpoint enables administrators to view all configured shipping rates, along with conditional policies, allowing them to manage shipping cost strategies based on order amount, weight, or item attributes.

Request Body

No data is required for the request body.

Response

Returns a paginated list of shipping rates. Each shipping rate includes policy details like type, additional charges, tax settings, and associated conditions defining when and how the rate applies.

GET
https://{your_site_domain}/api/v4/admin/shipping_rates
Try It Out
Json
{
  "shipping_rates": [
    {
      "id": SHIPPING_RATE_ID,
      "name": "NAME",
      "policy_type": "POLICY_TYPE",
      "additional_amount": ADDITIONAL_AMOUNT,
      "additional_cost": ADDITIONAL_COST,
      "is_cumulative": BOOLEAN,
      "includes_tax": BOOLEAN,
      "is_additional": BOOLEAN,
      "conditions": [
        {
          "id": CONDITION_ID_1,
          "from_amount": FROM_AMOUNT,
          "to_amount": TO_AMOUNT,
          "packet_weight": PACKET_WEIGHT,
          "handling_cost": HANDLING_COST,
          "shipping_cost": SHIPPING_COST,
          "shipping_cost_type": "SHIPPING_COST_TYPE",
          "handling_cost_type": "HANDLING_COST_TYPE",
          "api_type": API_TYPE,
          "api_service_type": API_SERVICE_TYPE,
          "extra_cover": EXTRA_COVER,
          "packing_algorithm": PACKING_ALGORITHM,
          "item_attributes": ITEM_ATTRIBUTES,
          "shipping_policy": [
            {
              "id": SHIPPING_RATE_ID
            }
          ]
        }
      ],
      "created_at": "YYYY-MM-DDTHH:MM:SS",
      "updated_at": "YYYY-MM-DDTHH:MM:SS"
    }
  ],
  "pagination": {
    "records": TOTAL_RECORDS,
    "limit": PAGINATION_LIMIT,
    "offset": PAGINATION_OFFSET,
    "previous_page": "PREVIOUS_PAGE_URL",
    "next_page": "NEXT_PAGE_URL"
  }
}

Getting a Specific Shipping Rate

Endpoint: GET /admin/shipping_rates/{shipping_rate_id}

Purpose

This API retrieves detailed information for a specific shipping rate using its unique ID. The response includes policy attributes and conditions for how the rate is applied to qualifying orders.

Path Parameters

ParameterTypeDescription
shipping_rate_idIntegerRequired. ID of the shipping rate.

Query Parameters

No query parameters for this endpoint.

Use Case

Admins use this endpoint to view full configuration details of a particular shipping rate, including thresholds, fees, tax settings, and applicable conditions, for review or editing purposes.

Request Body

No data is required for the request body.

Response

Returns a single shipping rate object containing its ID, name, policy type, additional cost configurations, and an array of condition objects that specify when the rate is triggered.

GET
https://{your_site_domain}/api/v4/admin/shipping_rates/{shipping_rate_id}
Try It Out
json
{
    "shipping_rate": [
      {
        "id": SHIPPING_RATE_ID,
        "name": "NAME",
        "policy_type": "POLICY_TYPE",
        "additional_amount": ADDITIONAL_AMOUNT,
        "additional_cost": ADDITIONAL_COST,
        "is_cumulative": BOOLEAN,
        "includes_tax": BOOLEAN,
        "is_additional": BOOLEAN,
        "conditions": [
          {
            "id": CONDITION_ID,
            "from_amount": FROM_AMOUNT,
            "to_amount": TO_AMOUNT,
            "packet_weight": PACKET_WEIGHT,
            "handling_cost": HANDLING_COST,
            "shipping_cost": SHIPPING_COST,
            "shipping_cost_type": "SHIPPING_COST_TYPE",
            "handling_cost_type": "HANDLING_COST_TYPE",
            "api_type": API_TYPE,
            "api_service_type": API_SERVICE_TYPE,
            "extra_cover": EXTRA_COVER,
            "packing_algorithm": PACKING_ALGORITHM,
            "item_attributes": ITEM_ATTRIBUTES,
            "shipping_policy": [
              {
                "id": SHIPPING_RATE_ID
              }
            ]
          }
        ],
        "created_at": "YYYY-MM-DDTHH:MM:SS",
        "updated_at": "YYYY-MM-DDTHH:MM:SS"
      }
    ]
  }
  
Terms and Conditions
Privacy Policy

© 2024 WebCommander | All Rights Reserved

contact@webcommander.com
1300 797 571

WebCommander
About Us
Features
Pricing
Compare
Partners
Contact Us
Resource
Find a Partner
Help Centre
Community
Blog
Solutions
Inventory Management
Omnichannel Sales
Ecommerce Automation
B2B Ecommerce
Headless Commerce
Website Design and Performance