> This page is for version Prod (default).
> For other versions, use one of these documentation indexes:
> - Prod (default): https://docs.chrt.com/prod/llms.txt
> - Staging: https://docs.chrt.com/staging/llms.txt
> - Dev: https://docs.chrt.com/dev/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.chrt.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.chrt.com/_mcp/server.

# Detail

GET https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/{id}

Returns one mirrored e-Courier order by its Mongo ObjectId. | () -> (EcourierOrder1)

Reference: https://docs.chrt.com/api-reference/api-reference/shipping-integrations/ecourier/orders/detail-v-1

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.chrt.com` (Production, default)
- `https://api.dev.chrt.com` (Development)
- `https://api.staging.chrt.com` (Staging)
- `https://localhost:8000` (Local)

## Request

### Path parameters

- `id` (string, required) — Mongo ObjectId of the mirror document. e-Courier's own order number is the integration_order_id, accepted by the by_integration_order_id route.

## Response

### 200

Successful Response

- `_id` (string, required)
- `created_at_timestamp` (string, required)
- `integration_order_id` (string, required)
- `mirrored_at_timestamp` (string, required)
- `org_id` (string, required) — Must be a string starting with `org_`
- `provider_org_id` (string, required) — Must be a string starting with `org_`
- `provider_payload` (EcourierOrderResponse1, required) — One e-Courier order, including caller contact details and POD signoff. `@UserGUID` and `OrderEvents` are the only attributes deliberately absent, and never to be added. See the module docstring.
- `provider_payload_hash` (string, required)
- `schema_version` (integer, required)
- `shipping_integration` ("ecourier", required)
- `updated_at_timestamp` (string, required)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### EcourierOrderResponse1

One e-Courier order, including caller contact details and POD signoff. `@UserGUID` and `OrderEvents` are the only attributes deliberately absent, and never to be added. See the module docstring.

- `@AmountCharged` (string, optional, nullable)
- `@Auth` (string, optional, nullable)
- `@Caller` (string, optional, nullable)
- `@CallerEmail` (string, optional, nullable)
- `@CallerPhone` (string, optional, nullable)
- `@CreateDate` (string, optional, nullable)
- `@CreateUserName` (string, optional, nullable)
- `@CustomerID` (string, optional, nullable)
- `@DeliveredDateTime` (string, optional, nullable)
- `@DispatchDateTime` (string, optional, nullable)
- `@DueDateTime` (string, optional, nullable)
- `@InvoiceStatus` (string, optional, nullable)
- `@LastChanged` (string, optional, nullable)
- `@OperationalStatus` (string, optional, nullable)
- `@OrderAlias` (string, optional, nullable)
- `@OrderDate` (string, optional, nullable)
- `@OrderGUID` (string, optional, nullable)
- `@OrderID` (string, optional, nullable)
- `@OrderNumber` (string, optional, nullable)
- `@OrderStatus` (string, optional, nullable)
- `@PickedUpDateTime` (string, optional, nullable)
- `@Pieces` (string, optional, nullable)
- `@PodDateTime` (string, optional, nullable)
- `@PodName` (string, optional, nullable)
- `@Service` (string, optional, nullable)
- `@ServiceDesc` (string, optional, nullable)
- `@SiteCode` (string, optional, nullable)
- `@TotalMiles` (string, optional, nullable)
- `@Weight` (string, optional, nullable)
- `Customer` (EcourierOrderCustomerResponse1, optional, nullable) — The customer an order belongs to. This is what the customer check reads. `FindOrder`'s `CustomerCode` filter is undocumented, so the sync asserts `customer_code` here on every hydrated order before persisting it, keeping the mirror to our customer's orders rather than trusting the query.
- `Stops` (list of EcourierOrderStopResponse1, optional)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### EcourierOrderCustomerResponse1

The customer an order belongs to. This is what the customer check reads. `FindOrder`'s `CustomerCode` filter is undocumented, so the sync asserts `customer_code` here on every hydrated order before persisting it, keeping the mirror to our customer's orders rather than trusting the query.

- `@CustomerCode` (string, optional, nullable)
- `@CustomerID` (string, optional, nullable)
- `@Name` (string, optional, nullable)

### EcourierOrderStopResponse1

One stop on an order. `stop_type` is the authoritative origin/destination marker: `P` for pickup, `D` for delivery. No sequence-number inference is needed, which is cleaner than most integrations give us.

- `@Address` (string, optional, nullable)
- `@City` (string, optional, nullable)
- `@Country` (string, optional, nullable)
- `@Latitude` (string, optional, nullable)
- `@Longitude` (string, optional, nullable)
- `@Name` (string, optional, nullable)
- `@Pieces` (string, optional, nullable)
- `@ScheduledDateTime` (string, optional, nullable)
- `@ScheduledDateTimeTZ` (string, optional, nullable)
- `@Sequence` (string, optional, nullable)
- `@State` (string, optional, nullable)
- `@StopID` (string, optional, nullable)
- `@StopType` (string, optional, nullable)
- `@Weight` (string, optional, nullable)
- `@Zip` (string, optional, nullable)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "_id": "string",
  "created_at_timestamp": "2024-01-15T09:30:00Z",
  "integration_order_id": "string",
  "mirrored_at_timestamp": "2024-01-15T09:30:00Z",
  "org_id": "string",
  "provider_org_id": "string",
  "provider_payload": {
    "@AmountCharged": "string",
    "@Auth": "string",
    "@Caller": "string",
    "@CallerEmail": "string",
    "@CallerPhone": "string",
    "@CreateDate": "string",
    "@CreateUserName": "string",
    "@CustomerID": "string",
    "@DeliveredDateTime": "string",
    "@DispatchDateTime": "string",
    "@DueDateTime": "string",
    "@InvoiceStatus": "string",
    "@LastChanged": "string",
    "@OperationalStatus": "string",
    "@OrderAlias": "string",
    "@OrderDate": "string",
    "@OrderGUID": "string",
    "@OrderID": "string",
    "@OrderNumber": "string",
    "@OrderStatus": "string",
    "@PickedUpDateTime": "string",
    "@Pieces": "string",
    "@PodDateTime": "string",
    "@PodName": "string",
    "@Service": "string",
    "@ServiceDesc": "string",
    "@SiteCode": "string",
    "@TotalMiles": "string",
    "@Weight": "string",
    "Customer": {
      "@CustomerCode": "string",
      "@CustomerID": "string",
      "@Name": "string"
    },
    "Stops": [
      {
        "@Address": "string",
        "@City": "string",
        "@Country": "string",
        "@Latitude": "string",
        "@Longitude": "string",
        "@Name": "string",
        "@Pieces": "string",
        "@ScheduledDateTime": "string",
        "@ScheduledDateTimeTZ": "string",
        "@Sequence": "string",
        "@State": "string",
        "@StopID": "string",
        "@StopType": "string",
        "@Weight": "string",
        "@Zip": "string"
      }
    ]
  },
  "provider_payload_hash": "string",
  "schema_version": 1,
  "shipping_integration": "string",
  "updated_at_timestamp": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.chrt.com/shipping_integrations/ecourier/orders/detail/v1/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```