# Your company's accounts (/docs/financial-accounts)

With a **financial account** your company is paid into an account in **its own name**: real bank details (account and routing numbers, IBAN, CLABE) you give to whoever pays you. What comes in is delivered to **your company's wallet**.

Caibo does not verify your company or decide whether it qualifies. The provider that opens the account verifies your company (KYB): it decides whether it serves your company, in which currencies, and what is missing. Its answer is what counts, and Caibo shows it to you in one vocabulary.

<Mermaid chart={`sequenceDiagram
  participant T as Your system
  participant C as Caibo Pay
  participant R as Your company's representative
  T->>C: POST /v1/account/verification
  C-->>T: 201 pending
  T->>C: GET /v1/account/verification
  C-->>T: action_required + verification_url
  T->>R: Opens verification_url
  R->>C: Completes the verification with the provider
  C-->>T: webhook account.verification_updated (approved)
  T->>C: POST /v1/financial-accounts
  C-->>T: webhook financial_account.activated
  T->>C: GET /v1/financial-accounts/{id}/details`} />

## 1. See what is offered [#1-see-what-is-offered]

```bash
curl https://api-sandbox.caibopay.app/v1/capabilities?product=financial_account \
  -H "Authorization: Bearer $CAIBO_API_KEY"
```

Each `financial_account` capability says:

- the currency the account is opened in (`currency`);
- the rails it is paid by (`rails`);
- the network and asset pairs it delivers on (`destinations`, such as `base` / `USDC` or `tron` / `USDT`), and the one used when you name none (`default_destination`).

`verification_required: true` means the provider verifies your company before it opens the account. When it is not available, `reason` says why:

| `reason` | What it means |
| --- | --- |
| `verification_required` | The provider has not approved your company for that currency yet. |
| `not_eligible` | The provider rejected your company, or your company operates on the platform's own accounts. |

## 2. Verify your company [#2-verify-your-company]

```bash
curl https://api-sandbox.caibopay.app/v1/account/verification \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "email": "operations@yourcompany.com", "legal_name": "Your Company Inc." }'
```

Who verifies your company follows the **country it is registered in** (`compliance_provider`). Your company is verified **once**: asking again returns the verification as it stands.

A company registered in Venezuela is verified by the platform's identity verifier and operates on the platform's own accounts (`own_accounts: false`): it opens no account of its own.

```bash
curl https://api-sandbox.caibopay.app/v1/account/verification \
  -H "Authorization: Bearer $CAIBO_API_KEY"
```

| `status` | What to do |
| --- | --- |
| `pending` | Wait: the verifier was asked. |
| `action_required` | Your company's representative completes `requirements` at `verification_url` (and accepts the terms at `terms_url` when present). |
| `under_review` | Wait: the verifier is reviewing. |
| `approved` | Your company can open accounts in the currencies of `eligible_currencies`. |
| `rejected` | The verifier rejected your company. No account is opened. |
| `restricted` | The verifier limited or paused your company. |

<Callout title="The links are a session">
`verification_url` and `terms_url` are personal. Do not log or share them. They are given only to a credential with the write scope: a read-only one sees how the verification stands, without the links.
</Callout>

In sandbox you can approve your company without going through the verification: `POST /v1/account/verification/simulate-approval`.

## 3. Ask for the account [#3-ask-for-the-account]

```bash
curl https://api-sandbox.caibopay.app/v1/financial-accounts \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: usd-account-1" \
  -H "Content-Type: application/json" \
  -d '{
    "currency": "USD",
    "destination": { "network": "base", "asset": "USDC", "address": "0x..." }
  }'
```

`destination` is **your company's** wallet: Caibo stores only its public address. Never send private keys or seed phrases; a request carrying one is refused.

The network and asset must be one of `destinations`. Leave out `network` and `asset` to get `default_destination`. The address is checked against the network's form before it reaches the provider.

The account is `pending` until the provider approved your company for the currency, then `active`, or `failed` with a `failure_code`.

## 4. Show the account's details [#4-show-the-accounts-details]

Once the account is `active`:

```bash
curl https://api-sandbox.caibopay.app/v1/financial-accounts/facc_.../details \
  -H "Authorization: Bearer $CAIBO_API_KEY"
```

`details` carries what a payer needs, by currency: `bank_account_number`, `bank_routing_number`, `iban`, `bic`, `clabe`, `br_code`, the beneficiary and the bank.

This route needs a key with **write**. A read-only key lists the accounts but never sees their numbers. Every reading is audited.

## 5. Follow what comes in [#5-follow-what-comes-in]

- **Transactions**: `GET /v1/financial-accounts/{id}/transactions`. Each line is what the provider reported: `deposit_received`, `delivery_submitted`, `delivered`, `in_review` and refunds. The lines of one deposit share `deposit_id`.
- **Webhooks**: `financial_account.transaction` for each new line, and `account.verification_updated` when your company's verification changes.

None of this is **your balance** of `/v1/balances`. The account delivers what it receives to your company's wallet, so Caibo holds none of that money.
