Langsung ke konten utama

Inquiry saldo (Brasil)

smilepayz teamsSekitar 1 menit

API inquiry saldo wilayah Brasil (BRL).

Request

POST/v2.0/inquiry-balance

Request Path:

sandbox: https://sandbox-gateway.smilepayz.com/v2.0/inquiry-balance
production: https://gateway.smilepayz.com/v2.0/inquiry-balance

Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringapplication/json request body.
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm
X-SIGNATUREMStringSignature of JSON body (see product Signature doc).
X-PARTNER-IDMStringYour merchantID (alphanumeric).

Body Parameters

FieldRequiredTypeDescription
accountNoMString(128)Settlement accountNo if gateway returns it.
balanceTypesMList(String)e.g. ["BALANCE"]; types to return.

Catatan

Sandbox: accountNo adalah nilai uji yang dihasilkan.
Production: ambil dari backend merchant; lihat How to Get Production Account Number.


Example Body – Balance Inquiry Request:

Content-type: application/json
X-TIMESTAMP: 2020-12-18T15:06:00-03:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 20001

Responses

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringapplication/json request body.
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm

Body Parameters

FieldRequiredTypeDescription
codeMString00 success, other values error.
messageMStringUTF-8 human-readable result line.
accountInfosMObjectbalanceType, amount, availableBalance.
    balanceTypeMStringe.g. BALANCE.
    amountMObjectBRL integer minor units (e.g. 5000 = BRL 50.00).
        currencyMStringFixed to BRL.
        valueMStringBalance as string (minor units, e.g. "2500" = BRL 2500.00).
    availableBalanceMObjectAvailable balance; same shape as amount.
        currencyMStringFixed to BRL.
        valueMStringAvailable as string.
accountNoOStringSettlement accountNo if gateway returns it.
nameOStringBeneficiary full name (UTF-8).
balanceTypesOArrayEcho of requested types.

Example Body – Balance Inquiry Response:

Content-type: application/json 
X-TIMESTAMP: 2020-12-17T10:55:00-03:00
Terakhir diperbarui: