# What you can do (/fr/docs/capabilities)

<Endpoint method="GET" path="/v1/capabilities" href="/api#tag/capabilities/GET/v1/capabilities" />

Each item in the response is something your account can do: a **product** (`payin` to collect, `payout` to pay out, `remittance` for a full corridor) through a **method** and in a **currency**. It also includes the fields it requires, how it's collected, and whether you can use it right now.

Build your forms from this response and you won't have to change code when Caibo opens a new country or method: it simply shows up in the list.

## Filters [#filters]

All are optional and can be combined:

| Parameter | Example |
| --- | --- |
| `product` | `payin`, `payout`, `remittance` |
| `country` | `BR`, `PE` (ISO 3166-1 alpha-2) |
| `currency` | `BRL`, `PEN` |
| `method` | `pix`, `bank_transfer` |

```bash
curl "$CAIBO_API/v1/capabilities?product=payin&currency=BRL" \
  -H "Authorization: Bearer $CAIBO_API_KEY"
```

```json
{
  "data": [
    {
      "product": "payin",
      "operation": "payin",
      "method": "pix",
      "currency": "BRL",
      "country": "BR",
      "payment_currency": "BRL",
      "settlement_currencies": ["USDT"],
      "settlement_asset": "USDT",
      "collection": ["payment"],
      "payment_method_fields": [
        {
          "name": "payer.name",
          "type": "string",
          "required": true,
          "pattern": "^.{2,140}$",
          "description": "The payer's full name.",
          "example": "Ana Souza"
        },
        {
          "name": "settlement_currency",
          "type": "enum",
          "required": false,
          "enum": ["USDT"],
          "description": "The currency the balance is credited in."
        }
      ],
      "customer_fields": [
        { "name": "type", "type": "enum", "required": true, "enum": ["individual", "business"], "description": "…" },
        { "name": "country", "type": "string", "required": true, "pattern": "^[A-Z]{2}$", "description": "…" }
      ],
      "available": true
    }
  ],
  "has_more": false
}
```

## The fields [#the-fields]

<TypeTable
  type={{
    product: { type: '"payin" | "payout" | "remittance"', description: "What it is: collecting, paying out, or a full corridor." },
    method: { type: "string", description: "The method: pix, bank_transfer, mobile_payment… Always paired with currency, because the same method can exist in several currencies." },
    currency: { type: "string", description: "The currency the payer sends (pay-in) or the beneficiary receives (payout)." },
    country: { type: "string", description: "The method's country, when it has one." },
    settlement_asset: { type: "string", description: "For a pay-in, the currency your balance is credited in by default." },
    collection: { type: '("account" | "payment")[]', description: "For a pay-in: payment is collected as a one-time payment for an exact amount; account opens an account that accepts any deposit." },
    min_amount: { type: "string", description: "For a one-time pay-in: the smallest amount you can request, for your account. A smaller one is refused with amount_below_minimum." },
    max_amount: { type: "string", description: "For a one-time pay-in: the largest amount you can request, for your account. A larger one is refused with amount_above_maximum." },
    fee_bps: { type: "integer", description: "For a one-time pay-in with a Caibo fee: the fee in basis points of the amount (950 is 9.5 %). Your customer pays the amount; the fee comes off what you're credited. Absent when the method has no fee." },
    fee_fixed: { type: "string", description: "The fixed part of that fee, in the currency. Absent when there is none." },
    payment_method_fields: { type: "FieldSpec[]", description: "For a pay-in: what POST /v1/funding-accounts takes in addition to method and currency." },
    beneficiary_fields: { type: "FieldSpec[]", description: "For a payout: what details takes when you register the beneficiary." },
    customer_fields: { type: "FieldSpec[]", description: "What your customer must have (for example, the sender of a payout)." },
    limits: { type: "Limit[]", description: "For a payout: your per-operation and daily limits, if your account has them." },
    available: { type: "boolean", description: "Whether your account can use it right now." },
    reason: { type: '"suspended" | "not_enabled" | "no_provider"', description: "Why it isn't available, when available is false." },
  }}
/>

### FieldSpec: how a field is described [#fieldspec-how-a-field-is-described]

Each field has `name`, `type` (`string`, `number`, `iban`, `phone`, `email`, `date`, `enum`), `required`, and `description`, and may have `pattern` (a regular expression), `enum`, `example`, and `note`. With that you can validate in your form exactly what the API validates.

A dotted name indicates a nested object in a beneficiary's `details`: `document.type` is `{"document": {"type": "V"}}`. In `payer`, by contrast, the key is the full name: `{"payer": {"payer.name": "Ana Souza"}}`.

## Available and unavailable [#available-and-unavailable]

| `reason` | What it means | What to do |
| --- | --- | --- |
| `suspended` | Caibo has temporarily paused the operation, for everyone or for your account. | Retry later. If you try, the API responds `503 operation_suspended`. |
| `not_enabled` | The product isn't enabled for your account. | Ask Caibo to enable it. |
| `no_provider` | There's no route available for your account. | Ask Caibo to enable it. |

If you request a method or currency that isn't in the list, the API responds `422 unsupported_method`.

<Callout title="Caibo enables it, and you change nothing">
Enabling happens on Caibo's side: per country for everyone, or just for your account. When something is enabled, it starts appearing with `available: true`. Your integration reads the list and uses it.
</Callout>
