Skip to content

Checkout basics

How Qliro Checkout is presented, its APIs, supported languages, order item rules and error codes.

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

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.

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.

Supported languages

Qliro Checkout supports the following languages:

LanguageLanguage Code
Swedishsv-se
Englishen-us
Finnishfi-fi
Danishda-dk
Frenchfr-fr
Germande-de
Norwegiannb-no
Dutchnl-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

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

Admin API error codes

MethodErrorCodeRemark
UpdateItemsITEM_SHIPPED_WITH_DIFFERENT_PRICEEXVAT_DESCRIPTIONYou cannot change the price of an item that has been shipped as a partial shipment.
UpdateItemsNO_ITEMS_LEFT_IN_RESERVATIONFree orders only. You cannot update items if all have been shipped.
UpdateItemsPAYMENT_ONHOLDSchedule a retry.
MarkItemsAsShippedINVALID_REQUEST_TOTAL_AMOUNTYou cannot capture more than the order amount.
ReturnItemsINVALID_REQUEST_TOTAL_AMOUNTYou cannot return items with a value of 0 or less.
MarkItemsAsShipped/ReturnItemsINVALID_ITEMItem in request does exist on order
MarkItemsAsShipped/ReturnItemsEXCEEDING_QUANTITYYou cannot capture or return a greater quantity than exists on the order.
AddItemsToInvoiceNO_SHIPPED_ITEMS_AVAILABLEYou cannot add items to an invoice before shipment.
AnyORDER_NOT_FOUND
AnyMERCHANT_MISMATCH
AnyNO_PAYMENT_TRANSACTION
AnyOPERATION_NOT_SUPPORTEDThis has many possible causes. Check the DetailedErrorMessage field.
AnyOPERATION_NOT_SUPPORTEDIf ErrorMessage is "Evaluation, Operation is not supported for this order Another transaction is already in process. Please retry shortly", schedule a retry.
AnyCURRENCY_MISMATCH
AnyINVALID_REQUESTThis has many possible causes. Check the DetailedErrorMessage field.
AnyNO_ITEMS_TO_CANCEL
AnyNO_QUALIFIED_ITEMS_TO_MANAGE
AnyNO_SUCCESSFUL_PAYMENT
AnyORDER_HAS_BEEN_CANCELLED
AnyINVALID_REVERSAL_AMOUNTA reversal cannot exceed the original payment.
AnyINVALID_REQUEST_TOTAL_AMOUNTA reversal cannot exceed the original payment.
AnyUPDATE_MERCHANT_REFERENCE_NOT_SUPPORTED
AnyINVALID_PAYMENT_STATUSYou can only manage successful transactions.
AnyINVALID_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.