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

# Before delivery (/qliro-checkout/order-management/before-delivery)

## Get order

Get order returns the order information you need to manage the order.

For request and response parameters and error codes, see the [API Reference](https://developers.qliro.com/api-reference/admin/orders/orders).

### How to

1. Send a GET request to `checkout/adminapi/v2/orders/{OrderId}`.
2. Read the response.

## Update merchant reference

If you created the order with a temporary merchant reference, you can update the reference after the order is placed.

For request and response parameters and error codes, see the [API Reference](https://developers.qliro.com/api-reference/admin/orders/update-merchant-reference).

### How to

1. Create a request ID with a GUID generator.
2. Send a POST request to `checkout/adminapi/v2/updatemerchantreference`.
3. Process the response. It confirms that Qliro received the request. It includes a new `PaymentTransactionID` and the status code "created".
4. Receive the notification. Qliro sends a notification with the final status and the matching `PaymentTransactionID`.

### Good to know

* If the customer paid with a Qliro payment method, Qliro creates a new transaction. The response then includes the new `PaymentTransactionID`.
* For other payment methods, a successful update returns only a 200 OK status code.

## Cancel order

You can cancel an order that still has a reserved amount and items that are not marked as shipped.

For request and response parameters and error codes, see the [API Reference](https://developers.qliro.com/api-reference/admin/orders/cancel-order).

### How to

1. Create a request ID with a GUID generator.
2. Send a POST request to `checkout/adminapi/v2/cancelorder`.
3. Process the response. It confirms that Qliro received the request and includes a `PaymentTransactionID`.
4. Receive the notification. Qliro sends a notification with the status and the matching `PaymentTransactionID`.

### Good to know

* Cancelling an order paid with the TRUSTLY payment method creates an additional refund transaction.

## Update items

Use update items to update a completed order with new items.

For request and response parameters and error codes, see the [API Reference](https://developers.qliro.com/api-reference/admin/orders/update-items).

### How to

1. Create a request ID with a GUID generator.
2. Send a POST request to `checkout/adminapi/v2/updateitems`.
3. Process the response. It confirms that Qliro received the request and includes a `PaymentTransactionID`.
4. Receive the notification. Qliro sends a notification with the status and the matching `PaymentTransactionID`.

### Good to know

* Updating an order paid with the TRUSTLY payment method can create an additional transaction.

## Mark items as shipped

For most payment methods, marking items as shipped leads to a capture or activation and a money transfer.

For request and response parameters and error codes, see the Mark items as shipped [API Reference](https://developers.qliro.com/api-reference/admin/orders/mark-items-as-shipped).

### How to

1. Create a request ID with a GUID generator.
2. Send a POST request to `checkout/adminapi/v2/markitemsasshipped`.
3. Process the response. It confirms that Qliro received the request and includes a `PaymentTransactionID`.
4. Receive the notification. Qliro sends a notification with the status and the matching `PaymentTransactionID`.

### Good to know

* To activate part of the order, send only those order items in the request.

<Cards>
<Card title="After delivery" href="/qliro-checkout/order-management/after-delivery">
Continue to After delivery
</Card>
</Cards>