# BharatPe Payment Verification

## BharatPe Payment Verification

Use this API to verify a BharatPe payment or fetch transaction history.

The endpoint supports two modes:

* `verify` — verify a payment with a UTR ID
* `history` — fetch transaction history

### Service URL

`https://bharatqr.udayscriptsx.workers.dev`

### Request method

`GET`

### Query parameters

#### `token`

Your BharatPe token.

#### `id`

The UTR ID of the payment.

#### `type`

The request type.

Supported values:

* `verify`
* `history`

If you do not send `type`, the API uses `verify`.

{% tabs %}
{% tab title="Verify payment" %}
Use this mode to verify a payment with its UTR ID.

#### Example request

```bash
curl "https://bharatqr.udayscriptsx.workers.dev?token=YOUR_BHARATPE_TOKEN&id=YOUR_UTR_ID&type=verify"
```

#### Example URL

```
https://bharatqr.udayscriptsx.workers.dev?token=YOUR_BHARATPE_TOKEN&id=123456789012&type=verify
```

{% endtab %}

{% tab title="Transaction history" %}
Use this mode to fetch transaction history from your BharatPe account.

#### Example request

```bash
curl "https://bharatqr.udayscriptsx.workers.dev?token=YOUR_BHARATPE_TOKEN&type=history"
```

#### Example URL

```
https://bharatqr.udayscriptsx.workers.dev?token=YOUR_BHARATPE_TOKEN&type=history
```

{% endtab %}
{% endtabs %}

### Notes

* Send `token` in every request.
* Send `id` when you verify a payment.
* Use `type=history` to get transaction history.

{% hint style="success" %}
Need updates or support? Join [@UdayScripts](https://t.me/UdayScripts).
{% endhint %}


---

# 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://docs.udayscripts.in/bharatpe-payment-verification.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.
