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

# API Reference (/api-reference)

Send every request with an `Authorization: Qliro <token>` header. [Authorization](https://developers.qliro.com/qliro-checkout/get-started/authorization) shows how to build the token.

| API | Base path |
| --- | --- |
| Merchant API | `/checkout/merchantapi` |
| Admin API | `/checkout/adminapi` |

Production runs on `https://payments.qliro.com`, staging on `https://pago.qit.nu`.

## Merchant API

Creates and updates orders while the customer is in the checkout.

### Orders

- [POST Create order](https://developers.qliro.com/api-reference/merchant/orders/create-order): `/Orders`
- [GET Get order by merchant reference](https://developers.qliro.com/api-reference/merchant/orders/get-order-by-merchant-reference): `/Orders`
- [GET Get order](https://developers.qliro.com/api-reference/merchant/orders/get-order): `/Orders/{id}`
- [PUT Update order](https://developers.qliro.com/api-reference/merchant/orders/update-order): `/Orders/{id}`

### Upsell

- [POST Upsell order](https://developers.qliro.com/api-reference/merchant/upsell/upsell-order): `/Upsell`

### Saved cards

- [POST Save credit card](https://developers.qliro.com/api-reference/merchant/merchant-credit-card/create-merchant-saved-credit-card): `/CreateMerchantSavedCreditCard`
- [DELETE Remove saved credit card](https://developers.qliro.com/api-reference/merchant/merchant-credit-card/remove-merchant-saved-credit-card): `/RemoveMerchantSavedCreditCard`

### Payment options

- [POST Get payment options](https://developers.qliro.com/api-reference/merchant/payment-options/get-payment-options): `/PaymentOptions`

## Admin API

Manages orders after the purchase. Results arrive as notifications, not in the response.

### Orders

- [POST Add order items](https://developers.qliro.com/api-reference/admin/orders/add-items-to-invoice): `/v2/AddItemsToInvoice`
- [POST Cancel order](https://developers.qliro.com/api-reference/admin/orders/cancel-order): `/v2/cancelOrder`
- [POST Capture order](https://developers.qliro.com/api-reference/admin/orders/mark-items-as-shipped): `/v2/MarkItemsAsShipped`
- [GET Get order](https://developers.qliro.com/api-reference/admin/orders/orders): `/v2/orders/{id}`
- [GET Get order by merchant reference](https://developers.qliro.com/api-reference/admin/orders/orders2): `/v2/orders/{merchantReference}`
- [POST Return items](https://developers.qliro.com/api-reference/admin/orders/return-with-items): `/v2/ReturnItems`
- [POST Update items](https://developers.qliro.com/api-reference/admin/orders/update-items): `/v2/UpdateItems`
- [POST Update merchant reference](https://developers.qliro.com/api-reference/admin/orders/update-merchant-reference): `/v2/updatemerchantreference`

### Retry reversal payment transaction

- [POST Retry reversal payment](https://developers.qliro.com/api-reference/admin/retry-reversal-payment-transaction/retry-reversal-payment-transaction): `/v2/retryReversalPaymentTransaction`

### Set order push URL

- [POST Set order management push URL](https://developers.qliro.com/api-reference/admin/set-order-push-url/set-order-management-push-url-request): `/v2/orderPushUrl/OrderManagement`

### Payment transactions

- [GET Get payment transaction](https://developers.qliro.com/api-reference/admin/payment-transactions/payment-transactions): `/v2/paymentTransactions/{id}`

### Merchant payment

- [POST Create merchant payment](https://developers.qliro.com/api-reference/admin/merchant-payment/create-merchant-payment): `/v2/merchantpayment`
- [GET Get customer address](https://developers.qliro.com/api-reference/admin/merchant-payment/get-customer-address): `/v2/merchantpayment/getCustomerAddress`
- [POST Retry merchant payment](https://developers.qliro.com/api-reference/admin/merchant-payment/retry-merchant-payment): `/v2/merchantpayment/retry`

### Settlements

- [GET Get bank transfer batch details](https://developers.qliro.com/api-reference/admin/settlements/get-bank-transfer-batch-details): `/v2/settlements/GetBankTransferBatchDetails`
- [GET Get settlement batches](https://developers.qliro.com/api-reference/admin/settlements/get-settlement-batches): `/v2/settlements/GetSettlementBatches`
- [GET Get settlements by batch ID](https://developers.qliro.com/api-reference/admin/settlements/get-settlements-by-batch-id): `/v2/settlements/GetSettlementsByBatchId`
- [GET Get consolidated settlements](https://developers.qliro.com/api-reference/admin/settlements/get-settlements): `/v2/settlements`