Retrieve your account
curl --request GET \ --url https://api.b-paid.com/v1/account \ --header 'X-Api-Key: <X-Api-Key>'Retrieves the account your API key belongs to, with its available balance.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Your account.
The account your API key belongs to.
object
The account’s bpid. Other b-paid accounts use it to pay you.
The account’s name.
The account’s available balance in cents (USD): the money you can send now. Amounts set aside for scheduled payments you sent are already taken out. null until your account can send payments; if it stays null, contact b-paid support.
Example
{ "id": "ACC-ONE-000-BZ", "name": "Your Business", "available_balance": 12500000}A query parameter is unknown, empty or repeated (invalid_parameters_error).
The API key is missing, unknown or revoked (invalid_api_key_error).
API access isn’t turned on for your account (insufficient_permissions_error); b-paid support can turn it on. Or your business isn’t verified yet (verification_required_error); finish verifying it in the b-paid app.
Too many requests (rate_limited_error). Wait the number of seconds in the Retry-After header, then retry.
Headers
Section titled “Headers”Seconds to wait before retrying.
Something went wrong on our side (internal_server_error). Retry the same request.
The b-paid API is temporarily unavailable (service_unavailable_error). Retry the same request in a moment.