m2pfintech
API LibraryIssuance

Fetch Issuances by Hierarchy and Status

Narrows the status query to a specific hierarchy node (branch, sub-corporate, etc.). Useful when the partner portal needs to show issuance status per branch rather than across the entire tenant.

Server

Use the corporate server URLs for this endpoint.

GET
/v1/corporate-issuances/fetch-by-status-issued-by/{id}/{status}

Authorization

bearerAuth tenantId
AuthorizationBearer <token>

JWT Bearer token from the Authentication API

In: header

X-TENANT-ID<token>

Your unique tenant identifier assigned during onboarding

In: header

Path Parameters

id*string

Hierarchy node ID (branch / sub-corporate)

status*string

Issuance status to filter by

Value in"CREATED" | "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "SUCCESS" | "FAILED"

Query Parameters

pageNo?integer
Default0
pageSize?integer
Default10

Header Parameters

X-TENANT-ID*string

Your unique tenant identifier

Response Body

application/json

application/json

curl -X GET "https://sandbox-api.m2pprepaid.com/prepaid/middleware/v1/corporate-issuances/fetch-by-status-issued-by/qappv272jez0owws/SUCCESS" \  -H "X-TENANT-ID: ACME_CORP"
{
  "result": {},
  "pagination": {
    "list": true,
    "pageSize": 0,
    "pageNo": 0,
    "totalPages": 0,
    "totalElements": 0
  }
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "string",
  "status": 0,
  "detail": "string",
  "message": "error.http.400",
  "businessCode": "string",
  "fieldErrors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "cause": {},
  "errorCode": "string",
  "errors": [
    "string"
  ],
  "languageCode": "string",
  "localizedMessage": "string",
  "suppressed": [
    {}
  ]
}