Skip to main content
GET
/
api
/
v1
/
orders
/
domains
/
{domain}
/
order
/
{orderId}
/
status
Get Order Status
curl --request GET \
  --url https://api.firmly.work/api/v1/orders/domains/{domain}/order/{orderId}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'x-firmly-authorization: <x-firmly-authorization>'
{
  "status": "partially_delivered",
  "order_number": "BBY01-807121052010",
  "refund_total": {
    "currency": "USD",
    "value": 27.53,
    "number": 2753,
    "symbol": "$"
  },
  "order_status_page_url": "https://www.bestbuy.com/profile/ss/orders/order-details/BBY01-807121052010/view",
  "line_items": [
    {
      "line_item_id": "a1b2c3d4-0005-0005-0005-000000000001",
      "sku": "6377581",
      "status": "returned",
      "quantity": 1,
      "tracking": {
        "tracking_number": "D10016972979292",
        "carrier": "OnTrac",
        "shipped_at": "2025-12-14T14:54:33Z",
        "delivered_at": "2025-12-14T00:00:00.000Z"
      },
      "refund_amount": {
        "currency": "USD",
        "value": 27.53,
        "number": 2753,
        "symbol": "$"
      }
    },
    {
      "line_item_id": "a1b2c3d4-0005-0005-0005-000000000002",
      "sku": "6617430",
      "status": "delivered",
      "quantity": 1
    }
  ],
  "fulfillments": [
    {
      "id": "c1568c71-d584-49c4-affc-3e756dfc3de0",
      "status": "DELIVERED",
      "tracking_number": "D10016972979292",
      "carrier": "OnTrac",
      "shipped_at": "2025-12-14T14:54:33Z",
      "delivered_at": "2025-12-14T00:00:00.000Z",
      "estimated_delivery": "2025-12-14T00:00:00.000Z",
      "line_item_skus": ["6377581"]
    }
  ],
  "events": [
    {
      "type": "order_placed",
      "timestamp": "2025-12-10T15:18:50-06:00",
      "description": "Order placed"
    },
    {
      "type": "delivered",
      "timestamp": "2025-12-14T14:54:33-06:00",
      "description": "Delivered",
      "line_item_sku": "6377581"
    },
    {
      "type": "refund_completed",
      "timestamp": "2026-01-05T10:00:00.000Z",
      "description": "Refund completed"
    }
  ],
  "returns": [
    {
      "id": "9725356645660",
      "status": "Receipt Closed",
      "line_items": [
        {
          "sku": "6377581",
          "quantity": 1,
          "refund_amount": {
            "currency": "USD",
            "value": 27.53,
            "number": 2753,
            "symbol": "$"
          }
        }
      ],
      "refund_amount": {
        "currency": "USD",
        "value": 27.53,
        "number": 2753,
        "symbol": "$"
      },
      "refund_product_price": {
        "currency": "USD",
        "value": 24.99,
        "number": 2499,
        "symbol": "$"
      },
      "refund_sales_tax": {
        "currency": "USD",
        "value": 2.54,
        "number": 254,
        "symbol": "$"
      },
      "refund_shipping_total": {
        "currency": "USD",
        "value": 0,
        "number": 0,
        "symbol": "$"
      },
      "restocking_fee": {
        "currency": "USD",
        "value": 0,
        "number": 0,
        "symbol": "$"
      },
      "initiated_at": "2025-12-22"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.firmly.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Get Order Status endpoint retrieves the current status of a placed order directly from the merchant platform. Use this endpoint for post-checkout order tracking to display:
  • Current order status and fulfillment progress
  • Shipment tracking information with carrier details
  • Return and refund status
  • Order timeline events
The response is assembled in real-time via the merchant’s platform adapter, so the data reflects the latest state from the source system.
Response fields vary by merchant platform adapter — most merchants return only a subset of the fields documented below. Only required fields are guaranteed in every response:
  • Top-level: status, order_number
  • Line items (when present): line_item_id, sku, status
  • Fulfillments (when present): id, status
  • Events (when present): type, timestamp
  • Returns (when present): id, status; nested return line items: sku, quantity
  • Refunds (when present): id, amount (with currency and value)

Authentication

x-firmly-authorization
string
required
Device authentication token or service binding authentication token

Path Parameters

domain
string
required
Domain of the merchant website (e.g., bestbuy.com)
orderId
string
required
The order identifier returned from the Place Order or Complete Order endpoints

Response

status
string
required
Current order status. One of: pending, confirmed, processing, on_its_way, shipped, partially_delivered, delivered, cancelled, returned, partially_returned
order_number
string
required
The merchant platform order number
refund_total
object
Total refunded amount
order_status_page_url
string
URL to the merchant’s order status page
line_items
array
Array of items in the order with individual status
fulfillments
array
Array of fulfillment shipments
events
array
Timeline of order events
returns
array
Array of return requests
refunds
array
Array of refund transactions

Code Examples

curl --request GET \
  --url https://api.firmly.work/api/v1/orders/domains/bestbuy.com/order/ord_01H2XVBR8C8JS5MQSFPJ8HF9SA/status \
  --header 'x-firmly-authorization: YOUR_TOKEN'
{
  "status": "partially_delivered",
  "order_number": "BBY01-807121052010",
  "refund_total": {
    "currency": "USD",
    "value": 27.53,
    "number": 2753,
    "symbol": "$"
  },
  "order_status_page_url": "https://www.bestbuy.com/profile/ss/orders/order-details/BBY01-807121052010/view",
  "line_items": [
    {
      "line_item_id": "a1b2c3d4-0005-0005-0005-000000000001",
      "sku": "6377581",
      "status": "returned",
      "quantity": 1,
      "tracking": {
        "tracking_number": "D10016972979292",
        "carrier": "OnTrac",
        "shipped_at": "2025-12-14T14:54:33Z",
        "delivered_at": "2025-12-14T00:00:00.000Z"
      },
      "refund_amount": {
        "currency": "USD",
        "value": 27.53,
        "number": 2753,
        "symbol": "$"
      }
    },
    {
      "line_item_id": "a1b2c3d4-0005-0005-0005-000000000002",
      "sku": "6617430",
      "status": "delivered",
      "quantity": 1
    }
  ],
  "fulfillments": [
    {
      "id": "c1568c71-d584-49c4-affc-3e756dfc3de0",
      "status": "DELIVERED",
      "tracking_number": "D10016972979292",
      "carrier": "OnTrac",
      "shipped_at": "2025-12-14T14:54:33Z",
      "delivered_at": "2025-12-14T00:00:00.000Z",
      "estimated_delivery": "2025-12-14T00:00:00.000Z",
      "line_item_skus": ["6377581"]
    }
  ],
  "events": [
    {
      "type": "order_placed",
      "timestamp": "2025-12-10T15:18:50-06:00",
      "description": "Order placed"
    },
    {
      "type": "delivered",
      "timestamp": "2025-12-14T14:54:33-06:00",
      "description": "Delivered",
      "line_item_sku": "6377581"
    },
    {
      "type": "refund_completed",
      "timestamp": "2026-01-05T10:00:00.000Z",
      "description": "Refund completed"
    }
  ],
  "returns": [
    {
      "id": "9725356645660",
      "status": "Receipt Closed",
      "line_items": [
        {
          "sku": "6377581",
          "quantity": 1,
          "refund_amount": {
            "currency": "USD",
            "value": 27.53,
            "number": 2753,
            "symbol": "$"
          }
        }
      ],
      "refund_amount": {
        "currency": "USD",
        "value": 27.53,
        "number": 2753,
        "symbol": "$"
      },
      "refund_product_price": {
        "currency": "USD",
        "value": 24.99,
        "number": 2499,
        "symbol": "$"
      },
      "refund_sales_tax": {
        "currency": "USD",
        "value": 2.54,
        "number": 254,
        "symbol": "$"
      },
      "refund_shipping_total": {
        "currency": "USD",
        "value": 0,
        "number": 0,
        "symbol": "$"
      },
      "restocking_fee": {
        "currency": "USD",
        "value": 0,
        "number": 0,
        "symbol": "$"
      },
      "initiated_at": "2025-12-22"
    }
  ]
}

Error Responses

Device authentication failed — the token is missing, invalid, or expired.
{
  "code": 401,
  "error": "InvalidJWTToken",
  "description": "The JWT token is invalid"
}
The authenticated device does not own this order.
{
  "code": 403,
  "error": "Forbidden",
  "description": "Device does not have access to this order"
}
The order was not found in internal storage.
{
  "code": 400,
  "error": "ErrorOrderNotFound",
  "description": "Order not found"
}
The merchant platform adapter does not support order status retrieval.
{
  "code": 422,
  "error": "ErrorOperationNotSupported",
  "description": "Order status is not supported for this merchant"
}
Store configuration not found for the given domain.
{
  "code": 404,
  "error": "ErrorDomainNotFound",
  "description": "Store configuration not found for this domain"
}