m2pfintech

Fetch statement as Base64 encoded string

Retrieves the PDF statement for a given entity and statement month and returns it as a Base64-encoded string. Supports optional encryption of the PDF.

POST
/statement/customer/fetchBase64Statement

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy support

Request Body

application/json

entityId*string

Entity identifier; also accepted as entity_id

stmtMonth*string

Statement month in MMYYYY format; also accepted as stmt_month

isEncrypted?boolean

Whether the returned PDF should be encrypted (default: true)

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/statement/customer/fetchBase64Statement" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "string",    "stmtMonth": "string"  }'
{
  "result": "string",
  "exception": {}
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}