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

# Get order details by order ID

GET https://api.enigmagenomics.com/orders/{oid}

The Get Order API endpoint will be used to a single order detail that is place in the Enigma platform by the particular authenticated user.

Reference: https://docs.enigmagenomics.com/enigma-lis-integrations/orders/oid/get-order-details-by-order-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /orders/{oid}:
    get:
      operationId: Get order details by order ID
      summary: Get order details by order ID
      description: >-
        The Get Order API endpoint will be used to a single order detail that is
        place in the Enigma platform by the particular authenticated user.
      tags:
        - oid
      parameters:
        - name: oid
          in: path
          description: '(Required) '
          required: true
          schema:
            type: string
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/orders_{oid}_Get order details by order
                  ID_Response_200
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrdersOidRequestNotFoundError'
servers:
  - url: https://api.enigmagenomics.com
    description: https://api.enigmagenomics.com
components:
  schemas:
    OrdersOidGetResponsesContentApplicationJsonSchemaDataCoupon:
      type: object
      properties:
        code:
          type: string
      required:
        - code
      title: OrdersOidGetResponsesContentApplicationJsonSchemaDataCoupon
    OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryFamilyItemsT:
      type: object
      properties:
        ar:
          type: string
      required:
        - ar
      title: >-
        OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryFamilyItemsT
    OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryFamilyItems:
      type: object
      properties:
        q:
          type: string
        t:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryFamilyItemsT
        id:
          type: string
        type:
          type: string
        age_of_manifestation:
          type: string
      required:
        - q
        - t
        - id
        - type
        - age_of_manifestation
      title: >-
        OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryFamilyItems
    OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryPersonalItemsT:
      type: object
      properties:
        ar:
          type: string
      required:
        - ar
      title: >-
        OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryPersonalItemsT
    OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryPersonalItems:
      type: object
      properties:
        q:
          type: string
        t:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryPersonalItemsT
        id:
          type: string
        type:
          type: string
        age_of_manifestation:
          type: string
      required:
        - q
        - t
        - id
        - type
        - age_of_manifestation
      title: >-
        OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryPersonalItems
    OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetails:
      type: object
      properties:
        age:
          type: string
        dob:
          type: string
          format: date
        mrn:
          type: string
        tel:
          type: string
        email:
          type: string
        fname:
          type: string
        lname:
          type: string
        natid:
          type: string
        gender:
          type: string
        country:
          type: string
        ethnicity:
          type: string
        indication:
          type: string
        body_height:
          type: string
        body_weight:
          type: string
        countryCode:
          type: string
        nationality:
          type: string
        sample_type:
          type: string
        sample_count:
          type: string
        history_family:
          type: array
          items:
            $ref: >-
              #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryFamilyItems
        is_fetus_sample:
          type: string
        parents_related:
          type: string
        history_personal:
          type: array
          items:
            $ref: >-
              #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetailsHistoryPersonalItems
        secondary_findings:
          type: string
        parents_first_cousin:
          type: string
        additional_indication:
          type: string
        sample_collection_date:
          type: string
          format: date
        sample_collection_time:
          type: string
      required:
        - age
        - dob
        - mrn
        - tel
        - email
        - fname
        - lname
        - natid
        - gender
        - country
        - ethnicity
        - indication
        - body_height
        - body_weight
        - countryCode
        - nationality
        - sample_type
        - sample_count
        - history_family
        - is_fetus_sample
        - parents_related
        - history_personal
        - secondary_findings
        - parents_first_cousin
        - additional_indication
        - sample_collection_date
        - sample_collection_time
      title: OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetails
    OrdersOidGetResponsesContentApplicationJsonSchemaDataProductDetails:
      type: object
      properties:
        code:
          type: string
      required:
        - code
      title: OrdersOidGetResponsesContentApplicationJsonSchemaDataProductDetails
    OrdersOidGetResponsesContentApplicationJsonSchemaDataShippingDetails:
      type: object
      properties:
        ship_to:
          type: string
        ship_lat:
          type: string
        ship_lng:
          type: string
        ship_state:
          type: string
        ship_country:
          type: string
        ship_areacode:
          type: string
        ship_locality:
          type: string
      required:
        - ship_to
        - ship_lat
        - ship_lng
        - ship_state
        - ship_country
        - ship_areacode
        - ship_locality
      title: OrdersOidGetResponsesContentApplicationJsonSchemaDataShippingDetails
    OrdersOidGetResponsesContentApplicationJsonSchemaDataPrimaryContactDetails:
      type: object
      properties:
        tel:
          type: string
        email:
          type: string
        fname:
          type: string
        lname:
          type: string
        country:
          type: string
        countryCode:
          type: string
      required:
        - tel
        - email
        - fname
        - lname
        - country
        - countryCode
      title: >-
        OrdersOidGetResponsesContentApplicationJsonSchemaDataPrimaryContactDetails
    OrdersOidGetResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        oid:
          type: string
        coupon:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataCoupon
        patient_details:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataPatientDetails
        product_details:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataProductDetails
        shipping_details:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataShippingDetails
        primary_contact_details:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaDataPrimaryContactDetails
      required:
        - oid
        - coupon
        - patient_details
        - product_details
        - shipping_details
        - primary_contact_details
      title: OrdersOidGetResponsesContentApplicationJsonSchemaData
    orders_{oid}_Get order details by order ID_Response_200:
      type: object
      properties:
        code:
          type: integer
        data:
          $ref: >-
            #/components/schemas/OrdersOidGetResponsesContentApplicationJsonSchemaData
        message:
          type: string
      required:
        - code
        - data
        - message
      title: orders_{oid}_Get order details by order ID_Response_200
    GetOrdersOidRequestNotFoundError:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
      required:
        - code
        - message
      title: GetOrdersOidRequestNotFoundError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

