R2 Connect API
Account
Identifies which business the key belongs to, its currency and which scopes it holds.
GET/accountno scope required
Requires no scopes. Use it when your integration starts, to know who you are talking to and adjust what you will request based on scopes.
Response#
| Field | Type | Description |
|---|---|---|
| id | string | Business identifier. |
| name | string | Trade name. |
| vertical | string | hospitality, gastronomy or experience. |
| currency | string | Business currency in ISO 4217 format, for example MXN. |
| api_version | string | API version in use. |
| scopes | array | Scopes held by this key. |
| key_prefix | string | Visible key prefix, useful to identify it in your logs without exposing it. |
Example#
bash
curl -H "Authorization: Bearer TU_LLAVE" "https://api.r2-os.com/api/connect/v1/account"json
{
"data": {
"id": "k97fa2c8de1b04",
"name": "Hotel Bahía del Sol",
"vertical": "hospitality",
"currency": "MXN",
"api_version": "v1",
"scopes": ["read:reservations", "read:payments"],
"key_prefix": "r2k_a1b2c3d4"
}
}