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

# Create order (/api-reference/merchant/orders/create-order)

`POST https://payments.qliro.com/checkout/merchantapi/Orders`

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

Creates the order in Qliro. Send it when you are ready to load Qliro Checkout.

## Body (application/json)

- `MerchantApiKey` (string, required): Will be provided by Qliro Checkout when setting up merchant account. Length: `0 <= x <= 50`
- `MerchantReference` (string, required): A string generated by the merchant to identify the order uniquely in their system. Maximum length is 25 characters. Length: `x >= 1`. Pattern: `^[A-Za-z0-9_|\-]{1,25}$`
- `Currency` (string, required): Three uppercase characters, in accordance with ISO 4217. Length: `x >= 1`
- `Country` (string, required): Two upper case characters. In accordance with ISO 3166-1. Length: `x >= 1`
- `Language` (string, required): Locale indicative for language & other location-specific details. Length: `x >= 1`
- `MerchantTermsUrl` (string, required): A URL where the customer can find the merchant's terms and conditions. Format: `uri`. Length: `x >= 1`
- `MerchantIntegrityPolicyUrl` (string | null): A URL where the customer can find the merchant's integrity policy. Format: `uri`
- `MerchantConfirmationUrl` (string, required): A URL to where Qliro will redirect the the customer once the payment is completed. Format: `uri`. Length: `x >= 1`
- `MerchantOrderValidationUrl` (string | null): If specified, Qliro will use this URL to try to validate the order before completing the purchase. Info about authentication for this request can be found below. Should use https
- `MerchantOrderAvailableShippingMethodsUrl` (string | null): Used if Qliro Checkout should handle the shipping interaction with the customer. This URL will be used to fetch new Shipping Methods when customer information updates. See the Update Shipping Methods section under Notifications. Info about authentication for this request can be found below. Should use https
- `MerchantOrderManagementStatusPushUrl` (string | null): Qliro will use this URL to send notifications on payment status changes during the order management process, for example when the payment created by MarkItemsAsShipped call becomes successful. This must either be provided in the request or configured for you by Qliro. Info about authentication for this request can be found below. Should use https
- `MerchantNotificationUrl` (string | null): Qliro will use this URL to send notifications for general status updates. For example if you are using integrated shipping providers (e.g. nShift or Ingrid) or integrated loyalty providers (e.g Voyado) this url will be called when we complete or if we get an error from the provider api:s
- `MerchantCheckoutStatusPushUrl` (string | null): Qliro will use this URL to send customer checkout status updates. For example when the checkout status switches from OnHold to Completed. This must either be provided in the request or configured for you by Qliro. Info about authentication for this request can be found below. Should use https
- `MerchantSavedCreditCardPushUrl` (string | null): Qliro will use this URL to send notifications on saved merchant credit card
- `MerchantOrderAvailableShippingAddressesUrl` (string | null): Used if merchant is willing to provide a list of predefined shipping addresses for customer to choose from. This URL will be used to fetch Available Shipping Addresses when customer information updates. See the Update Shipping Addresses section under Notifications. Info about authentication for this request can be found below. Should use https
- `PrimaryColor` (string | null): Hex color code to use as primary color in Qliro Checkout
- `CallToActionColor` (string | null): Hex color code to use as call to action color in Qliro Checkout
- `CallToActionHoverColor` (string | null): Hex color code to use as call to action hover color in Qliro Checkout. If not provided, the hover color will be a blend between the call to action color and the background color
- `BackgroundColor` (string | null): Hex color code to use as background color in Qliro Checkout. Only colors with saturation <= 10% are supported. If a color with saturation > 10% is provided, the saturation will be lowered to 10%
- `CornerRadius` (integer | null): A pixel value to be used on corners throughout Qliro Checkout. Format: `int32`. Range: `0 <= x <= 1000`
- `ButtonCornerRadius` (integer | null): A pixel value to be used on corners of buttons throughout Qliro Checkout. Format: `int32`. Range: `0 <= x <= 1000`
- `OrderItems` (object[], required): List of items customer added to the cart
  - `MerchantReference` (string, required): A string generated by the merchant to identify the order item. The combination of MerchantReference and Price Per Item Including Vat is used to uniquely identify the order item. Maximum length is 200 characters. Length: `x >= 1`. Pattern: `^[\p{L}\s(.)'\-_&,\/–+0-9:|]{1,200}$`
  - `Description` (string | null): A name or description of the order item. Length: `x <= 4000`
  - `Type` (string | null): Can be 'Product', 'Discount', 'Fee' or 'Shipping'
  - `Quantity` (integer, required): The number of these items in the cart. Format: `int32`. Range: `1 <= x <= 2147483647`
  - `PricePerItemIncVat` (number, required): The price per item including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
  - `PricePerItemExVat` (number): The price per item excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
  - `VatRate` (number): The VAT rate for the item. Always specified with 2 decimals, e.g. 25.00 = 2500. Format: `decimal`
  - `Metadata` (object | null): Only available in create order and update order requests. Can be used to indicate if an item includes some kind of risk. If an item has been flagged with the property HasRisk, then depending on the merchant setup in Qliro Checkout, some payment methods will be disabled. This behavior is customizable in the merchant preferences. It can also be used to indicate that an order item is a subscription. If it is indicated as a subscription Qliro Checkout will show some additional terms for Qliro invoice if Qliro invoice is enabled for the merchant
    - `HasRisk` (boolean | null): If true, order item considered as risk item. Default is false
    - `Subscription` (object | null): It indicates that order item is a subscription if Enabled is true
      - `Enabled` (boolean)
    - `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`
    - `MerchantData` (string | null): Length: `x <= 250`
