Working with Custom MDCs

Custom MATRIXX Data Containers (MDCs) can stand alone or extend system MDCs or other custom MDCs. Use private MDCs to extend subscribers, devices, and purchased product offers with custom parameters. You can set values for these parameters in SubMan API calls within the <attr> element of the request XML in the REST APIs or in the Attr field of the Java APIs.

When a custom MDC extends a system MDC, a new MDC is created with an external representation of the new MDC named new_mdcExtension. SubMan API calls can reference this extension MDC name. For example, if you create an MDC that extends the MtxPurchasedOffer MDC named DemoRechargePurchasedOffer, the external MDC referenced in SubMan API calls is DemoRechargePurchasedOfferExtension.
Important: You cannot add custom MDCs using an sed.extra file. You must use create_config.py to create custom MDCs. Custom MDCs are defined in the /opt/mtx/conf/mdc_config_custom.xml file.

REST APIs

You can get the contents of the mtx_config.xml file using the following REST call:
GET http://host:port/rsgateway/data/v3/mtx_config
You can get the contents of the mdc_config_custom.xml file with the following REST call:
GET http://host:port/rsgateway/data/v3/mdc_config_custom

In a multi-domain environment, the calls return the schema for the greatest common schema version.

To get the highest known schema version of the schema from the mtx_config.xml or mdc_config_custom.xml files, append the URL parameter highest=true to the call. For example:
GET http://host:port/rsgateway/data/v3/mdc_config_custom?highest=true