Account
Retrieve your account
Returns the store the API key belongs to and the environment of the key.
GET
/v1/accountAny valid API key may call this endpoint, whatever its scopes.
Any valid key can call it, whatever its scopes: it is the simplest way to check that a key works.
curl https://api.rais.app/v1/account \
-H "Authorization: Bearer rais_sk_test_..."Response200
{
"object": "account",
"id": "7d0b6a3e-1c52-4f8e-9a44-2b6e8f1d0c35",
"name": "Boutique Alger",
"livemode": false,
"live_enabled": false,
"currency": "DZD",
"payment_page": "rais"
}Request
This endpoint takes no parameters.
Response
200Your store.
Returns the Account object.
Errors
| Status | Code | Example message |
|---|---|---|
| 401 | invalid_api_key | Invalid API key provided. |
| 403 | insufficient_scope | This API key does not have the 'payments:write' permission. |
| 403 | account_disabled | This store is suspended or disabled. |
| 403 | live_mode_not_enabled | Complete business verification to take live payments. |
| 429 | rate_limit_exceeded | Too many requests. Slow down and retry after the delay in the Retry-After header. |
| 500 | internal_error | Something went wrong on our side. Quote the request id to support. |
Every error has the same envelope. See Errors.