Get shipping rates
Shipping options and delivery windows for a recipient and items.
GET https://cotlet.dev/api/v1/printful/countries/{country_code}/shipping-rates
read
Returns every rate with name, price, currency and the delivery window in days. Country is always required, and state is required for US, Australia and Canada. Call it right before placing an order. The rates can differ from the cost estimate unless shipping settings are enabled for the store.
Parameters
| Name | Type | Description |
|---|---|---|
| country_code string required | string | Two-letter country code, for example DE. |
| state_code string | string | Required for US, AU and CA. |
| items object[] required | object[] | Items as variant_id and quantity. |
Request
curl "https://cotlet.dev/api/v1/printful/countries/country%20code/shipping-rates?items=items" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("printful", "get_shipping_rates", {"country_code":"country code","items":["items"]}) const result = await cotlet.call('printful', 'get_shipping_rates', {"country_code":"country code","items":["items"]}); cotlet call printful get_shipping_rates --data '{"country_code":"country code","items":["items"]}' Example response
{
"rates": [
{
"name": "Standard",
"rate": "5.95",
"currency": "EUR",
"min_delivery_days": 3,
"max_delivery_days": 6
},
{
"name": "Express",
"rate": "14.50",
"currency": "EUR",
"min_delivery_days": 1,
"max_delivery_days": 3
}
]
}