- Getting Started
- Auth
- Carts
- Create Payment SessionsPOST
- Update a Payment SessionPOST
- Delete a Payment SessionDELETE
- Create a CartPOST
- Get a CartGET
- Update a CartPOST
- Remove DiscountDELETE
- Add a Line ItemPOST
- Update a Line ItemPOST
- Delete a Line ItemDELETE
- Select a Payment SessionPOST
- Refresh a Payment SessionPOST
- Add Shipping MethodPOST
- Calculate Cart TaxesPOST
- Complete a CartPOST
- Customers
- Gift Cards
- Orders
- Order Edits
- Payment Collections
- Products
- Product Variants
- Product Categories
- Product Collections
- Product Tags
- Product Types
- Regions
- Returns
- Return Reasons
- Shipping Options
- Swaps
List for Cart
GET
/store/shipping-options/{cart_id}
Shipping Options
Request
Path Params
cart_id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.medusa-commerce.com/store/shipping-options/'
Responses
🟢200OK
application/json
Body
shipping_options
array[object (Priced Shipping Option) {22}]
required
id
string
required
Example:
so_01G1G5V27GYX4QXNARRQCW1N8T
name
string
required
Example:
PostFake Standard
region_id
string
required
Example:
reg_01G1G5V26T9H8Y0M4JNE3YGA4G
region
object | null
optional
profile_id
string
required
Example:
sp_01G1G5V239ENSZ5MV4JAR737BM
provider_id
string
required
Example:
manual
amount
integer | null
required
flat_rate
.Example:
200
is_return
boolean
required
Default:
false
admin_only
boolean
required
Default:
false
includes_tax
boolean
optional
Default:
false
created_at
string <date-time>
required
updated_at
string <date-time>
required
deleted_at
string <date-time> | null
required
price_type
enum<string>
required
flat_rate
for fixed prices or calculated
if the Fulfillment Provider can provide price calulations.Allowed values:
flat_ratecalculated
Example:
flat_rate
data
object
required
Example:
{}
metadata
object | null
required
Example:
{"car":"white"}
provider
object
Fulfillment Provider
requirements
array[object (Shipping Option Requirement) {6}]
optional
profile
object
Shipping Profile
gift_card
groups together the shipping options that can only be used for gift cards.price_incl_tax
number
optional
tax_amount
number
optional
tax_rates
array [object {3}]
optional
Example
{
"shipping_options": [
{
"id": "so_01G1G5V27GYX4QXNARRQCW1N8T",
"name": "PostFake Standard",
"region_id": "reg_01G1G5V26T9H8Y0M4JNE3YGA4G",
"region": {},
"profile_id": "sp_01G1G5V239ENSZ5MV4JAR737BM",
"provider_id": "manual",
"amount": 200,
"is_return": false,
"admin_only": false,
"includes_tax": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"price_type": "flat_rate",
"data": {},
"metadata": {
"car": "white"
},
"provider": {
"id": "manual",
"is_installed": true
},
"requirements": [
{
"id": "sor_01G1G5V29AB4CTNDRFSRWSRKWD",
"shipping_option_id": "so_01G1G5V27GYX4QXNARRQCW1N8T",
"shipping_option": {},
"amount": 100,
"deleted_at": "2019-08-24T14:15:22Z",
"type": "min_subtotal"
}
],
"profile": {
"id": "sp_01G1G5V239ENSZ5MV4JAR737BM",
"name": "Default Shipping Profile",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"type": "default",
"products": [
{}
],
"shipping_options": [
{}
],
"metadata": {
"car": "white"
}
},
"price_incl_tax": 0,
"tax_amount": 0,
"tax_rates": [
{
"rate": 0,
"name": "string",
"code": "string"
}
]
}
]
}
🟠400Client Error or Multiple Errors
🟠404Not Found Error
🟠409Invalid State Error
🟠422Invalid Request Error
🔴500Server Error
Modified at 2024-01-06 03:57:20