Skip to content

Get current merchant balance

[GET] https://gateway.prd.pppay.cloud/api/merchant/current/balance

You can use this endpoint to retrieve the current balance of your merchant account.

Authorization

To access this endpoint, you need to include your merchant token in the request header as a Bearer token.

Examples

Retrieve current merchant balance

curl --request GET \
     --url 'https://gateway.prd.pppay.cloud/api/merchant/current/balance' \
     --header 'Authorization: Bearer YOUR_MERCHANT_TOKEN' \
     --header 'accept: application/json'
import requests

url = "https://gateway.prd.pppay.cloud/api/merchant/current/balance"

headers = {
    "accept": "application/json",
    "Authorization": "Bearer YOUR_MERCHANT_TOKEN"
}

response = requests.get(url, headers=headers)

print(response.text)

Responses

200 - Success
{
  "amount": 2267060.65
}
401 - Not authenticated
{
  "error": {
    "message": {
      "base": [
        "Not authenticated"
      ]
    },
    "status": 401
  },
  "debug": []
}