> 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 (/api-reference/merchant/orders/get-order)

`GET https://payments.qliro.com/checkout/merchantapi/Orders/{id}`

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

Returns an order and the HTML snippet that loads Qliro Checkout on your page. Use the `OrderId` that Create order returns in the HTTP header of its response.

When `CustomerCheckoutStatus` is `Completed` or `OnHold`, `OrderItems` is not empty.

## Path parameters

- `id` (integer, required): Order id to get order by. Format: `int64`

## Responses

### 200 (application/json)

The order and its checkout HTML snippet.

- `OrderId` (integer): Qliro Checkout order id. Format: `int64`
- `MerchantReference` (string | null): A string generated by the merchant to identify the order uniquely in their system. Maximum length is 25 characters
- `TotalPrice` (number): Format: `decimal`
- `Currency` (string | null)
- `Country` (string | null)
- `Language` (string | null)
- `CustomerCheckoutStatus` (string | null)
- `CustomerVerifiedEmail` (object | null)
  - `UpdateVerifiedEmailLink` (string | null)
  - `VerifiedEmail` (string | null)
  - `VerifiedEmailDiffers` (boolean)
- `Customer` (object | null)
  - `FirstName` (string | null)
  - `LastName` (string | null)
  - `PersonalNumber` (string | null)
  - `VatNumber` (string | null)
  - `Email` (string | null)
  - `MobileNumber` (string | null)
  - `JuridicalType` (JuridicalType): Values: `0`, `1`
  - `DateOfBirth` (string | null): Format: `date-time`
  - `Gender` (Gender | 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): Currently only used for US. Will contain the ISO-3166-2 code for the current state (Area)
