Create a beneficiary
Registers who is paid. The same account registered twice for the same customer is the same beneficiary (200 with the existing one). Account details are write-only. The country is the method's when the method has one.
apiKeyAuthorizationBearer <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.
application/json- body
country?stringISO 3166-1 alpha-2 of the account. Fixed by the method when the method has a country; optional otherwise.
currency*stringThe currency the beneficiary receives.
customer_id?stringThe id of the customer the account belongs to. Optional.
^cus_[0-9a-z]+$details*The account details the method requires (see beneficiary_fields in GET /v1/capabilities: for example clabe for spei, routing_number and account_number for ach, a key for pix). Write-only: never returned.
holder?stringThe account holder's name. Stored encrypted; descriptive, not part of what makes two registrations the same account.
length <= 200label?stringYour own name for the beneficiary.
length <= 100metadata?Your own references: at most 20 keys of the form [a-z][a-z0-9_]{0,39}, string values of at most 500 characters. Never personal data.
properties <= 20method*stringThe method the beneficiary is paid by.
The request was already made: the existing resource is returned.
application/json- response
country?stringISO 3166-1 alpha-2 of the account.
created_at*stringWhen it was created.
date-timecurrency*stringThe currency.
customer_id?stringThe id of the customer the account belongs to.
^cus_[0-9a-z]+$holder?stringThe account holder's name.
id*stringThe id of the beneficiary.
^ben_[0-9a-z]+$label?stringYour own name for the beneficiary.
metadata*Your own references: at most 20 keys of the form [a-z][a-z0-9_]{0,39}, string values of at most 500 characters. Never personal data.
properties <= 20method*stringThe method.
status*stringactive: can be paid. archived: kept for the record and no longer paid.
"active""archived"updated_at*stringWhen it last changed.
date-timeverification_status*stringWhat a verification of the account said. verified is final.
"unverified""verified""failed"verified_at?stringWhen it was verified.
date-timecurl -X POST 'https://api-sandbox.caibopay.app/v1/beneficiaries' \ -H 'Content-Type: application/json' \ -d '{ "currency": "string", "details": {}, "method": "string"}'{ "country": "string", "created_at": "2019-08-24T14:15:22Z", "currency": "string", "customer_id": "string", "holder": "string", "id": "string", "label": "string", "metadata": { "property1": "string", "property2": "string" }, "method": "string", "status": "active", "updated_at": "2019-08-24T14:15:22Z", "verification_status": "unverified", "verified_at": "2019-08-24T14:15:22Z"}