Account Lookup
Returns the supplier (workspace) identity for the given accountId — the details you need to render a supplier on an invoice: name, address, tax id, tax label, currency. This is the accountId that appears on invoice payloads.
Authentication: X-API-KEY header (see Authentication).
Scope
The accountId must match the workspace your API key belongs to; a mismatch returns 403. No bank details or payment-processor ids are ever returned by this endpoint.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accountId | number | Yes | The workspace account id (as seen on invoice payloads). |
Request
curl https://api.withmoxie.com/public/action/account/10016 \
-H "X-API-KEY: your_api_key_here"
Response
Returns an ApiAccountInfo object.
{
"accountId": 10016,
"accountName": "Moxie",
"address1": "Váci út 1.",
"address2": null,
"city": "Budapest",
"locality": null,
"postal": "1052",
"country": "HU",
"taxId": "12345678-2-41",
"taxLabel": "VAT",
"defaultTaxRate": 27,
"currency": "HUF",
"website": "https://moxie.example",
"phone": "+36 1 234 5678",
"payInstructions": "Bank transfer within 8 days."
}
Errors
| Status | Meaning |
|---|---|
403 Forbidden | The requested accountId does not match your API key's workspace. |