Overview
Fetch a Shopify order by its order ID. Optionally retrieve the calculated line items (with commission, payout, and cost data) instead of the raw order.
Use Cases
- Look up order details for customer support workflows
- Pull calculated line items to verify commission and payout amounts
- Feed order data into an external accounting or fulfillment system
- Build a custom order detail page in a third-party dashboard
Path Parameters
The Shopify order ID (numeric).
Query Parameters
Set to "true" to return calculated line items instead of the raw order document. Calculated line items include commission, payout, cost of goods, and other financial fields.
Response
Raw Order (default)
{
"orders": {
"_id": "...",
"orderId": 5022136860720,
"orderNumber": 1042,
"shopId": "...",
...
}
}
Calculated Line Items (?lineItems=true)
{
"orders": [
{
"_id": "...",
"lineItemId": 12345678901234,
"orderId": 5022136860720,
"vendorName": "acme supplies",
"sales": 279.99,
"commission": 39.20,
"costOfItem": 15.50,
"payout": 194.13,
...
}
]
}
Example
# Get raw order
curl -X GET "https://api.puppetvendors.com/v1/orders/5022136860720" \
-H "x-access-token: YOUR_JWT_TOKEN"
# Get calculated line items
curl -X GET "https://api.puppetvendors.com/v1/orders/5022136860720?lineItems=true" \
-H "x-access-token: YOUR_JWT_TOKEN"