Skip to main content
GET
/
api
/
v1.0
/
accounts
List accounts
curl --request GET \
  --url https://sandbox-payment-b2b.singapay.id/api/v1.0/accounts \
  --header 'Accept: <api-key>' \
  --header 'Authorization: Bearer <token>' \
  --header 'X-PARTNER-ID: <api-key>'
{
  "status": 200,
  "success": true,
  "data": [
    {
      "id": "01K946KF851RK7FX075GJHBVKF",
      "name": "John Doe",
      "status": "active",
      "account_number": "000000000123",
      "account_type": "owned",
      "kyb_status": "kyb_in_review",
      "invite_members": [
        "john@example.com"
      ]
    }
  ],
  "pagination": {}
}

Authorizations

Authorization
string
header
required

JWT issued by POST /api/v1.1/access-token/b2b. Send Authorization: Bearer <token>.

X-PARTNER-ID
string
header
required

Merchant API key (Credential.api_key). Required on every request.

Accept
string
header
required

Response format. Send application/json on every merchant API request.

Response

Success

status
integer
required
Example:

200

success
boolean
required
Example:

true

data
object[]
required
pagination
object

Pagination and transformer meta (structure follows laravel-responder / fractal).