- Home
- API reference
- Account
- Get account
Get account
Identifies the merchant, project and API key used for the request.
/v1/accountResponse (200)
Section titled “Response (200)”dataobjectrequiredThe returned object, or an array of objects for a list.
livemodebooleanrequiredtrue means this object belongs to live and can involve real payments; false means it belongs to the sandbox.
merchantobjectrequiredMerchant account associated with this key.
idstringrequiredThe id of your business.
Example: mer_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with mer_.
projectobject | nullrequiredThe project of this key; null for a merchant key.
idstringrequiredThe id of the project.
Example: prj_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with prj_.
keyobjectrequiredThe key that made this request.
idstringrequiredThe id of the key (never its secret).
Example: apk_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with apk_.
kindstringrequiredproject limits this key to one project; merchant lets it access every project in the account, subject to its scopes.
Example: project
Possible values: project, merchant
scopesarray of stringrequiredThe operations this key is allowed to call, such as payments:read. A key needs the matching scope for each request.
metaobjectrequiredRequest details such as its id and pagination cursor.
request_idstringrequiredThe id of this request. Quote it when you ask support about it.
Example: req_Hy3k9QzT2LmN8vXa
A failed request answers with the common error shape; see Errors.
curl "https://api.baiyar.com/v1/account" \ -H "Authorization: Bearer $BAIYAR_KEY"{ "data": { "livemode": false, "merchant": { "id": "mer_01k7q3m8x2v5t9n4b6c1d0e7fa" }, "project": { "id": "prj_01k7q3m8x2v5t9n4b6c1d0e7fa" }, "key": { "id": "apk_01k7q3m8x2v5t9n4b6c1d0e7fa", "kind": "project", "scopes": [ "payments:read" ] } }, "meta": { "request_id": "req_Hy3k9QzT2LmN8vXa" }}