Customer.GetByAccountId
Try it in Swagger
Endpoint
- Method:
GET
- Route:
Customer/GetByAccountId/{accountId}
- Authentication:
Authorize
Returns a single customer/account by account id. There is no separate accountId column on the
Customer table today, so the account id aliases the customer code (Code); this endpoint behaves
identically to Get, including allowed-set scoping and
master-contact elevation.
Request Schema
| Header |
Required |
Notes |
X-Api-Key |
Required when tenant is not resolved by subdomain |
Resolves the tenant/customer database. |
Authorization: Bearer {token} |
Required for authorized endpoints |
Get a token from Auth/Token or Session/Create. |
Path Parameters
| Field |
Type |
Required |
Notes |
accountId |
string |
Yes |
Account id (aliases the customer code). |
Expected Response Schema
Status Codes
| Status |
Notes |
200 OK |
Account found and returned. |
404 Not Found |
No account with that id is visible to the caller. |
Success Body
Response type: CustomerLookupDto (see Get for fields).