- `CustomerInformation` (object | null): Customer information used to try to identify the customer without user interaction
  - `PersonalNumber` (string | null): A national identification number to identify the customer. Length: `0 <= x <= 50`
  - `VatNumber` (string | null): A VAT number of the customer. Length: `0 <= x <= 50`
  - `Email` (string | null): The customer's email address. Length: `0 <= x <= 255`
  - `JuridicalType` (string | null): 'Physical' or 'Company'. If 'Company', the PersonalNumber field will be interpreted as an organization number
  - `MobileNumber` (string | null): The customer's mobile number. Length: `0 <= x <= 50`
  - `DateOfBirth` (string | null): The customer's date of birth. Can provide if PersonalNumber is null and JuridicalType is Physical. Format: `date-time`
  - `Address` (object | null): The customer's address. If provided and complete, the address will be presented as an alternative to the address fetched by Qliro Checkout. For B2B customer treat this address as billing address
    - `FirstName` (string | null): The first name of a physical customer's address. Length: `0 <= x <= 100`
    - `LastName` (string | null): The Last name of a physical customer's address. Length: `0 <= x <= 100`
    - `CompanyName` (string | null): Address holders company name, only applicable for Company Customers. Length: `0 <= x <= 100`
    - `Street` (string | null): The street name and number of the address. Length: `0 <= x <= 100`
    - `Street2` (string | null): The secondary address line for apartment, suite, department, unit, building, floor etc. Used for company customers and for physical customers in the following countries: Australia, Bosnia and Herzegovina, Canada, Croatia, Cyprus, Czech Rebublic, Estonia, France, Greece, Hungary, Iceland, Ireland, Italy, Lithuania, Luxembourg, Macedonia, Malta, Montenegro, Poland, Portugal, Romania, Serbia, Slovakia, Slovenia, Spain, UK, US, Åland. Length: `0 <= x <= 40`
    - `PostalCode` (string | null): The postal code of the address. Length: `0 <= x <= 15`
    - `City` (string | null): The city of the address. Length: `0 <= x <= 100`
    - `CareOf` (string | null): Used if the addressee doesn't have a standard address. Length: `0 <= x <= 100`
    - `Area` (string | null): The State/Province/Region of the address. Used in the following countries: Australia, Bosnia and Herzegovina, Canada, Cyprus, Ireland, Italy, Lithuania,Luxembourg, Macedonia, Malta, Montenegro, Romania, US, Åland. Length: `0 <= x <= 100`
    - `AreaCode` (string | null): Geographical area code in ISO3166-2 format. Length: `0 <= x <= 10`
  - `ShippingAddress` (object | null): The customer's shipping address for B2B customer. If provided and complete, the address will be presented as B2B customer shipping address
    - `FirstName` (string | null): The first name of a physical customer's address. Length: `0 <= x <= 100`
    - `LastName` (string | null): The Last name of a physical customer's address. Length: `0 <= x <= 100`
    - `CompanyName` (string | null): Address holders company name, only applicable for Company Customers. Length: `0 <= x <= 100`
    - `Street` (string | null): The street name and number of the address. Length: `0 <= x <= 100`
    - `Street2` (string | null): The secondary address line for apartment, suite, department, unit, building, floor etc. Used for company customers and for physical customers in the following countries: Australia, Bosnia and Herzegovina, Canada, Croatia, Cyprus, Czech Rebublic, Estonia, France, Greece, Hungary, Iceland, Ireland, Italy, Lithuania, Luxembourg, Macedonia, Malta, Montenegro, Poland, Portugal, Romania, Serbia, Slovakia, Slovenia, Spain, UK, US, Åland. Length: `0 <= x <= 40`
    - `PostalCode` (string | null): The postal code of the address. Length: `0 <= x <= 15`
    - `City` (string | null): The city of the address. Length: `0 <= x <= 100`
    - `CareOf` (string | null): Used if the addressee doesn't have a standard address. Length: `0 <= x <= 100`
    - `Area` (string | null): The State/Province/Region of the address. Used in the following countries: Australia, Bosnia and Herzegovina, Canada, Cyprus, Ireland, Italy, Lithuania,Luxembourg, Macedonia, Malta, Montenegro, Romania, US, Åland. Length: `0 <= x <= 100`
    - `AreaCode` (string | null): Geographical area code in ISO3166-2 format. Length: `0 <= x <= 10`
  - `LockCustomerInformation` (boolean | null): If true, Qliro Checkout will prioritize the provided address over the customer's registered one. Qliro Checkout will also prevent the customer from changing address, email or phone number inside Qliro Checkout. This can lead to Qliro payment methods being disabled, since some methods require the registered address
  - `LockCustomerEmail` (boolean | null): If true, Qliro Checkout will prevent the customer from changing their email inside Qliro Checkout. If no valid email is provided, this flag will be ignored
  - `LockCustomerMobileNumber` (boolean | null): If true, Qliro Checkout will prevent the customer from changing their mobile number inside Qliro Checkout. If no valid mobile number is provided, this flag will be ignored
  - `LockCustomerPersonalNumber` (boolean | null): If true, Qliro Checkout will prevent the customer from changing their personal number or organization number inside Qliro Checkout. If no valid personal number or organization number is provided, this flag will be ignored
  - `LockCustomerAddress` (boolean | null): If true, Qliro Checkout will prevent the customer from changing their address inside Qliro Checkout. If no valid address is provided, this flag will be ignored
