Skip to content

Stripe: Shipping rates schemas

5 Stripe schemas with complete fields and constraints.

← Shipping rates operations · All schemas

Create a shipping rate — response body

FieldTypePresenceDescription and constraints
$objectRootShipping rates describe the price of shipping presented to your customers and
applied to a purchase. For more information, see [Charge for shipping](https://docs.stripe.com/payments/during-payment/charge-shipping).
activebooleanRequired within parentWhether the shipping rate can be used for new purchases. Defaults to `true`.
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
delivery_estimateJSONOptional
delivery_estimate (anyOf 1)JSONAlternativeThe estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
delivery_estimate (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a shipping rate — response body — delivery estimate value maximum, minimum
delivery_estimate (anyOf 2)nullAlternative
display_nameJSONOptional
display_name (anyOf 1)stringAlternativeThe name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
Maximum length: 5000
display_name (anyOf 2)nullAlternative
fixed_amountModelOptionalExpand Create a shipping rate — response body — fixed amount
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
metadataobjectRequired within parentSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: shipping_rate
tax_behaviorJSONOptional
tax_behavior (anyOf 1)stringAlternativeSpecifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
Known values: exclusive, inclusive, unspecified
tax_behavior (anyOf 2)nullAlternative
tax_codeJSONOptional
tax_code (anyOf 1)JSONAlternativeA [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
tax_code (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
tax_code (anyOf 1) (anyOf 2)ModelAlternativeExpand Retrieve a tax code — response body
tax_code (anyOf 2)nullAlternative
typestringRequired within parentThe type of calculation to use on the shipping rate.
Known values: fixed_amount

Referenced models: Create a shipping rate — response body — delivery estimate value maximum, minimum, Create a shipping rate — response body — fixed amount, Retrieve a tax code — response body

Create a shipping rate — response body — delivery estimate value maximum, minimum

FieldTypePresenceDescription and constraints
$objectRoot
maximumJSONOptional
maximum (anyOf 1)JSONAlternativeThe upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
maximum (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a shipping rate — response body — delivery_estimate / value / maximum, minimum / maximum / value / unit: business day, day, hour, month, week
maximum (anyOf 2)nullAlternative
minimumJSONOptional
minimum (anyOf 1)JSONAlternativeThe lower bound of the estimated range. If empty, represents no lower bound.
minimum (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a shipping rate — response body — delivery_estimate / value / maximum, minimum / maximum / value / unit: business day, day, hour, month, week
minimum (anyOf 2)nullAlternative

Referenced models: Create a shipping rate — response body — delivery_estimate / value / maximum, minimum / maximum / value / unit: business day, day, hour, month, week

Create a shipping rate — response body — delivery_estimate / value / maximum, minimum / maximum / value / unit: business day, day, hour, month, week

FieldTypePresenceDescription and constraints
$objectRoot
unitstringRequired within parentA unit of time.
Known values: business_day, day, hour, month, week
valueJSONRequired within parent
value (anyOf 1)integerAlternativeMust be greater than 0.
value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create a shipping rate — response body — fixed amount

FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeA non-negative integer in cents representing how much to charge.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
currency_optionsobjectOptionalShipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
Additional keys: see wildcard field
currency_options.*ModelAdditional keysExpand Create a shipping rate — response body — fixed amount currency options value

Referenced models: Create a shipping rate — response body — fixed amount currency options value

Create a shipping rate — response body — fixed amount currency options value

FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeA non-negative integer in cents representing how much to charge.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
tax_behaviorstringRequired within parentSpecifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
Known values: exclusive, inclusive, unspecified

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.