---
title: "Get order detail"
method: GET
path: "/orders/{id}"
tags: ["Admin Sales: Orders"]
---

# Get order detail

`GET /orders/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/orders/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/orders/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Full order-view payload — flat order fields plus embedded customer, billing/shipping addresses, items, invoices, shipments, refunds, and comments. Over GraphQL the nested collections are field-selectable connections (items { edges { node } }) and the to-one objects are typed (customer { name }); over REST they are flat arrays/objects.

## Path parameters

- `id` string, required

## Response `200`

AdminOrderDetail resource

- AdminOrderDetailOrderDetailRestDto: Admin Order detail — connection-shape resource (2026-06-18). Bare Eloquent model on the `orders` table (NOT extending core Order, which carries morphTo/proxy relations that break API Platform serialization — same reason the shop CustomerOrder is bare). Nested data follows the proven AdminReview recipe: - to-many (items / invoices / shipments / refunds / comments) → HasMany to Eloquent sub-resources → GraphQL connections (`items { edges { node } }`). - to-one (customer / billingAddress / shippingAddress) → BelongsTo/HasOne to Eloquent sub-resources → typed objects the client sub-selects. - top-level scalars + formatted strings resolve via snake_case columns and accessors through the central output converter (no AcceptsCamelCaseWrites). REST keeps the historical flat shape via `output: OrderDetailRestDto` (the provider maps it); GraphQL ops carry no `output:` so they return THIS model and serve connections. The provider branches on the GraphQL context.
  - `id` integer, nullable
  - `incrementId` string, nullable
  - `status` string, nullable
  - `statusLabel` string, nullable
  - `channelName` string, nullable
  - `isGuest` boolean, nullable
  - `isGift` boolean, nullable
  - `customerEmail` string, nullable
  - `customerFirstName` string, nullable
  - `customerLastName` string, nullable
  - `shippingMethod` string, nullable
  - `shippingTitle` string, nullable
  - `shippingDescription` string, nullable
  - `paymentMethod` string, nullable
  - `paymentTitle` string, nullable
  - `couponCode` string, nullable
  - `totalItemCount` integer, nullable
  - `totalQtyOrdered` integer, nullable
  - `baseCurrencyCode` string, nullable
  - `channelCurrencyCode` string, nullable
  - `orderCurrencyCode` string, nullable
  - `grandTotal` number, nullable
  - `baseGrandTotal` number, nullable
  - `formattedGrandTotal` string, nullable
  - `grandTotalInvoiced` number, nullable
  - `formattedGrandTotalInvoiced` string, nullable
  - `grandTotalRefunded` number, nullable
  - `formattedGrandTotalRefunded` string, nullable
  - `subTotal` number, nullable
  - `baseSubTotal` number, nullable
  - `formattedSubTotal` string, nullable
  - `taxAmount` number, nullable
  - `formattedTaxAmount` string, nullable
  - `discountAmount` number, nullable
  - `formattedDiscountAmount` string, nullable
  - `shippingAmount` number, nullable
  - `formattedShippingAmount` string, nullable
  - `totalDue` number, nullable
  - `baseTotalDue` number, nullable
  - `formattedTotalDue` string, nullable
  - `createdAt` string, nullable
  - `updatedAt` string, nullable
  - `customer` unknown[], nullable
    - unknown
  - `addresses` object[]
  - `items` object[]
  - `invoices` object[]
  - `shipments` object[]
  - `refunds` object[]
  - `comments` object[]

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
