Create a shipping method

POST https://api.tamio.com/v2/shippings/create

Creates a new shipping method with geographic targeting, pricing, and optional bundling rules for multi-item orders. Bundling rules define quantity-based pricing tiers using either range (from–to) or max (up to N) logic.

Body Parameters

label string*

Display name for the shipping method.

price integer*

Base shipping price in smallest currency unit (e.g. cents).

currency string*

ISO currency code.

active boolean*

Whether this shipping method is available for selection.

destination array of string*

Country or region codes where shipping is available.

states array of string

State/province restrictions within destinations.

postcodes array of string

Postcode restrictions.

bundling_rules array of BundlingRuleInput

Quantity-based pricing tiers for multi-item orders. Each rule is either a range (from–to) or a max (up to N items) type. Only one max rule is allowed. Ranges must not overlap.

Responses

200 Shipping method created

Shipping method created

status integer
shipping Shipping
400 Validation or business-logic error
401 Missing or invalid API key
/shippings/create
1const response = await fetch("https://api.tamio.com/v2/shippings/create", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "shipping": {
    "id": "string",
    "label": "string",
    "object": "shipping",
    "currency": "string",
    "destination": [],
    "price": 0,
    "has_bundling": false,
    "postcodes": [],
    "states": [],
    "bundling_rules": [],
    "active": false,
    "has_notes": false
  }
}