Orders
Return an Order
Storefront API
- Authentication
- Account
- Account / Address
- Account / Credit Cards
- Account / Orders
- Order Status
- Cart
- Cart / Line Items
- Cart / Other
- Cart / Coupons
- Checkout
- Checkout / State
- Checkout / Shipments
- Checkout / Payments
- Checkout / Store Credit
- Stripe
- Products
- Vendors
- Stores
- Taxons
- Countries
- CMS Pages
- Menus
- Wishlists
- Wishlists / Wished Items
- Digital Downloads
Platform API
- Authentication
- Addresses
- Adjustments
- Classifications
- CMS Pages
- CMS Sections
- Countries
- Data Feeds
- Digital Links
- Digital Assets
- Line Items
- Menu Items
- Menus
- Option Types
- Option Values
- Orders
- Payment Methods
- Payments
- Products
- Promotion Actions
- Promotion Categories
- Promotion Rules
- Promotions
- Roles
- Shipments
- Shipping Categories
- Shipping Methods
- States
- Stock Items
- Stock Locations
- Store Credit Categories
- Store Credit Types
- Store Credits
- Tax Categories
- Tax Rates
- Taxonomies
- Taxons
- Users
- Variants
- Vendors
- Webhook Events
- Webhook Subscribers
- Wished Items
- Wishlists
- Zones
Orders
Return an Order
Returns an Order
GET
/
api
/
v2
/
platform
/
orders
/
{id}
curl --request GET \
--url http://{defaultHost}/api/v2/platform/orders/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "45",
"type": "order",
"attributes": {
"number": "R612921489",
"item_total": "10.0",
"total": "110.0",
"state": "delivery",
"adjustment_total": "0.0",
"completed_at": null,
"payment_total": "0.0",
"shipment_state": null,
"payment_state": null,
"email": "[email protected]",
"special_instructions": null,
"created_at": "2022-11-08T19:34:37.360Z",
"updated_at": "2022-11-08T19:34:37.513Z",
"currency": "USD",
"last_ip_address": null,
"shipment_total": "100.0",
"additional_tax_total": "0.0",
"promo_total": "0.0",
"channel": "spree",
"included_tax_total": "0.0",
"item_count": 1,
"approved_at": null,
"confirmation_delivered": false,
"canceled_at": null,
"state_lock_version": 0,
"taxable_adjustment_total": "0.0",
"non_taxable_adjustment_total": "0.0",
"store_owner_notification_delivered": null,
"public_metadata": {},
"private_metadata": {},
"internal_note": null,
"display_ship_total": "$100.00",
"display_shipment_total": "$100.00",
"display_outstanding_balance": "$110.00",
"display_item_total": "$10.00",
"display_adjustment_total": "$0.00",
"display_included_tax_total": "$0.00",
"display_additional_tax_total": "$0.00",
"display_tax_total": "$0.00",
"display_promo_total": "$0.00",
"display_total": "$110.00",
"display_cart_promo_total": "$0.00",
"display_pre_tax_item_amount": "$10.00",
"display_pre_tax_total": "$10.00",
"display_total_applicable_store_credit": "$0.00",
"display_total_applied_store_credit": "$0.00",
"display_order_total_after_store_credit": "$110.00",
"display_total_available_store_credit": "$0.00",
"display_store_credit_remaining_after_capture": "$0.00"
},
"relationships": {
"user": {
"data": {
"id": "45",
"type": "user"
}
},
"created_by": {
"data": null
},
"approver": {
"data": null
},
"canceler": {
"data": null
},
"bill_address": {
"data": {
"id": "57",
"type": "address"
}
},
"ship_address": {
"data": {
"id": "58",
"type": "address"
}
},
"line_items": {
"data": [
{
"id": "36",
"type": "line_item"
}
]
},
"payments": {
"data": []
},
"shipments": {
"data": [
{
"id": "1",
"type": "shipment"
}
]
},
"state_changes": {
"data": []
},
"return_authorizations": {
"data": []
},
"reimbursements": {
"data": []
},
"adjustments": {
"data": []
},
"all_adjustments": {
"data": []
},
"order_promotions": {
"data": []
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Query Parameters
Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>
Was this page helpful?
curl --request GET \
--url http://{defaultHost}/api/v2/platform/orders/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "45",
"type": "order",
"attributes": {
"number": "R612921489",
"item_total": "10.0",
"total": "110.0",
"state": "delivery",
"adjustment_total": "0.0",
"completed_at": null,
"payment_total": "0.0",
"shipment_state": null,
"payment_state": null,
"email": "[email protected]",
"special_instructions": null,
"created_at": "2022-11-08T19:34:37.360Z",
"updated_at": "2022-11-08T19:34:37.513Z",
"currency": "USD",
"last_ip_address": null,
"shipment_total": "100.0",
"additional_tax_total": "0.0",
"promo_total": "0.0",
"channel": "spree",
"included_tax_total": "0.0",
"item_count": 1,
"approved_at": null,
"confirmation_delivered": false,
"canceled_at": null,
"state_lock_version": 0,
"taxable_adjustment_total": "0.0",
"non_taxable_adjustment_total": "0.0",
"store_owner_notification_delivered": null,
"public_metadata": {},
"private_metadata": {},
"internal_note": null,
"display_ship_total": "$100.00",
"display_shipment_total": "$100.00",
"display_outstanding_balance": "$110.00",
"display_item_total": "$10.00",
"display_adjustment_total": "$0.00",
"display_included_tax_total": "$0.00",
"display_additional_tax_total": "$0.00",
"display_tax_total": "$0.00",
"display_promo_total": "$0.00",
"display_total": "$110.00",
"display_cart_promo_total": "$0.00",
"display_pre_tax_item_amount": "$10.00",
"display_pre_tax_total": "$10.00",
"display_total_applicable_store_credit": "$0.00",
"display_total_applied_store_credit": "$0.00",
"display_order_total_after_store_credit": "$110.00",
"display_total_available_store_credit": "$0.00",
"display_store_credit_remaining_after_capture": "$0.00"
},
"relationships": {
"user": {
"data": {
"id": "45",
"type": "user"
}
},
"created_by": {
"data": null
},
"approver": {
"data": null
},
"canceler": {
"data": null
},
"bill_address": {
"data": {
"id": "57",
"type": "address"
}
},
"ship_address": {
"data": {
"id": "58",
"type": "address"
}
},
"line_items": {
"data": [
{
"id": "36",
"type": "line_item"
}
]
},
"payments": {
"data": []
},
"shipments": {
"data": [
{
"id": "1",
"type": "shipment"
}
]
},
"state_changes": {
"data": []
},
"return_authorizations": {
"data": []
},
"reimbursements": {
"data": []
},
"adjustments": {
"data": []
},
"all_adjustments": {
"data": []
},
"order_promotions": {
"data": []
}
}
}
}