Get an order
Orders
Get Order
Retrieves a specific order by ID.
GET
Get an order
Overview
Retrieve complete details for a single order by its ID. Use this endpoint to display order details, check fulfillment status, or verify order contents before creating subscriptions.Common Use Cases
- Order Details Page: Display complete order information to customers or staff
- Pre-Fulfillment Check: Verify order contents and customer details before creating subscriptions
- Status Tracking: Check if an order has been fully fulfilled
- Invoice Generation: Get order totals and line items for invoicing
Order Lifecycle
Orders progress through these statuses:| Status | What it means |
|---|---|
pending | Order received, awaiting review/confirmation |
confirmed | Approved and ready for fulfillment (creating subscriptions) |
partial | Some items have subscriptions, others still pending |
fulfilled | All items have active subscriptions |
cancelled | Order was cancelled (no subscriptions created) |
Understanding Order Items
Each item in theitems array represents a product line in the order:
| Field | Description |
|---|---|
sku | Product variant SKU |
quantity | Number of units ordered |
unitPrice | Monthly subscription price per unit |
contractLength | Subscription duration in months |
rentalStatus | pending, partial, or completed |
rentalIds | IDs of subscriptions created for this line item |
Fulfillment Progress
TherentalProgress field shows overall fulfillment status:
rentedDevices equals totalDevices, the order status changes to fulfilled.
Cost Tracking Fields
For cost recovery and profitability tracking:| Field | Description |
|---|---|
listPrice | MSRP/retail price of the product |
acquisitionCost | Your cost to acquire the product |
listPriceSource | Where list price came from (variant, manual) |
acquisitionCostSource | Where cost came from (variant, manual, list_price) |
Example: Check if Order is Ready for Fulfillment
Related Endpoints
- List Orders - Get all orders with filtering
- Create Subscription - Create subscriptions for order items
- Get Customer - Get customer details
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Path Parameters
The order ID
Response
Order details
Available options:
pending, confirmed, partial, fulfilled, cancelled Available options:
standard, extension, upgrade