> For the complete documentation index, see [llms.txt](https://doc.xendbridge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.xendbridge.com/api-method-calls/lp-simulation/pay-for-order-buy-order.md).

# 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 %}
