# Pay For Order (Buy Order)

{% hint style="info" %}
This is the endpoint to be called after confirming that a customer has made a payment. This initiates a process of crediting the customer from the liquidity provider for a ***buy order***.
{% endhint %}

## Pay for order (buy order from customer)

<mark style="color:green;">`POST`</mark> `https://canary.xendbridge.com/api/LPSimulation/Order/Receipt`

#### Request Body

| Name                                             | Type   | Description                          |
| ------------------------------------------------ | ------ | ------------------------------------ |
| orderReference<mark style="color:red;">\*</mark> | string | XB\_e8715feef57b4cd4af4b738cf6db8e25 |

{% tabs %}
{% tab title="200: OK Success" %}

```json
{
    "data": true,
    "status": "OK",
    "message": "Customer Payout Initiated Successfully"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.xendbridge.com/api-method-calls/lp-simulation/pay-for-order-buy-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
