m2pfintech
API LibraryBalance And Transactions

Get wallet balance for a customer or entity

Retrieve balance information for a specified customer, corporate entity, or tenant. This is a GET API where the entity ID is passed as a path parameter (no request body).

Returns an array of balance entries, one per product associated with the entity. Each entry contains the available balance and the lien (held) balance.

Balance represents funds available for transactions. Lien balance represents funds that are temporarily held due to pending transactions, disputes, or other holds. The actual spendable amount is the balance minus the lien balance.

GET
/Yappay/business-entity-manager/fetchbalance/{entityId}

Authorization

BearerAuth TenantHeader
AuthorizationBearer <token>

JWT Bearer token obtained from the /auth/login endpoint

In: header

TENANT<token>

Tenant identifier provided by M2P (e.g. ENBDTABBY)

In: header

Path Parameters

entityId*string

Entity ID of the customer, corporate, or tenant to fetch balance for

Response Body

application/json

application/json

application/json

curl -X GET "https://api.m2p.com/Yappay/business-entity-manager/fetchbalance/ABCDEF"

{
  "result": [
    {
      "entityId": "ABCDEF",
      "productId": "BUSINESS",
      "balance": "12345.67",
      "lienBalance": "0.0"
    }
  ],
  "exception": null,
  "pagination": null
}

{
  "result": null,
  "exception": {
    "detailMessage": "Entity Id Invalid",
    "shortMessage": "Entity Id Invalid",
    "errorCode": "Y226",
    "languageCode": "en"
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "detailMessage": "Not a registered Customer",
    "shortMessage": "Not a registered Customer",
    "errorCode": "Y109",
    "languageCode": "en"
  },
  "pagination": null
}