> 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/getting-started/quickstart.md).

# quickstart

Make your first call in five steps.

1. Ask Biti to create a Mini App for you. Biti gives you a `client_id` and a `client_secret`.
2. Ask Biti to set your **Payout Wallet** (where customer money lands), your **Allowed Origins** (your site), **Connect** (on) and your **Webhook URL**.
3. Keep the secret on your server. Never put it in a mobile app or a web page. If you lose it, ask Biti to make a new one. The old secret stops working at once.
4. Connect a customer, then take money with a payment request, an order or a mandate.
5. Trust money only after `get-order-status` or a signed webhook says `paid`.

{% hint style="warning" %}
The `client_secret` is a server secret. The examples use `YOUR_CLIENT_ID` and `YOUR_CLIENT_SECRET` as placeholders.
{% endhint %}

## First call

Create an order for Diyaar:

{% tabs %}
{% tab title="curl" %}

```bash
curl -X POST "https://api.biti.so/partner/v1/create-order" \
  -H "Content-Type: application/json" \
  -d '{"client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET",
       "amount": 24.5, "currency": "USD", "reference": "ORD-1042"}'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

response = requests.post(
    "https://api.biti.so/partner/v1/create-order",
    json={
        "client_id": "YOUR_CLIENT_ID",
        "client_secret": "YOUR_CLIENT_SECRET",
        "amount": 24.5,
        "currency": "USD",
        "reference": "ORD-1042",
    },
)
print(response.json())
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const response = await fetch("https://api.biti.so/partner/v1/create-order", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    client_id: "YOUR_CLIENT_ID",
    client_secret: "YOUR_CLIENT_SECRET",
    amount: 24.5,
    currency: "USD",
    reference: "ORD-1042",
  }),
});
console.log(await response.json());
```

{% endtab %}
{% endtabs %}

A good answer has `"success": true` and an `order_id`. Send the customer to the checkout, then confirm the payment with [`get-order-status`](file:///sirihduSQLZLwiPgqdx7/08c9d12f-863a-4aa7-9df8-1450285914df/api-reference/orders.md#post-partnerv1get-order-status) or a [webhook](file:///sirihduSQLZLwiPgqdx7/08c9d12f-863a-4aa7-9df8-1450285914df/webhooks.md).

## Next steps

* [Authentication](broken://pages/3714c1afbf44fac3184c6ccb8c50d440fbd9c975)
* [Conventions](broken://pages/02e1cfacc828c2575a2bf33c61fab93717e87c6a)
* [Orders and checkout](file:///sirihduSQLZLwiPgqdx7/08c9d12f-863a-4aa7-9df8-1450285914df/guides/orders-checkout.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/getting-started/quickstart.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.
