Skip to main content

How do I read my balance and account status through the API?

GET /merchant/info returns your merchant code, withdrawable balance, held balance, total revenue, account status, and sandbox mode. This endpoint uses an older response shape that differs from the other endpoints.

This page was checked against the API code as of October 16, 2026.

Where do I send the request?#

GET/api/v1/gateway/merchant/info
Limit per minute:
60 requests per minute per API key
Signature:
Enhanced HMAC only

What does an example look like?#

cURL
curl https://sekalipay.com/api/v1/gateway/merchant/info \
  -H "X-API-Key: $SEKALIPAY_API_KEY" \
  -H "Accept: application/json"
200 OK
{
  "status": 1,
  "rc": 200,
  "message": "Success",
  "data": {
    "merchant_code": "MCH-A1B2C3",
    "nama_toko": "Toko Anda",
    "saldo_tersedia": 1500000,
    "saldo_tertahan": 250000,
    "total_revenue": 15000000,
    "status": "active",
    "is_sandbox": false
  },
  "ts": 1791446400
}

How is it different from the other endpoints?#

The response uses status: 1, rc, and ts, with Indonesian field names. The shape is kept for existing integrations. Branch on the HTTP status.

data.merchant_codestring
Your merchant code.
data.nama_tokostring
Business name.
data.saldo_tersedianumber
Withdrawable balance.
data.saldo_tertahannumber
Funds waiting for their settlement date, plus withdrawals in progress.
data.total_revenuenumber
Accumulated revenue.
data.statusstring
Account status, e.g. active.
data.is_sandboxboolean
true while sandbox mode is on.
tsinteger
Server time, Unix seconds.

Ready to use your own keys?

Sign in to the merchant dashboard to copy your API key and secret key, set the access mode and webhook URL, and download a Postman collection with your account's keys.

Sign in to the dashboard