> 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-sell-order.md).

# Pay For Order (Sell 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 ***sell order***.
{% endhint %}

## Pay for order (sell order)

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

#### Request Body

| Name                                              | Type                                                               | Description |
| ------------------------------------------------- | ------------------------------------------------------------------ | ----------- |
| orderReference<mark style="color:red;">\*</mark>  | XS\_37b9648ea5eb4e28a02858e4753b057d                               |             |
| paymentNetwork<mark style="color:red;">\*</mark>  | BEP-20                                                             |             |
| transactionHash<mark style="color:red;">\*</mark> | 0x9ab06442203745216301f15e83b4abbf2dccc8e15d64d7fd2c281da4b68f0131 |             |

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

```javascript
{
    "data": "Payment Updated Successfully",
    "status": "OK",
    "message": ""
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Request Fields" %}

<table><thead><tr><th width="183.66666666666666">Parameters</th><th width="150">Type</th><th>Definitions</th></tr></thead><tbody><tr><td>orderReference</td><td>string</td><td><code>Required</code> The order reference number made by the consumer.</td></tr><tr><td>paymentNetwork</td><td>string</td><td><code>Required</code> The payment network on which the crypto payment was made on.</td></tr><tr><td>transactionalHash</td><td>string</td><td><code>Required</code> The hash string that validates a particular order in the system.</td></tr></tbody></table>
{% endtab %}

{% tab title="Response Fields" %}

<table><thead><tr><th width="150">Parameters</th><th width="154.42838456507522">Type</th><th>Definitions</th></tr></thead><tbody><tr><td>data</td><td>bool</td><td>This can either be true or false.</td></tr><tr><td>status</td><td>string</td><td>This returns a status message of the request.</td></tr><tr><td>message</td><td>string</td><td>This returns either <code>P2P payment updated successfully</code> if success, or <code>Failed to update payment status. Please try again later</code> if failed.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}