- `AvailableShippingMethods` (object[] | null): Used if Qliro Checkout should handle the shipping interaction with the customer
  - `MerchantReference` (string, required): A string generated by the merchant to identify the shipping method uniquely. Maximum length is 450 characters. Length: `0 <= x <= 450`
  - `ShippingFeeMerchantReference` (string | null): When the customer chooses a shipping method in Qliro Checkout, an order item will be added to the cart, including the shipping fee for that particular shipping method. By default, the merchantReference of this fee item will be copied from the selected shipping option. If the ShippingFeeMerchantReference parameter is provided, the merchantReference will be overridden. Maximum length is 450 characters. Length: `0 <= x <= 450`
  - `DisplayName` (string, required): The name of the shipping method, presented to the customer. Length: `0 <= x <= 100`
  - `Descriptions` (string[] | null): An array of (String) descriptions, presented as extra lines of information to the customer. Maximum length is 200 characters per line and up to 3 lines
  - `Brand` (string | null): A brand connected to the shipping method. If supported by Qliro Checkout, a logotype will be shown in the shipping methods list. Length: `0 <= x <= 50`
  - `PriceIncVat` (number): The price including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
  - `PriceExVat` (number): The price excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
  - `OriginalPrice` (number | null): Use when updating the price of a shippingOption if the old price should be displayed, e.g. to point out shipping was made free because of total price over a certain value. Format: `decimal`
  - `SupportsAccessCode` (boolean): If provided and true, a field will be presented so that the customer can enter an access code. The access code will be optional and have maximum 50 characters. Suitable for home delivery methods
  - `SupportsDynamicSecondaryOptions` (boolean): If provided and true, a request to MerchantOrderAvailableShippingMethodsUrl will be sent every time the customer clicks on this shipping option. If MerchantOrderAvailableShippingMethodsUrl is not provided, selected shipping option will not be updated with secondary options list
  - `SecondaryOptions` (object[] | null): An array of additional options of the shipping method. See details below
    - `MerchantReference` (string, required): A string generated by the merchant to identify the Shipping option. Length: `0 <= x <= 450`
    - `DisplayName` (string, required): User friendly title of the Shipping option. Length: `0 <= x <= 100`
    - `City` (string | null): Use to provide city of delivery. Length: `0 <= x <= 450`
    - `Address` (string | null): Use to provide address of delivery. Length: `0 <= x <= 450`
    - `PostalCode` (string | null): Use to provide postal code of delivery. Length: `0 <= x <= 100`
    - `Descriptions` (string[] | null): User friendly description of the Shipping option
    - `Coordinates` (object | null): Use to provide Geographical location of delivery
      - `Lat` (number | null): Latitude expressed as decimal. Format: `double`
      - `Lng` (number | null): Longitude expressed as decimal. Format: `double`
    - `DeliveryDateInfo` (object | null): Use to provide information about delivery date
      - `DateStart` (string | null): This field represent the estimated delivery start date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC. Format: `date-time`
      - `DateEnd` (string | null): This field represent the estimated delivery end date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC. Format: `date-time`
      - `Unit` (DeliveryDateUnit | null): This field represent the display type for the delivery date. If no unit is provided a default of date will be used. Values: `0`, `1`, `2`
  - `AdditionalShippingServices` (object[] | null): Use when additional shipping services are available for the shipping option
    - `MerchantReference` (string, required): A string generated by the merchant to identify the additional shipping service uniquely. Maximum length is 200 characters. Length: `0 <= x <= 450`
    - `DisplayName` (string, required): The name of the additional shipping service, presented to the customer. Length: `0 <= x <= 100`
    - `Descriptions` (string[] | null): An array of (String) descriptions, presented as extra lines of information to the customer. Maximum length is 100 characters per line and up to 3 lines
    - `PriceExVat` (number): The price excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
    - `PriceIncVat` (number): The price including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
    - `DeliveryDate` (string | null): This field represent the estimated delivery date of the order, with this selected. Will override the delivery date on Shipping Option. Format: `date-time`
    - `DeliveryDateInfo` (object | null): Use to provide information about delivery date
      - `DateStart` (string | null): This field represent the estimated delivery start date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC. Format: `date-time`
      - `DateEnd` (string | null): This field represent the estimated delivery end date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC. Format: `date-time`
      - `Unit` (DeliveryDateUnit | null): This field represent the display type for the delivery date. If no unit is provided a default of date will be used. Values: `0`, `1`, `2`
  - `DeliveryDate` (string | null): This field represent the estimated delivery date of the order. If the date provided is older than today the value will be ignored. Format: `date-time`
  - `CategoryDisplayName` (string | null): Can be used to group shipping methods. If used it must be set on all included shipping methods. Only 2 category values can be used for a list of shipping methods. Recommended values to use are "HOME_DELIVERY" and "PICKUP" so Qliro Checkout can handle the localizations. Other values will be used as is. Maximum length is 50 characters
  - `LabelDisplayName` (string | null): To be used with categories. Only use 3 or less different labels for all shipping options. Recommended values: "Express", "Free" and "Economy". Maximum length is 50 characters
  - `DeliveryDateInfo` (object | null): Use to provide information about delivery date
    - `DateStart` (string | null): This field represent the estimated delivery start date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC. Format: `date-time`
    - `DateEnd` (string | null): This field represent the estimated delivery end date of the order. If the date provided is older than today the value will be ignored. If no time offset is sent on the date, date will assume UTC If time offset different than UTC is sent on the date, date be converted to UTC. Format: `date-time`
    - `Unit` (DeliveryDateUnit | null): This field represent the display type for the delivery date. If no unit is provided a default of date will be used. Values: `0`, `1`, `2`
  - `IsEcoFriendly` (boolean): Use to mark a shipping method as eco friendly
  - `OptionLabels` (object[] | null): Use to mark a shipping method with labels
    - `Name` (string, required): The name of the shipping option label, presented to the customer. Length: `0 <= x <= 50`
    - `DisplayType` (string | null): The Display Type of the shipping option label, presented to the customer. Length: `0 <= x <= 50`
- `EnforcedJuridicalType` (string | null): If specified, only the selected juridical type will be allowed in Qliro Checkout. 'Physical' or 'Company'
- `MinimumCustomerAge` (integer | null): If specified, the customer will have to be at least this old to complete a purchase with Qliro Checkout. This will prevent the customer from authenticating as a company. Format: `int32`. Range: `0 <= x <= 2147483647`
- `AskForNewsletterSignup` (boolean | null): If true, Qliro Checkout will ask the customer if they want to sign up for a newsletter. This will be communicated back in the Get Order response, if the customer completed the purchase
- `AskForNewsletterSignupChecked` (boolean | null): If true, Qliro Checkout will set signup newsletter as checked. This will be communicated back in the Get Order response, if the customer completed the purchase
- `AskForNewsletterSignupText` (string | null): This text will replace the default AskForNewsletterSignup text shown in the checkout. Can contain any letter, digits, space character, comma, ., ?, !, ', " and be at most 50 characters long. It is not allowed to start or end the text with a space character
- `MerchantProvidedQuestion` (object | null): If used a question will be shown. If any requirements are not met the merchant provided question will be ignored
  - `Text` (string | null)
  - `Checked` (boolean)
- `RequireIdentityVerification` (boolean | null): Defaults to false. If true and the order country is Sweden, the customer will be asked to verify their identity with BankID when completing the purchase
- `ShippingAdditionalHeader` (string | null): If submitted, Qliro Checkout will show this text as a sub header below the shipping header. At most 100 characters. Length: `x <= 300`
- `ApplicableFees` (object | null)
  - `Fees` (Record<string, object[]> | null): A Dictionary of string and Array of Fees, the key should be the name of a PaymentMethod for which the Array of Fees is applicable
    - `Type` (string, required): The type of Fee. Length: `x >= 1`
    - `MerchantReference` (string, required): A string generated by the merchant to identify the Fee. Length: `x >= 1`. Pattern: `^[\p{L}\s(.)'\-_&,\/–+0-9:|]{1,200}$`
    - `AmountIncludingVat` (number, required): The price per item excluding Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
    - `AmountExcludingVat` (number, required): The price per item including Value Added Tax. This can be specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99. Format: `decimal`
    - `Description` (string | null): User friendly description of the fee. Length: `x <= 4000`
