> For the complete documentation index, see [llms.txt](https://docs.citrn.io/citron/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.citrn.io/citron/get-started.md). Agents can also search and read this documentation through its [MCP server](https://docs.citrn.io/citron/~gitbook/mcp).

# Get Started

Seven steps from opening an account to live payments.

This is the route from a first request for an account to processing real payments. Each step links to the page that covers it in full.

{% stepper %}
{% step %}

## Open an account

Request an account on [citrn.io](https://citrn.io/) and fill in the integration form. A personal manager contacts you, and once the KYC check has passed you get a merchant account. See [Opening an Account](https://docs.citrn.io/citron/get-started/opening-an-account).
{% endstep %}

{% step %}

## Get a test account

Ask your personal manager for a test account. It is a separate merchant account for trying the integration, issued to the email you give us. The test account runs in production, so every operation on it is real and costs real network fees. See [Testing](https://docs.citrn.io/citron/get-started/testing).
{% endstep %}

{% step %}

## Create API credentials

In the Dashboard, open **Profile → Security** and create an API key. Give it a name and the IP addresses of the servers that will call the API — at least one is required. Copy the key straight away: it is shown only once. See [API Credentials](https://docs.citrn.io/citron/get-started/api-credentials).

Then send your personal manager the **callback URL** — the endpoint on your server that will receive callbacks about your transactions — and they will add it to your account. See [Callbacks](https://docs.citrn.io/citron/api-basics/callbacks).
{% endstep %}

{% step %}

## Send your first request

Check the connection with `GET /api/ping`, which needs no signature. Then send a signed request: [Code Samples](https://docs.citrn.io/citron/api-basics/authentication/code-samples) sign a request to `/addresses/take` in PHP and Python. If the signature is rejected, compare yours with the test vector in [Authentication](https://docs.citrn.io/citron/api-basics/authentication). The shape of requests and responses is in [API Basics](https://docs.citrn.io/citron/api-basics).
{% endstep %}

{% step %}

## Test your payment flows

Run each flow you are going to use, with small amounts and only to addresses you control:

* **Deposit** — take an address, pay to it from a wallet of your own and watch the callbacks arrive. See [Deposits](https://docs.citrn.io/citron/deposits).
* **Invoice** — create an invoice and pay it on the payment page. See [Invoices](https://docs.citrn.io/citron/invoices).
* **Payout** — send part of the funds back out to an address of your own. See [Payouts](https://docs.citrn.io/citron/payouts).
  {% endstep %}

{% step %}

## Finalize the integration

Before going live, check how your system handles callbacks — this is where most integration mistakes happen:

* Verify the signature of every callback. See [Signature Verification](https://docs.citrn.io/citron/api-basics/callbacks/signature-verification).
* Credit the customer only on the final callback — `deposit.confirmed` for a deposit, `invoice.completed` for an invoice — and decrease their balance on `withdrawal.confirmed` for a payout.
* Make sure a repeated callback does not credit the customer twice: deduplicate on `Idempotency-Key`, and on `event_id` for invoices. See [Delivery and Retries](https://docs.citrn.io/citron/api-basics/callbacks/delivery-and-retries).
* Store the callback before answering, then answer with any HTTP 2xx.
  {% endstep %}

{% step %}

## Go live

Ask your personal manager for a production account and send them its callback URL. The integration itself does not change — the base address is the same — but the production account has its own API key: create one and point your integration at it. See [Testing › Going live](https://docs.citrn.io/citron/get-started/testing).
{% endstep %}
{% endstepper %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4>Opening an Account</h4></td><td>The four steps between asking for an account and having one.</td><td><a href="https://docs.citrn.io/citron/get-started/opening-an-account.md">Opening an Account</a></td></tr><tr><td><h4>API Credentials</h4></td><td>Where API keys live, how to create one, and what the whitelist is for.</td><td><a href="https://docs.citrn.io/citron/get-started/api-credentials.md">API Credentials</a></td></tr><tr><td><h4>Testing</h4></td><td>How to get an account to test on, what to run first, and how going live works.</td><td><a href="https://docs.citrn.io/citron/get-started/testing.md">Testing</a></td></tr></tbody></table>
