TMF637 v5 v4 Product Inventory Management API (Extensible)
For the TMF637 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 for GET (list and retrieve) operations.
- 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 TMF637 operations.
| Interface Name | Hooks Supported | Pre-processing Capabilities | GraphQL / Payload Customization | Post-processing Capabilities |
|---|---|---|---|---|
| IProductInventoryManagementGET | resolveApexClassNametransformRequestapplyCustomValidationscustomiseGraphQLQuerysetUpdatedPayload | Validate permissions, enforce access rules, apply business validations | Modify GraphQL query fields, filters, transformations | Refine or enrich API responses |