Create a funding account

POST
/v1/funding-accounts

An account the balance is funded through. It is created pending; its payment instructions are available once it is active (event funding_account.active). With amount it is one payment of exactly that amount (collection payment in GET /v1/capabilities): the payer pays the amount and nothing more, and the account closes once it is paid; the pay-in that credits it is payin.completed.

Autorización

apiKey
headerAuthorizationBearer <clave>

Your secret API key, sent as Authorization: Bearer <key>. A key names its environment: psp_test_… works only against sandbox (https://api-sandbox.caibopay.app), psp_live_… only against live (https://api.caibopay.app). Keys are issued by Caibo when your account is opened; the dashboard (Developers) shows the key in use.

Encabezados

Idempotency-Key*string

A unique key for this request, 8 to 128 characters.

Match^[A-Za-z0-9._:-]{8,128}$
application/json
  1. body
amount?string

One payment of exactly this amount, in currency: what the payer pays, and nothing more; the provider's commission is the platform's. For a method whose collection is payment. Omit it for an account that receives any deposit. A decimal string in the currency's precision.

Match^[0-9]+(\.[0-9]+)?$
currency*string

The currency the payer sends.

method*string

How the account is paid into, e.g. bank_transfer.

payer?

With amount: the method's payment_method_fields (GET /v1/capabilities), by name, e.g. payer.name for pix.

settlement_currency?string

The currency the balance is credited in. Defaults to the first available for the method.

Cuerpo de la respuesta

The request was already made: the existing resource is returned.

application/json
  1. response
amount?string

One payment: what the payer pays, exactly, in currency. instructions.amount says the same once active. A decimal string in the currency's precision.

Match^[0-9]+(\.[0-9]+)?$
created_at*string

When it was created.

Formatodate-time
currency*string

The currency the payer sends.

failure_code?string

Why it could not be opened.

id*string

The id of the funding account.

Match^fa_[0-9a-z]+$
instructions?

How to pay into the account. Present once active.

method*string

The method.

settlement_currency*string

The currency the balance is credited in.

status*string

pending until the account is open. active: it can be paid into. failed: it could not be opened (failure_code). closed: it takes no more deposits.

Valor en"pending""active""failed""closed"
Ejemplo de solicitud
curl -X POST 'https://api-sandbox.caibopay.app/v1/funding-accounts' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "currency": "string",  "method": "string"}'
Ejemplo de respuesta
{  "amount": "string",  "created_at": "2019-08-24T14:15:22Z",  "currency": "string",  "failure_code": "string",  "id": "string",  "instructions": {    "property1": "string",    "property2": "string"  },  "method": "string",  "settlement_currency": "string",  "status": "pending"}