Skip to main content

สอบถามยอดเงิน (ชิลี)

smilepayz teamsประมาณ 1 นาที

ยอดเงินบัญชีร้านค้าในชิลี (CLP) แบบเรียลไทม์

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
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm
X-SIGNATUREMStringRequest signature; Signature Generation.
X-PARTNER-IDMStringmerchantID (alphanumeric).

Body Parameters

FieldRequiredTypeDescription
accountNoMString(128)Account to query; max 128 chars.
balanceTypesMList(String)e.g. ["BALANCE"]; types to return.

หมายเหตุ

Sandbox: accountNo เป็นค่าทดสอบที่สร้างให้
Production: ดึงจากระบบหลังบ้านของร้านค้า; ดู How to Get Production Account Number
บัญชีรับ/จ่าย และการโอนยอด: ดู Account Transfer Guide


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
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm

Body Parameters

FieldRequiredTypeDescription
codeMString00 = success; other codes = error.
messageMStringResult text (UTF-8).
accountInfosMObjectbalanceType, amount, availableBalance.
    balanceTypeMStringe.g. BALANCE.
    amountMObjectTotal balance: currency + string value.
        currencyMStringCLP.
        valueMStringBalance as string (whole CLP pesos, e.g. "250000").
    availableBalanceMObjectAvailable balance; same shape as amount.
        currencyMStringCLP.
        valueMStringAvailable as string.
accountNoOStringEcho accountNo when present.
nameOStringAccount display name.
balanceTypesOArrayEcho of requested types.
additionalInfoOObjectExtra metadata when returned.

Example Body – Balance Inquiry Response:

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