Skip to main content

Billing & Platform

", "/api/purchasing", "/api/commerce"); } The general ledger: chart of accounts, journal entries, accounting periods and settings, and the financial reports read from them.

Controllers11
Endpoints32
Tables37
Screens2
API reference/api/ — group billing-and-platform
OpenAPI spec/openapi/billing-and-platform.json

URL prefixes​

Endpoints belong to this module by URL, exactly as the OpenAPI group defines it in backend/src/main/java/com/motorph/payroll/config/OpenApiConfiguration.java.

  • /api/billing/**
  • /api/entitlements/**
  • /api/webhooks/**
  • /api/admin/**
  • /api/system-admin/**
  • /api/public/billing/**
  • /api/public/signup/**
  • /api/public/legal/**
  • /api/public/altcha/**
  • /api/public/chatwoot/**
  • /api/public/blog/**
  • /api/public/blog-media/**

Controllers​

ControllerBase pathEndpointsGETPOSTPUTPATCHDELETE
BillingController/api/billing614——1
BillingWebhookController/api/webhooks1—1———
DemoDataController/api/system-admin/demo-data312———
EntitlementController—22————
PublicAltchaController/api/public/altcha11————
PublicBillingController/api/public/billing11————
PublicChatwootController/api/public/chatwoot11————
PublicLegalController/api/public/legal11————
PublicSignupController/api/public/signup2—2———
SubscriptionStatusController/api/billing11————
TenantAdminController/api/admin/tenants1342421

Across the module: 13 GET, 11 POST, 4 PUT, 2 PATCH, 2 DELETE.

Tables​

Everything this module's controllers can reach through a repository, including through a shared service — so this is the upper bound of what the module touches, not the set of tables it owns. A table appearing under two modules means two modules can read it.

EntityTableColumnsTenant-scoped
BillingSubscriptionbilling_subscription26—
BillingWebhookEventbilling_webhook_event9—
Bonusbonus8Yes
CompanyProfilecompany_profile22Yes
CrmPicklistItemcrm_picklist_item11Yes
CrmSettingscrm_settings12Yes
DeductionTypededuction_types10Yes
DeMinimisBenefitTypede_minimis_benefit_types12Yes
Departmentdepartment4Yes
Employeeemployee39Yes
EmployeeDeductionemployee_deductions12Yes
LeaveBalanceleave_balance2Yes
LeaveRequestleave_request8Yes
LeaveRequestTypeleave_request_type3Yes
LegalDocumentAcceptancelegal_document_acceptance5Yes
OvertimeRequestovertime_request6Yes
PagibigContributionRatepagibig_contribution_rates7—
Payrollpayroll14Yes
PayrollApprovalpayroll_approval3Yes
PayrollChangepayroll_changes6Yes
PayrollSettingspayroll_settings76Yes
Payslippayslip60Yes
PayslipDeductionItempayslip_deduction_items4Yes
PayslipHistorypayslip_history8Yes
Permissionpermission4—
PhHolidayph_holidays10Yes
PhilhealthContributionRatephilhealth_contribution_rates7—
Positionposition5Yes
RecognitionAwardrecognition_award8Yes
Rolerole6—
SssContributionRatesss_contribution_rates12—
Tenanttenant15—
Timesheettimesheet8Yes
Userusers11—
UserLoguser_log5—
WithholdingTaxBracketwithholding_tax_brackets8—
WorkSuspensionwork_suspensions5Yes

Screens​

Frontend routes gated by a permission this module's endpoints also require — the link between a page and its API is the permission string, not the URL.

RouteComponentRequires
/billingBillingsystem.admin.billing.manage
/settingsSettingssystem.admin.demo.data.manage

Unauthenticated endpoints​

7 endpoint(s) in this module are permitted without a token by PUBLIC_ENDPOINTS in backend/src/main/java/com/motorph/payroll/config/SecurityConfiguration.java.

MethodPath
POST/api/webhooks/{provider}
GET/api/public/altcha/challenge
GET/api/public/billing/availability
GET/api/public/chatwoot
GET/api/public/legal/versions
POST/api/public/signup
POST/api/public/signup/verify

Generated page

This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.