LTOPFPG MercantileBagong Pilipinas
HomeMDMIPPolicy InformationOfficeRegister

API reference

API Documentation

Safe public reference for 41 API feature endpoints. This page is informational only and lists approved web app API features, access levels, and sample request shapes.

Coverage reminder

The portal is a legal-tech workflow tool. Registration does not activate coverage until payment, document review, certificate issuance, and official activation are complete.

Scope

This page documents what the official LTOP/MDMIP web app can request. It only lists safe API feature names, routes, access level, and example request shapes. Protected endpoints still require the correct signed-in account and permissions.

Access Levels

Public

Can be opened for availability checks.

Public form

Accepts validated form submissions from the official site.

Session

Requires a signed-in web session.

Customer

Requires the matching customer account.

Agent

Requires an approved agent account.

Employee

Requires an approved operations account.

Admin

Requires an approved administrator account.

Readiness and Support

Safe endpoints for checking availability and receiving customer support requests.

MethodEndpointAccessFeature
GET/api/healthPublicService availability check.
GET, POST/api/customer-servicePublic formCustomer support, complaint, and claims-assistance intake.
POST/api/sharesPublic formCreate a first-party share reference for approved sharing flows.

Registration and Account Access

Customer onboarding and account access APIs used by the official web app.

MethodEndpointAccessFeature
POST/api/customer-registrationsPublic formCreate a customer registration after validation.
POST/api/auth/email-otp/requestPublic formRequest a one-time email sign-in code.
POST/api/auth/email-otp/verifyPublic formVerify a one-time email sign-in code.
POST/api/auth/password-loginPublic formSign in with an existing account.
GET, POST, DELETE/api/auth/sessionSessionRead, refresh, or clear the active web session.

Customer Features

Account, profile, application, document, payment, and claim features available to signed-in customers.

MethodEndpointAccessFeature
GET, POST, PATCH/api/customer/dashboardCustomerLoad dashboard data and submit customer account updates.
POST/api/customer/credits/transferCustomerTransfer eligible customer account credits.
GET, POST/api/customer/exportCustomerRequest or retrieve a customer data export.
GET, POST, DELETE/api/documentsSessionManage customer-uploaded document records.
GET/api/documents/[id]/fileSessionOpen an authorized document file.
GET, POST/api/id-verificationsSessionSubmit or review identity verification records.
GET, POST/api/claimsCustomerSubmit or list customer claims records.

Agent Features

Agent-facing APIs for assisted customer requests, referral links, and scoped client records.

MethodEndpointAccessFeature
GET, POST/api/agent/clientsAgentList assisted clients or create an assisted customer request.
PATCH, DELETE/api/agent/clients/[id]AgentUpdate or cancel an assisted client record.
GET, POST/api/referrals/inviteSessionCreate or resolve an account-linked referral invitation.
GET, POST/api/agentsEmployeeList agent records or submit an agent registration record.
PATCH/api/agents/[id]EmployeeUpdate approved agent profile details.
POST/api/agents/assignEmployeeAssign or invite an agent through the official workflow.

Operations Features

Protected operations APIs for applications, policies, payments, announcements, reports, and account management.

MethodEndpointAccessFeature
GET, POST/api/applicationsEmployeeList or create application records.
GET, PATCH/api/applications/[id]EmployeeRead or update an application record.
POST/api/applications/[id]/submitSessionSubmit an application for review.
POST/api/applications/[id]/approveEmployeeApprove an application for the next step.
GET/api/policiesEmployeeList policy/request records.
PATCH, DELETE/api/policies/[id]EmployeeUpdate or archive a policy record.
POST/api/policies/[id]/approveEmployeeApprove a policy request.
POST/api/policies/[id]/issueEmployeeMark certificate issuance progress.
POST/api/policies/[id]/activateEmployeeActivate a policy after required checks.
GET, POST/api/paymentsEmployeeList or create payment records.
POST/api/payments/[id]/confirmEmployeeConfirm a reviewed payment.
POST/api/payments/[id]/reverseEmployeeReverse a payment with an approved reason.
GET, POST, PATCH/api/management/announcementsEmployeeList, create, or update customer-facing announcements.
POST/api/management/batch-encodeEmployeeBatch encode validated customer profiles and assigned policy requests.
GET/api/reportsEmployeeRead available reports.
GET/api/reports/dailyEmployeeGenerate daily report data.
GET/api/reports/insured-enrolleesEmployeeGenerate the insurer enrollee workbook in the approved format.
PATCH/api/users/[id]/rolesAdminUpdate a user's allowed platform roles.

Checkout Features

Payment and receipt endpoints used by the official checkout surface.

MethodEndpointAccessFeature
POST/api/checkout/qrphSessionCreate a checkout request for an approved payment purpose.
GET, PATCH/api/checkout/statusSessionRead or update checkout status.

Safe Request Examples

Support intake

POST /api/customer-service

{
  "name": "Juan Dela Cruz",
  "contact": "+639171234567 or juan@example.com",
  "topic": "Support concern",
  "referenceNo": "Optional account or payment reference",
  "message": "Describe the concern and requested help."
}

Batch encode

POST /api/management/batch-encode

{
  "agentEmail": "agent@example.com",
  "customers": [
    {
      "firstName": "Juan",
      "lastName": "Dela Cruz",
      "middleInitial": "S",
      "birthDate": "1986-03-14",
      "mobileNumber": "+639171234567",
      "email": "juan.delacruz@example.com",
      "address": "Quezon City, Metro Manila",
      "occupation": "Transport Driver",
      "beneficiaries": [
        { "name": "Maria Dela Cruz", "relationship": "Spouse" }
      ]
    }
  ]
}

Checkout request

POST /api/checkout/qrph

{
  "amount": 1825,
  "purpose": "policy",
  "policyId": "policy_document_id",
  "returnTo": "/customer/dashboard?section=payments",
  "tierKey": "single"
}

Role update

PATCH /api/users/[id]/roles

{
  "reason": "Approved role update.",
  "roles": ["customer", "agent"]
}
(c) 2026 MDMIP. All rights reserved.MDMIP ProgramLTOP InsuranceFPG Mercantile LTOPTransport Driver InsuranceMember RegistrationPayment StatusQRPH Payment GuideOffice LocationPrivacyTerms and ConditionsAPI DocumentationPolicy InformationPolicy Guidelines