Skip to main content
GET
Get accounts

Endpoint

GET /accounts Production URL: https://sam.aragon.morabaa.com/api/accounts

Authentication

This endpoint requires app authentication headers:
  • X-App-Id: <APP_ID>
  • X-App-Secret: <APP_SECRET>

Required headers

string
required
App ID credential.
string
required
App secret credential.
Need credentials? Contact info@morabaa.com.
If either is invalid or missing, the response is 401 Unauthorized. Do not send Content-Type: application/json for this GET request. Only include a Content-Type header when the request has a JSON body.

Request example

Query parameters

All query parameters are optional.
string
General text search.
guid
Filter by business ID. If omitted, the first business ID from the authenticated app is used.
int
Page size. Defaults to 25, clamped to 1..100.
int
Skip count. Defaults to 0 and never below 0.
Notes:
  • businessId must belong to the authenticated app if it is supplied.
  • A successful response returns 200 OK.

Response

The response type is an array of accounts:
guid
Account ID.
guid
Business ID associated with the account.
int
Local account ID from MyMorabaa.
string
Account name.
string
Account phone number.
string
Account address.
array
Account balances grouped by state and currency.

Headers

X-App-Id
string
required

App ID credential.

X-App-Secret
string
required

App secret credential.

Query Parameters

query
string

General text search.

businessId
string<uuid>

Filter by business ID. If omitted, the first business ID from the authenticated app is used.

limit
integer
default:25

Page size. Defaults to 25, clamped to 1..100.

Required range: 1 <= x <= 100
offset
integer
default:0

Skip count. Defaults to 0 and never below 0.

Required range: x >= 0

Response

Accounts returned successfully.