API/Account
Get the account
GET/v1/account· API key
The account the calling key belongs to, and its plan. A plan change started with a checkout session shows here once Stripe has confirmed payment, which may take a few seconds. Test keys can read it.
curl https://api.einvoicing.dev/v1/account \ -H "Authorization: Bearer $EINVOICING_API_KEY"<?php$client = new GuzzleHttp\Client();$response = $client->request('GET', 'https://api.einvoicing.dev/v1/account', [ 'headers' => [ 'Authorization' => 'Bearer ' . getenv('EINVOICING_API_KEY'), ],]);$data = json_decode((string) $response->getBody(), true)['data'];req, _ := http.NewRequest(http.MethodGet, "https://api.einvoicing.dev/v1/account", nil)req.Header.Set("Authorization", "Bearer "+os.Getenv("EINVOICING_API_KEY"))res, err := http.DefaultClient.Do(req)if err != nil { log.Fatal(err)}defer res.Body.Close()const res = await fetch("https://api.einvoicing.dev/v1/account", { headers: { Authorization: `Bearer ${process.env.EINVOICING_API_KEY}`, },});const { data } = await res.json();Response
200 The account.
| Field | Type | Description |
|---|---|---|
datarequired | Account | An account. Identified by its email address; it has no password. |
{ "data": { "id": "01J9Z3M8W2C4K6P8R0T2V4X6Z8", "email": "[email protected]", "plan": "developer", "created_at": "2026-09-11T14:05:02.117Z" }}Errors
Every error is application/problem+json (RFC 9457). Branch on type, which is stable, never on title or detail.
| Status | When |
|---|---|
| 401 | No key, or a key that is unknown or revoked. Problem |
| 429 | Too many requests in a short window. Slow down and retry after the
number of seconds in |
Schemas
Account
An account. Identified by its email address; it has no password.
| Field | Type | Description |
|---|---|---|
idrequired | Ulid | A ULID. Opaque and time-ordered. |
emailrequired | string · email | The address sign-in codes and notices are sent to. |
planrequired | string | The current plan.
|
created_atrequired | Timestamp · date-time | RFC 3339, UTC, millisecond precision. |