> For the complete documentation index, see [llms.txt](https://docs.biti.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.biti.so/payment-requests-1.md).

# payment requests

A payment request asks a connected customer to pay. You call it with the customer token.

| Mode                | What happens                                                                                          |
| ------------------- | ----------------------------------------------------------------------------------------------------- |
| `request` (default) | The customer gets a notification and pays with the PIN, or declines. A request is valid for 24 hours. |
| `charge`            | Biti charges the customer auto-pay approval at once. It needs an active mandate.                      |

## Example

Diyaar asks the customer to pay 24.50 for order ORD-1042:

```bash
curl -X POST "https://api.biti.so/partner/v1/create-payment-request" \
  -H "Content-Type: application/json" \
  -H "X-Biti-Token: YOUR_ACCESS_TOKEN" \
  -d '{"amount": 24.5, "currency": "USD", "reference": "ORD-1042",
       "mode": "request", "description": "Diyaar order ORD-1042"}'
```

## Events

| Event              | Sent when                            |
| ------------------ | ------------------------------------ |
| `payment.paid`     | The customer pays                    |
| `request.declined` | The customer declines                |
| `request.expired`  | The request passes its expiry unpaid |

Check the result with [`get-order-status`](file:///sirihduSQLZLwiPgqdx7/a80ff537-2a32-4162-a9ef-8994fddaca6c/api-reference/orders.md#post-partnerv1get-order-status). See [Webhooks](file:///sirihduSQLZLwiPgqdx7/a80ff537-2a32-4162-a9ef-8994fddaca6c/webhooks.md).

{% hint style="info" %}
The same `reference` always returns the same request. Use a new `reference` for a new payment.
{% endhint %}

Full details: [Payment requests reference](file:///sirihduSQLZLwiPgqdx7/a80ff537-2a32-4162-a9ef-8994fddaca6c/api-reference/payment-requests.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.biti.so/payment-requests-1.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
