cURL
curl --request GET \ --url https://sandbox-api.billingrails.com/v1/accounts/{id} \ --header 'Authorization: Bearer <token>'
{ "account": { "object": "account", "id": "acc_IhMUl3rrZ3", "created_at": "2025-02-14T17:33:40.843Z", "external_id": "test_account", "type": "individual", "name": "John Doe", "email": "john@test.xyz", "default_currency": "NGN", "country": "NG", "invoice_settings": { "number_prefix": "INV", "grace_period_days": 0, "net_term_days": 30 }, "preferred_locale": "en", "metadata": null } }
Retrieves an account by ID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Success
The response is of type object.
object