Account Balance

How to get your account balance in Pagsmile.

Get your Payin account balance in Pagsmile.

POST https://gateway-test.pagsmile.com/merchant/assets

Headers

NameTypeDescription

Content-Type*

String

application/json; chartset=UTF-8

Authorization*

String

Basic Base($app_id:$security_key)

Request Body

NameTypeDescription

app_id*

string

created app's id at dashboard

- Max. 32 chars -

timestamp*

string

yyyy-MM-dd HH:mm:ss

- Max. 19 chars -

version*

string

fixed value: 2.0

currency

string

Specify one currency or leave empty to check all currencies

{
    "code": "10000",
    "msg": "Success",
    "assets": [
        {
            "currency": "BRL",
            "total_revenue": 6000000.000000,
            "net_income":  6000000.000000  ,
            "balance": 0.000000,
            "payout":  6000000.000000
        }
    ],
    "history": [
        {
            "date": "2023-10-19 01:00:17",
            "currency": "BRL",
            "total_revenue":  6000000.000000  ,
            "net_income":  6000000.000000  ,
            "balance": 0.000000,
            "settled": 0.000000,
            "payout":  6000000.000000  ,
            "desc": "Withdraw by auto transfer to payout account"
        },
        {
            "date": "2023-10-19 01:00:17",
            "currency": "BRL",
            "total_revenue":  6000000.000000  ,
            "net_income":  6000000.000000  ,
            "balance":  1000000.000000	,
            "settled": 0.000000,
            "payout":  5000000.000000  ,
            "desc": "Schedule Task"
        },
        {
            "date": "2023-10-18 13:00:08",
            "currency": "BRL",
            "total_revenue":  5000000.000000  ,
            "net_income":  5000000.000000  ,
            "balance": 0.000000,
            "settled": 0.000000,
            "payout":  5000000.000000  ,
            "desc": "Withdraw by auto transfer to payout account"
        },
        {
            "date": "2023-10-18 13:00:08",
            "currency": "BRL",
            "total_revenue":  5000000.000000  ,
            "net_income":  5000000.000000  ,
            "balance":  4000000.000000	,
            "settled": 0.000000,
            "payout":  1000000.000000  ,
            "desc": "Schedule Task"
        },
    ]
}

Example

curl --location --request POST 'https://gateway-test.pagsmile.com/merchant/assets' \
--header 'Basic MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
   * "app_id": "167**********8028",
   * "timestamp": "2023-08-03 07:48:01",
   * "version": "2.0",
     "currency": ""
}'

Note: 162************38 is pagsmile's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.

Last updated