Retrieve the account of the credential
Who the credential is: the account it belongs to, the environment that answered (sandbox or live) and the credential itself, without its secret. Use it to check a key and to show which account and environment a client is working in. The credential is an API key: there are no user identities (people, roles, single sign-on) yet, so nothing here describes a person.
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.
OK
application/json- response
created_at*stringWhen the account was created.
date-timecredential*environment*stringThe environment that answered. Sandbox and live are separate deployments with separate data and keys.
"sandbox""live"id*stringThe id of the account.
^acct_[0-9a-z]+$name*stringThe account's name.
primary_treasury_asset*stringThe asset the account's balances are held in and payouts fund from (USDT unless the deployment says otherwise). Money in other assets is the account's too; GET /v1/balances marks the balance in this asset as primary.
status*stringThe account's status. Only an active account's credentials are accepted, so this is active whenever it can be read.
"active""suspended""closed"curl -X GET 'https://api-sandbox.caibopay.app/v1/account'{ "created_at": "2019-08-24T14:15:22Z", "credential": { "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "id": "string", "label": "string", "prefix": "string", "scopes": [ "read" ], "type": "api_key" }, "environment": "sandbox", "id": "string", "name": "string", "primary_treasury_asset": "string", "status": "active"}