APG PayAPG Paydocs

Merchants

List external accounts

GET/external-accounts
Request
GEThttps://api.tst.au.apgpay.dev/external-accounts
curl -X GET https://api.tst.au.apgpay.dev/external-accounts \
  -H "Authorization: Bearer $API_KEY"

Return a merchant's external accounts. The merchant is named by merchantId or the Merchant-Id header. There are never many, so the whole set comes back in one page.

Permissions

Required permission
merchantFinancials:query

Requires the `query` action on `merchantFinancials` for the supplied runtime context

Query parameters

qstring

Search. Matches an external account id, the reference account id, the bank or account name, or the last four digits of the account number exactly. An id, an email address, a phone number and any value listed as matched exactly match exactly; any other term matches without regard to case from the start of a value (or of any word in it, beside a longer word of the term), or anywhere in it from three characters, every word of it somewhere; a term that matches nothing so is read again with typos tolerated. Matches come oldest first.

pageinteger (int32)

Offset pagination: 1-based page number. Mutually exclusive with the cursor parameters.

startingAfterstring

Cursor pagination, moving forward: the id of the last item on the current page. Mutually exclusive with page.

endingBeforestring

Cursor pagination, moving backward: the id of the first item on the current page. Mutually exclusive with page.

limitinteger (int32)

Maximum items per page.

columnsarray of XaccColumn

Columns to include, in order, when asking for text/csv. Omit for all of them. Sending it with application/json is a 400.

merchantIdstring

Whose accounts to read. Omit it when the Merchant-Id header names the merchant.

currencyIsoCurrency

Filter to accounts paid out in one currency.

AFNDZDARSAMDAWGAUDAZNBSDBHDTHB
+156 more

PAB, BBD, BYR, BZD, BMD, VEF, BOB, BRL, BND, BGN, BIF, CAD, CVE, KYD, XOF, XAF, XPF, CLP, COP, KMF, CDF, BAM, NIO, CRC, HRK, CUP, CZK, GMD, DKK, MKD, DJF, STD, DOP, VND, XCD, EGP, SVC, ETB, EUR, FKP, FJD, HUF, GHS, GIP, HTG, PYG, GNF, GYD, HKD, UAH, ISK, INR, IRR, IQD, JMD, JOD, KES, PGK, LAK, KWD, MWK, AOA, MMK, GEL, LBP, ALL, HNL, SLL, LRD, LYD, SZL, LSL, MGA, MYR, MUR, MXN, MXV, MDL, MAD, MZN, BOV, NGN, ERN, NAD, NPR, ANG, ILS, TWD, NZD, BTN, KPW, NOK, PEN, MRU, PKR, MOP, TOP, CUC, UYU, PHP, GBP, BWP, QAR, GTQ, ZAR, OMR, KHR, RON, MVR, IDR, RUB, RWF, SHP, SAR, RSD, SCR, SGD, SBD, KGS, SOS, TJS, SSP, LKR, SDG, SRD, SEK, CHF, SYP, BDT, WST, TZS, KZT, TTD, MNT, TND, TRY, TMT, AED, UGX, COU, CLF, UYI, USD, USN, USS, UZS, VUV, CHE, CHW, KRW, YER, JPY, CNY, ZMW, ZWL, PLN

statusone of XaccStatus, array of XaccStatus

Filter by status. Repeat the parameter to supply several.

primaryboolean

Filter to the account payouts actually go to.

Responses

The response is a tagged shape: type is always "XaccPageAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "XaccPageAttributes"
hasMorebooleanrequired

Whether further items exist after this page.

Example true

nextStartingAfterstring

Id to pass as startingAfter to fetch the next page. Present in cursor mode only.

totalCountinteger (int64)

Total items matching the query.

Example 42

pageinteger (int32)

The 1-based page returned. Present in offset mode only.

Example 1250

totalPagesinteger (int32)

Total pages available. Present in offset mode only.

Example 1250

Example
{
  "type": "XaccPageAttributes",
  "data": [
    {
      "type": "XaccViewAttributes",
      "externalAccountId": "xacc_9f2Kd8QpLzXw",
      "merchantId": "mcht_9f2Kd8QpLzXw",
      "reference": "your-own-reference",
      "accountName": "Ada Lovelace",
      "bankName": "Ada Lovelace",
      "routingNumber": "string",
      "last4": "4242",
      "country": "AU",
      "currency": "AUD",
      "status": "Pending",
      "blockReason": "Requested by the customer.",
      "primary": true,
      "verified": true,
      "verification": {
        "type": "XaccVerificationAttributes",
        "outcome": "Match",
        "matchedName": "Ada Lovelace",
        "message": "string",
        "provider": "string",
        "failureMessage": "string",
        "verifiedAt": "2026-08-19T04:21:07Z"
      },
      "createdAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses