A shipping rate is what an order pays to ship. It can't change once created, so every order keeps what it was charged: to charge something else, create a new one and archive the old.
Attributes
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier, starting shr_. |
object | string | Always shipping_rate. |
livemode | boolean | true in live mode. |
display_name | string | What customers see at checkout. |
amount | integer | For the whole order, in cents. 0 is free shipping. |
currency | string | usd. |
free_from | integer or null | Free when the order's items come to this or more, before discounts and tax. |
delivery_estimate | object or null | unit (hour, business_day, day, week or month), minimum and maximum. |
tax_behavior | enum | exclusive or inclusive. |
status | enum | active or archived. |
created | timestamp | When it was created. |
Example
Endpoints
| Endpoint | What it does |
|---|---|
POST /v1/shipping_rates | Create a shipping rate. |
GET /v1/shipping_rates/{id} | Get a shipping rate by its ID. |
POST /v1/shipping_rates/{id}/archive | Stop a rate being offered. |
GET /v1/shipping_rates | List your shipping rates, newest first. |