m2pfintech
API LibraryForex Card Holder Load

Fetch Forex Card Holder Loads by Status

Retrieves forex card holder loads filtered by processing status and hierarchy ID. Use the optional transactionType parameter to further filter by CREDIT or DEBIT.

Status Values

StatusDescription
CREATEDPending approval
APPROVEDApproved and processed
REJECTEDRejected by checker
FAILEDProcessing failed
GET
/v1/forex/card-holder-loads/fetch-by-status/{status}/{hierarchyId}

Authorization

bearerAuth tenantId
AuthorizationBearer <token>

In: header

X-TENANT-ID<token>

In: header

Path Parameters

status*string

Load status

Value in"CREATED" | "APPROVED" | "REJECTED" | "FAILED"
hierarchyId*string

Hierarchy/branch ID

Query Parameters

pageNo?integer
Default0
transactionType?string

Filter by transaction type

Value in"CREDIT" | "DEBIT"

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/corporate/v1/forex/card-holder-loads/fetch-by-status/APPROVED/90009" \  -H "X-TENANT-ID: ACME_CORP"
{
  "result": {},
  "pagination": {}
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Business validation failed",
  "status": 409,
  "detail": "Business validation failed",
  "message": "error.business",
  "businessCode": "PP_CORP_002"
}