- `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): Currently only used for US. Will contain the ISO-3166-2 code for the current state (Area)
- `OrderItems` (object[] | null)
  - `MerchantReference` (string | null)
  - `Description` (string | null)
  - `Quantity` (integer): Format: `int32`
  - `PricePerItemIncVat` (number): Format: `decimal`
  - `PricePerItemExVat` (number): Format: `decimal`
  - `VatRate` (number): Format: `decimal`
  - `Type` (OrderItemType): Values: `0`, `1`, `2`, `3`
  - `Metadata` (object | null)
    - `ShippingMethodMerchantReference` (string | null)
    - `ShippingMethodSecondaryOptionMerchantReference` (string | null)
    - `ShippingMethodAccessCode` (string | null)
    - `AdditionalShippingProperties` (object | null)
      - `ShippingProvider` (string | null)
      - `ServiceId` (string | null)
      - `Agent` (object | null)
    - `MerchantData` (string | null)
  - `PaymentTransactionId` (integer): Format: `int64`
  - `UpsellId` (string | null)
- `PaymentMethod` (object | null)
  - `PaymentMethodName` (string | null)
  - `PaymentTypeCode` (string | null)
- `SignupForNewsletter` (boolean | null)
- `AskForNewsletterSignupChecked` (boolean | null)
- `IdentityVerification` (object | null)
  - `RequireIdentityVerification` (boolean | null)
  - `IdentityVerified` (boolean | null)
- `MerchantProvidedMetadata` (object[] | null)
  - `Key` (string | null): Merchant provided metadata element key. Max string length is 50. Length: `0 <= x <= 50`
  - `Value` (string | null): Merchant provided metadata element value. Max string length is 250. Length: `0 <= x <= 250`
- `OrderHtmlSnippet` (string | null): HTML snippet used to deploy the Qliro Checkout frontend application
- `Upsell` (object | null)
  - `IsUpsellOrder` (boolean)
  - `EligibleForUpsell` (boolean)
  - `UpsellTotalPrice` (number): Format: `decimal`
  - `EligibleForUpsellUntil` (string | null): Format: `date-time`
- `MerchantSavedCreditCard` (object | null)
  - `Id` (string): Format: `guid`
  - `BrandName` (CreditCardBrandName): Values: `0`, `1`, `2`, `3`
  - `ExpiryYear` (integer): Format: `int32`
  - `ExpiryMonth` (integer): Format: `int32`
  - `Bin` (string | null)
  - `Last4Digits` (string | null)
  - `MaskedNumber` (string | null)
- `MerchantProvidedQuestionAnswer` (boolean | null)
- `PaymentLink` (string | null)

Example:

```json
{
  "OrderId": 12345,
  "MerchantReference": "MerchantUniqueReference",
  "TotalPrice": 1576.65,
  "Currency": "SEK",
  "Country": "SE",
  "Language": "sv-se",
  "CustomerCheckoutStatus": "Success",
  "CustomerVerifiedEmail": {
    "UpdateVerifiedEmailLink": "https://www.qliro.com/sv-se",
    "VerifiedEmail": "verified@email.com",
    "VerifiedEmailDiffers": true
  },
  "Customer": {
    "FirstName": "FirstName",
    "LastName": "LastName",
    "PersonalNumber": "111111-1111",
    "VatNumber": "SE111111111101",
    "Email": "email@domain.com",
    "MobileNumber": "+46101010101",
    "JuridicalType": "Physical",
    "DateOfBirth": "1990-01-01",
    "Gender": "Male"
  },
  "BillingAddress": {
    "FirstName": "First",
    "LastName": "Last",
    "CompanyName": null,
    "CareOf": "string",
    "Street": "Street",
    "Street2": "Street2",
    "PostalCode": 12345,
    "City": "City",
    "CountryCode": "SE",
    "Area": "Area",
    "AreaCode": "US-CA"
  },
  "ShippingAddress": {
    "FirstName": "First",
    "LastName": "Last",
    "CompanyName": null,
    "CareOf": "string",
    "Street": "Street",
    "Street2": "Street2",
    "PostalCode": 12345,
    "City": "City",
    "CountryCode": "SE",
    "Area": "Area",
    "AreaCode": "US-CA"
  },
  "OrderItems": [
    {
      "MerchantReference": "MerchantUniqueReference",
      "Description": "Original product",
      "Quantity": 5,
      "PricePerItemIncVat": 10,
      "PricePerItemExVat": 8,
      "VatRate": 0,
      "Type": "Product",
      "Metadata": {
        "ShippingMethodMerchantReference": "UniqueMerchantReference",
        "ShippingMethodSecondaryOptionMerchantReference": "UniqueMerchantReference",
        "ShippingMethodAccessCode": "ACCESS_CODE",
        "AdditionalShippingProperties": {
          "ShippingProvider": "string",
          "ServiceId": "string",
          "Agent": {
            "Id": "string",
            "Name": "string",
            "MapLongitude": 0,
            "MapLatitude": 0,
            "Address1": "string",
            "Address2": "string",
            "ZipCode": "string",
            "City": "string"
          }
        },
        "MerchantData": "string"
      },
      "PaymentTransactionId": 123456,
      "UpsellId": "Upsell-Id-20250401-abcd"
    }
  ],
  "PaymentMethod": {
    "PaymentMethodName": "PaymentMethodName",
    "PaymentTypeCode": "PaymentTypeCode"
  },
  "SignupForNewsletter": true,
  "AskForNewsletterSignupChecked": true,
  "IdentityVerification": {
    "RequireIdentityVerification": false,
    "IdentityVerified": false
  },
  "MerchantProvidedMetadata": [
    {
      "Key": "PromoCode",
      "Value": "ABC123"
    }
  ],
  "OrderHtmlSnippet": "string",
  "Upsell": {
    "IsUpsellOrder": false,
    "EligibleForUpsell": true,
    "UpsellTotalPrice": 433.44,
    "EligibleForUpsellUntil": "2022-10-10"
  },
  "MerchantSavedCreditCard": {
    "Id": "3d2092a6-7baf-49e3-bd34-d0d0d85744b5",
    "BrandName": "VISA",
    "ExpiryYear": 24,
    "ExpiryMonth": 12,
    "Bin": 346596,
    "Last4Digits": 1234,
    "MaskedNumber": "346596XXXXXX1234"
  },
  "MerchantProvidedQuestionAnswer": "True",
  "PaymentLink": "string"
}
```

### 400 (application/json)

A missing argument, invalid input or an invalid order ID.

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

Example:

```json
{
  "ErrorCode": "ORDER_NOT_FOUND",
  "DetailedErrorMessage": "Order not found",
  "ErrorReference": "d7da92f4-1ad9-48c3-9cd3-26559c98e64c"
}
```

### 404 (application/octet-stream)

Order not found.

Type: `any`

### 500 (application/json)

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

Example:

```json
{
  "ErrorCode": "ORDER_NOT_FOUND",
  "DetailedErrorMessage": "Order not found",
  "ErrorReference": "d7da92f4-1ad9-48c3-9cd3-26559c98e64c"
}
```

## Example request

```bash
curl -X GET "https://payments.qliro.com/checkout/merchantapi/Orders/0"
```
