Get Order

Retrieve detailed information about a specific order, including line items, shipping address, and tracking information.

GET/orders/{id}
Get Order Details

Retrieve full details for a specific order including line items and tracking. Test API keys only see test orders.

On larger screens, use the API Playground panel on the right to try this endpoint.
NameTypeRequiredDescription
idstringRequiredThe order ID
bash
curl "https://api.ctcgx.com/api/v1/orders/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Returns the complete order with all line items, addresses, and tracking information. Returns null if order not found.

json
{
  "order": {
    "id": "clxxx...",
    "orderNumber": 12345,
    "status": "awaiting_shipment",
    "subtotal": 1599,
    "shippingCost": 500,
    "total": 2099,
    "shippingMethod": "Standard Shipping",
    "shippingAddress": {
      "street": "123 Main St",
      "city": "Toronto",
      "province": "ON",
      "postalCode": "M5V 1A1",
      "country": "CA"
    },
    "trackingNumber": null,
    "carrier": null,
    "createdAt": "2024-01-15T10:00:00.000Z",
    "shippedAt": null,
    "deliveredAt": null,
    "items": [
      {
        "listingId": "clyyy...",
        "productId": "clzzz...",
        "productName": "Black Lotus",
        "quantity": 1,
        "priceAtPurchase": 1599,
        "condition": "NM",
        "finish": "nonfoil"
      }
    ],
    "buyer": {
      "username": "cardcollector"
    }
  }
}

Order Details

The order detail response includes:

  • items - Full list of line items with product details
  • shippingAddress - Complete shipping address
  • tracking - Carrier and tracking number (if shipped)
  • Timestamps - When the order was created, shipped, delivered

Line Items

Each line item includes:

  • The original listing details (product, condition, finish)
  • Quantity ordered
  • Price per unit at time of purchase

Note: Prices are stored at time of purchase and won't change if you update your listings later.

API Playground

Select an endpoint from the documentation to try it out here.