- `MerchantConstraintName` (string | null): Enables dynamic filtering of payment channels available in specific orders. Length: `0 <= x <= 100`
- `ShippingConfiguration` (object | null): If you want to show shipping options in Qliro Checkout use this section or provide your own shipping by sending us your own shipping methods url in MerchantOrderAvailableShippingMethodsUrl property
  - `Unifaun` (object | null): If you already have integration with unifaun fill in the Unifaun section and contact merchant onboarding to enable the feature
    - `CheckoutId` (string | null): Checkout id of the unifaun checkout that was created with qliro's template
    - `Tags` (Record<string, string> | null): Upto 20 tags are allowed. Max length for tag key is 20 letters and for tag value it is 30 letters Note we already send tocountry, tozipcode, language, currency parameters to unifaun. So merchant doesn't need to send them in tags
  - `Ingrid` (object | null): Optionally configure Delivery Grouping, Vouchers and Attributes for Ingrid
    - `Vouchers` (string[] | null): Vouchers that can be used in price/filter rules
    - `CartAttributes` (string[] | null): Attributes of the Cart. Cart level attributes are specific to the cart or for the full cart contents. Ingrid Delivery Checkout can set varied delivery scenarios based on such attributes. Ex. [“PRIO”, “AB-testID”]
    - `Groups` (object[] | null): Optional specification of group to which the cart items should be assigned
      - `GroupId` (string, required): Unique identifier of group passed when doing split of shipments. Length: `x >= 1`
      - `Header` (string | null): Header text containing arbitrary information related to the group
      - `Attributes` (string[] | null): Attributes list of a single delivery group. Used to control the behaviour of the `cart_attributes()` filter rule for each group individually
      - `Contents` (object[], required): List of cart item splits by each group. For example: Different sku quantities can be split between groups(orders)
    - `ExternalId` (string | null): Optional external identifier used when completing the Ingrid session. If not provided, the order's MerchantReference will be used
