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

# Checkout basics (/qliro-checkout/get-started/checkout-basics)

## Technical solution

You present Qliro Checkout in one of two ways:

* As an iframe hosted by you, the merchant.
* As a "payment link" redirect hosted by Qliro.

A REST API manages the checkout process. Use it to create and manage orders and to customize the checkout. To follow the customer journey, use the backend and frontend notifications and listeners.

![Checkout Basics](<https://developers.qliro.com/assets/checkout-basics-C1o6F7oi.webp>)

### APIs

The API has three parts. You use two of them to integrate the checkout and one for order management after purchase.

* **Merchant API.** Integrates the checkout.
* **Frontend API.** Subscribes to customer interaction with the checkout iframe. It also synchronizes data between your system and the Qliro backend.
* **Admin API.** Manages orders after the checkout is completed. Responses are sent asynchronously.

### Notifications

Qliro sends notifications to push order status, or to tell you that something changed and needs an action from you. Each notification has a set timeframe for your response. See [Notifications](https://developers.qliro.com/qliro-checkout/get-started/notifications-checkout).

### Listeners

Listeners let you subscribe to customer actions in the checkout. Examples are the customer changing the email address or selecting a new shipping alternative. For the available listeners, see [Listeners](https://developers.qliro.com/qliro-checkout/frontend-features/listeners).

## Supported languages

Qliro Checkout supports the following languages:

| Language | Language Code |
| :- | :- |
| Swedish | sv-se |
| English | en-us |
| Finnish | fi-fi |
| Danish | da-dk |
| French | fr-fr |
| German | de-de |
| Norwegian | nb-no |
| Dutch | nl-nl |

## Unified Payments

Unified Payments covers all the local and global payment methods you offer your customers. You get:

* One contract.
* One reconciliation file.
* One payout.
* One integration.

With the Unified Payments FX setup, you configure the payout currency yourself.

## Order items

Order items must follow these constraints. If they do not, the request fails with an INVALID\_INPUT error.

* `PricePerItemIncVat >= PricePerItemExVat`
* Order items with type Product/Fee/Shipping
  * `PricePerItemIncVat >= 0`
  * `PricePerItemExVat >= 0`
* Order item with type Discount
  * `PricePerItemIncVat <= 0`
  * `PricePerItemExVat <= 0`

## Error codes

When a call to a Qliro API fails, the response has an HTTP status code and an error object. The error object contains:

* `ErrorCode` and `ErrorMessage`, which describe the issue.
* `ErrorReference`, which identifies the request.

**Example**

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

**Admin API error codes**

| Method | ErrorCode | Remark |
| :- | :- | :- |
| UpdateItems | ITEM\_SHIPPED\_WITH\_DIFFERENT\_PRICEEXVAT\_DESCRIPTION | You cannot change the price of an item that has been shipped as a partial shipment. |
| UpdateItems | NO\_ITEMS\_LEFT\_IN\_RESERVATION | Free orders only. You cannot update items if all have been shipped. |
| UpdateItems | PAYMENT\_ONHOLD | Schedule a retry. |
| MarkItemsAsShipped | INVALID\_REQUEST\_TOTAL\_AMOUNT | You cannot capture more than the order amount. |
| ReturnItems | INVALID\_REQUEST\_TOTAL\_AMOUNT | You cannot return items with a value of 0 or less. |
| MarkItemsAsShipped/ReturnItems | INVALID\_ITEM | Item in request does exist on order |
| MarkItemsAsShipped/ReturnItems | EXCEEDING\_QUANTITY | You cannot capture or return a greater quantity than exists on the order. |
| AddItemsToInvoice | NO\_SHIPPED\_ITEMS\_AVAILABLE | You cannot add items to an invoice before shipment. |
| Any | ORDER\_NOT\_FOUND | |
| Any | MERCHANT\_MISMATCH | |
| Any | NO\_PAYMENT\_TRANSACTION | |
| Any | OPERATION\_NOT\_SUPPORTED | This has many possible causes. Check the DetailedErrorMessage field. |
| Any | OPERATION\_NOT\_SUPPORTED | If ErrorMessage is "Evaluation, Operation is not supported for this order Another transaction is already in process. Please retry shortly", schedule a retry. |
| Any | CURRENCY\_MISMATCH | |
| Any | INVALID\_REQUEST | This has many possible causes. Check the DetailedErrorMessage field. |
| Any | NO\_ITEMS\_TO\_CANCEL | |
| Any | NO\_QUALIFIED\_ITEMS\_TO\_MANAGE | |
| Any | NO\_SUCCESSFUL\_PAYMENT | |
| Any | ORDER\_HAS\_BEEN\_CANCELLED | |
| Any | INVALID\_REVERSAL\_AMOUNT | A reversal cannot exceed the original payment. |
| Any | INVALID\_REQUEST\_TOTAL\_AMOUNT | A reversal cannot exceed the original payment. |
| Any | UPDATE\_MERCHANT\_REFERENCE\_NOT\_SUPPORTED | |
| Any | INVALID\_PAYMENT\_STATUS | You can only manage successful transactions. |
| Any | INVALID\_PAYMENT\_TYPE | |

## Payment transaction IDs

Every Admin API response contains a payment transaction ID. Each API request that changes the order gets its own ID.

One order can have many payment transaction IDs, for example from upsell payments and other order changes.

Keep track of these IDs. When you change the order or refer to the transaction, use the latest successful ID. In some cases, several successful IDs are valid at the same time.

The Upsell function requires the correct IDs.

<Cards>
<Card title="Preparations" href="/qliro-checkout/get-started/preparations-checkout">
Continue to Preparations
</Card>
</Cards>