The Shipping Rate object ​
Attributes ​
id(string) Unique identifier for the object.object(string) String representing the object’s type. Objects of the same type share the same value.active(boolean) Whether the shipping rate can be used for new purchases. Defaults totrue.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.delivery_estimate(object, nullable) The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.delivery_estimate.maximum(object, nullable) The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.delivery_estimate.maximum.unit(enum) A unit of time. Possible enum values:business_dayThe delivery estimate is in business days.dayThe delivery estimate is in days.hourThe delivery estimate is in hours.monthThe delivery estimate is in months.weekThe delivery estimate is in weeks.
delivery_estimate.maximum.value(integer) Must be greater than 0.
delivery_estimate.minimum(object, nullable) The lower bound of the estimated range. If empty, represents no lower bound.delivery_estimate.minimum.unit(enum) A unit of time. Possible enum values:business_dayThe delivery estimate is in business days.dayThe delivery estimate is in days.hourThe delivery estimate is in hours.monthThe delivery estimate is in months.weekThe delivery estimate is in weeks.
delivery_estimate.minimum.value(integer) Must be greater than 0.
display_name(string, nullable) The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.fixed_amount(object, nullable) Describes a fixed amount to charge for shipping. Must be present if type isfixed_amount.fixed_amount.amount(integer) A non-negative integer in cents representing how much to charge.fixed_amount.currency(enum) Three-letter ISO currency code, in lowercase. Must be a supported currency.fixed_amount.currency_options(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Shipping rates defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.fixed_amount.currency_options.<currency>.amount(integer) A non-negative integer in cents representing how much to charge.fixed_amount.currency_options.<currency>.tax_behavior(enum) Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Possible enum values:exclusiveinclusiveunspecified
livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.metadata(object) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.tax_behavior(enum, nullable) Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Possible enum values:exclusiveinclusiveunspecified
tax_code(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) A tax code ID. The Shipping tax code istxcd_92010001.type(enum) The type of calculation to use on the shipping rate. Possible enum values:fixed_amountThe shipping rate is a fixed amount.
The Shipping Rate object ​
json
{
"id": "shr_1MrRx2LkdIwHu7ixikgEA6Wd",
"object": "shipping_rate",
"active": true,
"created": 1680207604,
"delivery_estimate": null,
"display_name": "Ground shipping",
"fixed_amount": {
"amount": 500,
"currency": "usd"
},
"livemode": false,
"metadata": {},
"tax_behavior": "unspecified",
"tax_code": null,
"type": "fixed_amount"
}