comecerodocs

Get a shipping method in settings

GET
/settings/shipping/methods/{method_id}

Returns one shipping method from the shipping settings. Secret and trusted tokens may call it when their permissions include settings_shipping. Limited tokens may not.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

method_id*string

The shipping method ID.

Query Parameters

show?string

Comma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.

hide?string

Comma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.

formatted?boolean

When true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.

Defaultfalse

Response Body

The shipping method.

application/json
  1. response

One shipping method in the shipping settings: the countries it serves and how its price is worked out. A method has exactly one set of rules: by quantity, by order subtotal or by weight.

object?"settings_shipping.method"

The object type. Always settings_shipping.method.

Value in"settings_shipping.method"
url?string

The URL of this method.

Formaturi
method_id?string

The method ID. Comecero makes it from the description and countries when the method is created. It does not change after that.

description?string

The name the shopper sees, such as Standard Shipping. Up to 75 characters.

Lengthlength <= 75
details?|

More text for the shopper, such as delivery times. Up to 125 characters.

Lengthlength <= 125
countries?array<string>

Two-letter ISO country codes the method ships to, up to 50. Or * on its own for every country.

Items1 <= items <= 50
quantity_rules?array<>|

Prices by the number of items in the order.

subtotal_rules?array<>|

Prices by the order subtotal, one entry per currency.

weight_rules?array<>|

Prices by the total weight of the order.

adjustments?array<>|

Extra charges for some states or provinces, such as Alaska and Hawaii. Only for the United States and Canada.

formatted?

Display text. Returned only when formatted=true.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/settings/shipping/methods/string'
Example Response
{  "object": "settings_shipping.method",  "url": "https://api.comecero.com/api/v1/settings/shipping/methods/standard-shipping-us",  "method_id": "standard-shipping-us",  "description": "Standard Shipping",  "details": "Arrives in 3 to 5 business days.",  "countries": [    "US"  ],  "quantity_rules": null,  "subtotal_rules": [    {      "currency": "USD",      "ranges": [        {          "minimum": 0,          "maximum": 49.99,          "price": 5        },        {          "minimum": 50,          "maximum": 999999,          "price": 0        }      ]    }  ],  "weight_rules": null,  "adjustments": [    {      "country": "US",      "regions": [        "AK",        "HI"      ],      "percentage": null,      "amounts": [        {          "price": 10,          "currency": "USD"        }      ]    }  ]}