getBalance : retrieve account balance

Method address: https://api.capmonster.cloud/getBalance
Request format: JSON POST

Request parameters:

Parameter

Type

Required

Purpose

Parameter

Type

Required

Purpose

clientKey

String

Yes

Unique key of your account

Body Example:

{ "clientKey": "67b6bcbb1a728ea8d563de6d169a2057" }

 

Response structure:

Parameter

Type

Purpose

Parameter

Type

Purpose

errorId

Integer

Error identificator.
0 - no error, errorCode property missing
1 - error, information about it is in the errorCode property

errorCode

String

Error code. Check out errors list.

balance

Decimal

The number of money available

Example:

{ "errorId":0, "balance": 345.678 }