> The index of all pages is at [llms.txt](https://developers.qliro.com/llms.txt). Add `.md` to any page URL for its Markdown.

# Get order by merchant reference (/api-reference/admin/orders/orders2)

`GET https://payments.qliro.com/checkout/adminapi/v2/orders/{merchantReference}`

Production: `https://payments.qliro.com/checkout/adminapi`. Staging: `https://pago.qit.nu/checkout/adminapi`

Returns the details of an order, found by its `MerchantReference`.

## Path parameters

- `merchantReference` (string, required): Order merchant reference

## Responses

### 200 (application/json)

- `OrderId` (integer): Format: `int64`
- `MerchantReference` (string | null)
- `Currency` (string | null)
- `Country` (string | null)
- `SignupForNewsletter` (boolean | null)
- `MerchantProvidedQuestionAnswer` (boolean | null)
- `OrderItemActions` (object[] | null)
  - `MerchantReference` (string | null)
  - `Description` (string | null)
  - `Id` (integer): Format: `int64`
  - `Quantity` (integer): Format: `int32`
  - `PricePerItemIncVat` (number): Format: `decimal`
  - `PricePerItemExVat` (number): Format: `decimal`
  - `ActionType` (InfrastructureConstantsOrderItemActionType): Values: `0`, `1`, `2`, `3`, `4`
  - `PaymentTransactionId` (integer): Format: `int64`
  - `Type` (InfrastructureConstantsOrderItemType): Values: `0`, `1`, `2`, `3`
  - `MetaData` (object | null)
    - `HasRisk` (boolean | null)
    - `ShippingMethodMerchantReference` (string | null)
    - `ShippingMethodSecondaryOptionMerchantReference` (string | null)
    - `ShippingMethodAccessCode` (string | null)
    - `AdditionalShippingProperties` (object | null)
      - `ShippingProvider` (string | null)
      - `ServiceId` (string | null)
      - `Agent` (object | null)
    - `TravelInformation` (object | null)
      - `DepartureCountry` (string | null)
      - `DepartureCity` (string | null)
      - `DepartureIATACode` (string | null)
      - `ArrivalCountry` (string | null)
      - `ArrivalCity` (string | null)
      - `ArrivalIATACode` (string | null)
      - `StopOverCountry` (string | null)
      - `StopOverCity` (string | null)
      - `StopOverIATACode` (string | null)
      - `TravelType` (string | null)
      - `BookingDate` (string): Format: `date-time`
      - `DepartureDate` (string): Format: `date-time`
      - `ReturnDate` (string): Format: `date-time`
      - `DaysToDeparture` (integer): Format: `int32`
      - `NoOfPassengers` (integer): Format: `int32`
      - `Travelers` (object[] | null)
      - `Class` (string | null)
      - `Airline` (string | null)
      - `NoOfLuggage` (integer): Format: `int32`
    - `Ingrid` (object | null)
      - `Weight` (integer | null): Format: `int32`
      - `Sku` (string | null)
      - `ShippingDate` (object | null)
      - `Attributes` (string[] | null)
      - `Dimensions` (object | null)
      - `OutOfStock` (boolean | null)
      - `Discount` (number | null): Format: `decimal`
    - `HeaderLines` (string[] | null)
    - `FooterLines` (string[] | null)
  - `VatRate` (number): Format: `decimal`
  - `UpsellId` (string | null)
- `Customer` (object | null)
  - `FirstName` (string | null)
  - `LastName` (string | null)
  - `Email` (string | null)
  - `MobileNumber` (string | null)
  - `PersonalNumber` (string | null)
  - `VatNumber` (string | null)
  - `JuridicalType` (InfrastructureConstantsJuridicalType): Values: `0`, `1`
  - `DateOfBirth` (string | null): Format: `date-time`
  - `Gender` (InfrastructureConstantsGender | null): Values: `0`, `1`, `2`
- `BillingAddress` (object | null)
  - `FirstName` (string | null)
  - `LastName` (string | null)
  - `CompanyName` (string | null)
  - `CareOf` (string | null)
  - `Street` (string | null)
  - `Street2` (string | null)
  - `PostalCode` (string | null)
  - `City` (string | null)
  - `CountryCode` (string | null)
  - `Area` (string | null)
  - `AreaCode` (string | null)
- `ShippingAddress` (object | null)
  - `FirstName` (string | null)
  - `LastName` (string | null)
  - `CompanyName` (string | null)
  - `CareOf` (string | null)
  - `Street` (string | null)
  - `Street2` (string | null)
  - `PostalCode` (string | null)
  - `City` (string | null)
  - `CountryCode` (string | null)
  - `Area` (string | null)
  - `AreaCode` (string | null)
- `PaymentTransactions` (object[] | null)
  - `PaymentTransactionId` (integer): Format: `int64`
  - `OrderId` (integer): Format: `int64`
  - `OriginalPaymentTransactionId` (integer | null): Format: `int64`
  - `Type` (InfrastructureConstantsPaymentTransactionType): Values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`
  - `Amount` (number): Format: `decimal`
  - `Currency` (string | null)
  - `ProviderTransactionId` (string | null)
  - `ProviderResultCode` (string | null)
  - `ProviderResultDescription` (string | null)
  - `UpsellId` (string | null)
  - `Status` (InfrastructureConstantsPaymentTransactionStatus): Values: `0`, `1`, `2`, `3`, `4`, `5`, `6`
  - `Timestamp` (string | null): Format: `date-time`
  - `PaymentMethodName` (string | null)
  - `PaymentMethodSubtypeCode` (string | null)
  - `ErrorCode` (string | null)
  - `ErrorCodeDescription` (string | null)
- `IdentityVerification` (object | null)
  - `RequireIdentityVerification` (boolean | null)
  - `IdentityVerified` (boolean | null)
- `Upsell` (object | null)
  - `IsUpsellOrder` (boolean)
  - `EligibleForUpsell` (boolean)
  - `EligibleForUpsellUntil` (string | null): Format: `date-time`
- `MerchantProvidedMetadata` (object[] | null)
  - `Key` (string | null)
  - `Value` (string | null)

Example:

```json
{
  "OrderId": 0,
  "MerchantReference": "string",
  "Currency": "string",
  "Country": "string",
  "SignupForNewsletter": true,
  "MerchantProvidedQuestionAnswer": true,
  "OrderItemActions": [
    {
      "MerchantReference": "string",
      "Description": "string",
      "Id": 0,
      "Quantity": 0,
      "PricePerItemIncVat": 0,
      "PricePerItemExVat": 0,
      "ActionType": 0,
      "PaymentTransactionId": 0,
      "Type": 0,
      "MetaData": {
        "HasRisk": true,
        "ShippingMethodMerchantReference": "string",
        "ShippingMethodSecondaryOptionMerchantReference": "string",
        "ShippingMethodAccessCode": "string",
        "AdditionalShippingProperties": {
          "ShippingProvider": "string",
          "ServiceId": "string",
          "Agent": {
            "Id": "string",
            "Name": "string",
            "MapLongitude": 0,
            "MapLatitude": 0,
            "Address1": "string",
            "Address2": "string",
            "ZipCode": "string",
            "City": "string"
          }
        },
        "TravelInformation": {
          "DepartureCountry": "string",
          "DepartureCity": "string",
          "DepartureIATACode": "string",
          "ArrivalCountry": "string",
          "ArrivalCity": "string",
          "ArrivalIATACode": "string",
          "StopOverCountry": "string",
          "StopOverCity": "string",
          "StopOverIATACode": "string",
          "TravelType": "string",
          "BookingDate": "2024-05-01T12:00:00Z",
          "DepartureDate": "2024-05-01T12:00:00Z",
          "ReturnDate": "2024-05-01T12:00:00Z",
          "DaysToDeparture": 0,
          "NoOfPassengers": 0,
          "Travelers": [
            {
              "FirstName": "string",
              "LastName": "string",
              "IsMainTraveller": true,
              "Gender": 0,
              "DateOfBirth": "2024-05-01T12:00:00Z"
            }
          ],
          "Class": "string",
          "Airline": "string",
          "NoOfLuggage": 0
        },
        "Ingrid": {
          "Weight": 0,
          "Sku": "string",
          "ShippingDate": {
            "Start": "2024-05-01T12:00:00Z",
            "End": "2024-05-01T12:00:00Z"
          },
          "Attributes": [
            "string"
          ],
          "Dimensions": {
            "Height": 0,
            "Length": 0,
            "Width": 0
          },
          "OutOfStock": true,
          "Discount": 0
        },
        "HeaderLines": [
          "string"
        ],
        "FooterLines": [
          "string"
        ]
      },
      "VatRate": 0,
      "UpsellId": "string"
    }
  ],
  "Customer": {
    "FirstName": "string",
    "LastName": "string",
    "Email": "string",
    "MobileNumber": "string",
    "PersonalNumber": "string",
    "VatNumber": "string",
    "JuridicalType": 0,
    "DateOfBirth": "2024-05-01T12:00:00Z",
    "Gender": 0
  },
  "BillingAddress": {
    "FirstName": "string",
    "LastName": "string",
    "CompanyName": "string",
    "CareOf": "string",
    "Street": "string",
    "Street2": "string",
    "PostalCode": "string",
    "City": "string",
    "CountryCode": "string",
    "Area": "string",
    "AreaCode": "string"
  },
  "ShippingAddress": {
    "FirstName": "string",
    "LastName": "string",
    "CompanyName": "string",
    "CareOf": "string",
    "Street": "string",
    "Street2": "string",
    "PostalCode": "string",
    "City": "string",
    "CountryCode": "string",
    "Area": "string",
    "AreaCode": "string"
  },
  "PaymentTransactions": [
    {
      "PaymentTransactionId": 0,
      "OrderId": 0,
      "OriginalPaymentTransactionId": 0,
      "Type": 0,
      "Amount": 0,
      "Currency": "string",
      "ProviderTransactionId": "string",
      "ProviderResultCode": "string",
      "ProviderResultDescription": "string",
      "UpsellId": "string",
      "Status": 0,
      "Timestamp": "2024-05-01T12:00:00Z",
      "PaymentMethodName": "string",
      "PaymentMethodSubtypeCode": "string",
      "ErrorCode": "string",
      "ErrorCodeDescription": "string"
    }
  ],
  "IdentityVerification": {
    "RequireIdentityVerification": true,
    "IdentityVerified": true
  },
  "Upsell": {
    "IsUpsellOrder": true,
    "EligibleForUpsell": true,
    "EligibleForUpsellUntil": "2024-05-01T12:00:00Z"
  },
  "MerchantProvidedMetadata": [
    {
      "Key": "string",
      "Value": "string"
    }
  ]
}
```

### 400 (application/json)

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

### 404 (application/json)

Order not found.

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

### 500 (application/json)

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

## Example request

```bash
curl -X GET "https://payments.qliro.com/checkout/adminapi/v2/orders/string"
```
