TMF629 v4 Customer Management API (Extensible)

For the TMF629 API, extensibility is enabled through Apex lifecycle hooks and customizable GraphQL queries, allowing customers to adjust request and response payloads without compromising TMF compliance. Pre-hooks validate or reshape incoming requests, and post-hooks refine or filter responses across all operations such GET, POST, PATCH, and DELETE.

  • Extend the main entity with additional fields
  • Map a field from a different or related entity
  • Customize WHERE clauses at the main entity level
  • Customize WHERE clauses at the sub-resource level
  • Apply sorting (ORDER BY) on main and sub-resource results

The customer or integrator implements the pre-hook and post-hook Apex classes and customizes the GraphQL queries based on the provided interfaces and hooks.

The following table lists interfaces and corresponding lifecycle hooks supported for customizing the TMF629 operations.

Interface NameHooks SupportedPre-processing Capabilities
GraphQL / Payload Customization
Post-processing Capabilities
ICustomerManagementGETtransformRequest
applyCustomValidations
customiseGraphQLQuery
handlePostOperation
Validate permissions, enforce access rules, apply business validationsModify GraphQL query fields, filters, transformationsRefine or enrich API responses
ICustomerManagementPOSTtransformRequest
applyCustomValidations
customiseMutationPayload
handlePostOperation
Validate creation input and business rulesEnrich creation payload with additional fields, metadata, or related entitiesAdjust final POST response after persistence
ICustomerManagementPATCHtransformRequest
applyCustomValidations
customiseMutationPayload
handlePostOperation
Validate update payloads, enforce conditional rulesModify or enrich mutation payload before updateRefine response after patch operation
ICustomerManagementDELETEtransformRequest
applyCustomValidations
customiseMutationPayload
handlePostOperation
Validate delete permissions, enforce dependency and integrity checksAdd deletion metadata, apply soft-delete logic, archive recordsPerform cleanup, logging, or response adjustments