Skip to main content
POST
/
v1.0
/
accounts
Create a new account
curl --request POST \
  --url https://singa-payment-gateway.test/api/v1.0/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Main Operating Account"
}
'
{
  "status": 200,
  "success": true,
  "data": {
    "id": "01HZ7N9K3R0F2QW3X4Y5Z6V7AB",
    "name": "Main Operating Account",
    "status": "active",
    "email": null,
    "phone": null
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.singapay.id/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Merchant access token obtained from POST /v1.0/access-token/b2b. Send as Authorization: Bearer <token>.

Body

application/json

Request body for POST /v1.0/accounts.

name
string
required

Display name for the new account.

Required string length: 3 - 100
Example:

"Main Operating Account"

Response

Account created successfully.

Standard success envelope wrapping a single Account.

status
integer
required
Example:

200

success
boolean
required
Example:

true

data
Account · object
required

Merchant sub-account. Mirrors the output of App\Transformers\AccountTransformer.