```

## Examples



**Response**

```json
{
  "code": 200,
  "data": {
    "oid": "OD20250828113416_802312",
    "coupon": {
      "code": ""
    },
    "patient_details": {
      "age": "24",
      "dob": "2001-02-18",
      "mrn": "123456",
      "tel": "0113333333",
      "email": "",
      "fname": "Lorem",
      "lname": "Ipsum",
      "natid": "100100103",
      "gender": "male",
      "country": "SA",
      "ethnicity": "SAS",
      "indication": "Some test indication",
      "body_height": "170",
      "body_weight": "70",
      "countryCode": "+966",
      "nationality": "IN",
      "sample_type": "ffpe",
      "sample_count": "1",
      "history_family": [
        {
          "q": "Acute blood cancer",
          "t": {
            "ar": "سرطان الدم الحاد"
          },
          "id": "HP:0002488",
          "type": "symptom",
          "age_of_manifestation": "HP:0011464"
        }
      ],
      "is_fetus_sample": "no",
      "parents_related": "notsure",
      "history_personal": [
        {
          "q": "Noncancerous mole",
          "t": {
            "ar": "الخلد غير السرطاني"
          },
          "id": "HP:0000995",
          "type": "symptom",
          "age_of_manifestation": "HP:0003577"
        }
      ],
      "secondary_findings": "no",
      "parents_first_cousin": "notsure",
      "additional_indication": "",
      "sample_collection_date": "2025-08-25",
      "sample_collection_time": "16:25"
    },
    "product_details": {
      "code": "EGEXOSOL"
    },
    "shipping_details": {
      "ship_to": "Jack Smith",
      "ship_lat": "",
      "ship_lng": "",
      "ship_state": "",
      "ship_country": "",
      "ship_areacode": "",
      "ship_locality": ""
    },
    "primary_contact_details": {
      "tel": "0112222222",
      "email": "",
      "fname": "Lorem",
      "lname": "Ipsum",
      "country": "SA",
      "countryCode": "+966"
    }
  },
  "message": "Order details fetched successfully"
}
```

**SDK Code**

```python orders_{oid}_Get order details by order ID_example
import requests

url = "https://api.enigmagenomics.com/orders/string"

headers = {"x-api-key": "<apiKey>"}

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

print(response.json())
```

```javascript orders_{oid}_Get order details by order ID_example
const url = 'https://api.enigmagenomics.com/orders/string';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

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

```go orders_{oid}_Get order details by order ID_example
package main

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

func main() {

	url := "https://api.enigmagenomics.com/orders/string"

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

	req.Header.Add("x-api-key", "<apiKey>")

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

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

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

}
```

```ruby orders_{oid}_Get order details by order ID_example
require 'uri'
require 'net/http'

url = URI("https://api.enigmagenomics.com/orders/string")

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

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

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

```java orders_{oid}_Get order details by order ID_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.enigmagenomics.com/orders/string")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php orders_{oid}_Get order details by order ID_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.enigmagenomics.com/orders/string', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp orders_{oid}_Get order details by order ID_example
using RestSharp;

var client = new RestClient("https://api.enigmagenomics.com/orders/string");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift orders_{oid}_Get order details by order ID_example
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.enigmagenomics.com/orders/string")! 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()
```