- `LoyaltyConfiguration` (object | null): This property is used for the loyalty module
  - `AskForSignupChecked` (boolean): If true the loyalty signup checkbox will be checked by default
  - `MerchantLoyaltyTermsUrl` (string, required): URL to merchant loyalty terms and conditions. The customer will be asked to accept these terms in the checkout before signup. Format: `uri`. Length: `x >= 1`
  - `MerchantLoyaltyIntegrityPolicyUrl` (string | null): URL to the merchant's loyalty integrity policy, displayed to the customer in the checkout before signup. Format: `uri`
  - `MainText` (object, required): Main text displayed in the checkout loyalty component
    - `Title` (string | null): Length: `0 <= x <= 50`
    - `Description` (string | null): Length: `0 <= x <= 100`
  - `SecondaryTexts` (object[] | null): Additional texts displayed below MainText in the checkout loyalty component. Items: `x <= 10`
    - `Title` (string | null): Length: `0 <= x <= 50`
    - `Description` (string | null): Length: `0 <= x <= 100`
  - `UpdateText` (object | null): Required for the loyalty update flow. Replaces MainText and SecondaryTexts in the checkout when the customer is updating their loyalty membership
    - `Title` (string | null): Length: `0 <= x <= 50`
    - `Description` (string | null): Length: `0 <= x <= 100`
  - `Voyado` (object | null): Voyado loyalty configuration
    - `ContactType` (string | null): Contact type ID. If provided new members will be created with this contact type. Length: `0 <= x <= 200`
    - `Consents` (string[] | null): Consent IDs. If provided new members will be created with these consents. Items: `x <= 10`
    - `MemberConsents` (string[] | null): List of consent IDs used to determine if a Voyado contact is a loyalty member. A contact is considered a member if all listed consents are found. Items: `x <= 10`
    - `Update` (object | null): Configuration for the loyalty update flow in Voyado. Enables consent checkboxes in the checkout for existing members
      - `CheckBoxes` (object[] | null): Consent checkboxes for the loyalty update flow. Qliro checks if the existing Voyado contact has each consent — missing consents are shown as checkboxes in the checkout and added to the contact if checked. Items: `x <= 10`
    - `StoreExternalId` (string | null): Will be sent to Voyado as the externalStoreId when creating contacts. Length: `0 <= x <= 200`
  - `Klaviyo` (object | null): Klaviyo loyalty configuration
    - `Lists` (string[] | null): List names (not id:s) provided by merchants that the customer (profile) will be added to on opt-in. Note: List should already have been created on the merchant side, otherwise the profile will not be added to the list
    - `UseEmailSubscriptionChannel` (boolean): If the profile should subscribe to the email marketing channel on opt-in
    - `UseSmsSubscriptionChannel` (boolean): If the profile should subscribe to the SMS (text messages) marketing channel on opt-in
    - `UseSmsTransactionalChannel` (boolean): If the profile should subscribe to the SMS (text messages) transactional channel on opt-in
- `MerchantProvidedMetadata` (object[] | null): Merchant can send promotion and other information which can be retrieved later using GetOrder call if required. Maximum 30 elements allowed in list
  - `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`
- `PickupPersonDetails` (object | null): This property is only relevant to certain merchants. If you are not a merchant who support 3rd party pickup at stores you can ignore this field
  - `FirstName` (string | null): Pickup person's first name. Length: `0 <= x <= 100`
  - `LastName` (string | null): Pickup person's last name. Length: `0 <= x <= 100`
  - `Mobile` (string | null): Pickup person's phone number in international format. Length: `0 <= x <= 50`
  - `Email` (string | null): Pickup person's email. Length: `0 <= x <= 255`
- `PaymentId` (string | null): This property is used for launching Qliro Checkout with a selected payment method/group. These payment ids can be accessed by POST PaymentOptions request
- `MerchantCancelUrl` (string | null): This property is used for creating an Cancel Payment link when opening Qliro Checkout as a Payment Link

## Responses

### 201 (application/json)

- `OrderId` (integer): Format: `int64`
- `PaymentLink` (string | null)

Example:

```json
{
  "OrderId": 12345,
  "PaymentLink": "string"
}
```

### 400 (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"
}
```

### 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 POST "https://payments.qliro.com/checkout/merchantapi/Orders" \
  -H "Content-Type: application/json" \
  -d '{
  "MerchantApiKey": "MerchantApiKey",
  "MerchantReference": "MerchantUniqueReference",
  "Currency": "SEK",
  "Country": "SE",
  "Language": "sv-se",
  "MerchantTermsUrl": "https://merchant.com/terms/",
  "MerchantConfirmationUrl": "https://merchant.com/confirmation/",
  "OrderItems": [
    {
      "MerchantReference": "RedHat",
      "Quantity": 3,
      "PricePerItemIncVat": 375.55
    }
  ]
}'
```
