Skip to content

Create a Virtual Account (v2)

Request

Creates a new virtual account with the specified payment type and currency. Virtual accounts provide unique account numbers that can be used to receive payments for customers. This endpoint returns HTTP 202 indicating the request has been accepted and is being processed. You will receive a webhook notification when the virtual account is activated.

Security
JWT
Bodyapplication/jsonrequired
payment_typestringrequired

The type of payments this virtual account will accept. 'local' for domestic payments within the same country, 'swift' for cross-border payments.

Enum:"local""swift"
Example:"local"
currencystring, (iso-4217)(Currency)required

The currency for the virtual account in ISO 4217 format.

Example:"AED"
curl -i -X POST \
  https://api.glomopay.com/api/v2/virtual-accounts \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "payment_type": "local",
    "currency": "AED"
  }'

Responses

Virtual account creation request is accepted

Bodyapplication/json
messagestring
Example:"Virtual account creation request is accepted."
dataobject
Response
{ "message": "Virtual account creation request is accepted.", "data": { "merchant_id": "merch_694bb0289P4Cz", "status": "pending" } }