Skip to main content
GET
Fetch Virtual Accounts

When to Use

Call this after a merchant is fully activated on PayGlocal to retrieve their assigned global virtual accounts. Accounts are grouped by collection label (e.g. general) and within each label by currency code.
Returns data only for activated merchants. Calling for a merchant still in onboarding or pending review returns HTTP 401.

Response Structure

The data object is a two-level map:

Error Scenarios

Authorizations

x-gl-auth
string
header
required

Static API Key generated from the PayGlocal Partner Dashboard.

Path Parameters

merchantId
string
required

Identifier of the onboarded merchant.

Response

Virtual accounts retrieved successfully.

gid
string
Example:

"REQ-XXXXX"

status
string
Example:

"201 CREATED"

timestamp
string
Example:

"08/10/2025 16:25:33"

reasonCode
string
Example:

"GL-201-001"

data
object

Keyed by collection label, then by currency code.

errors
object | null