# Order Info by Client Order Code

> Same as [Order Info](https://developer.ghn.vn/en/docs/order/info.md), but looks the order up by **your own `client_order_code`** instead of GHN's `order_code`. Useful when you track orders by your internal codes.

Shares the request contract with [order/info](https://developer.ghn.vn/en/docs/order/info.md)

## Endpoint

| Environment | URL |
| --- | --- |
| Production | `https://online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/detail-by-client-code` |
| Staging | `https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/detail-by-client-code` |

**Method**: `GET`

## Headers

| Header | Required | Description |
| --- | --- | --- |
| `Token` | Yes | Shop token (issued by GHN) — [get a token](https://developer.ghn.vn/en/docs/token/get-token.md) |
| `ShopId` | Yes | Shop ID (int) |

## Parameters

- **client_order_code** (String): Your own order code (the `client_order_code` you set when creating the order). The order must belong to a shop your account is a member of

## Request Example

```bash
curl -X GET "https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shipping-order/detail-by-client-code?client_order_code=SHOP-2026-00193" \
  -H "Token: 5c1d8a9e-2f4b-11ed-..." \
  -H "ShopId: 92837"
```

## Response

Identical to [Order Info](https://developer.ghn.vn/en/docs/order/info.md#response) — same `data` object and the same field list. One difference: `pickup_shift` is always `{}` here (only the Order Info endpoint computes the pickup window).

## Error Codes

Same as [Order Info](https://developer.ghn.vn/en/docs/order/info.md#error-codes).
