Discussions

RPL API Injection - Datamodel interpretation

Hi,


I'm currently trying to inject a payload with the following structure into Responsys via API:

{

    "mergeTriggerRecordData": {

        "mergeTriggerRecords": [

            {

                "fieldValues": [

                    "[email protected]"

                ],

                "optionalData": [

                    {

                        "name": "ORDER_ID",

                        "value": "550199999998"

                    },

                    {

                        "name": "customerFirstName",

                        "value": "Jose"

                    },

                    {

                        "name": "ORDER_DETAIL",

                        "value": [

                            {

                                "sku": "ble",

                                "price": "$29000",

                                "description": "polera"

                            },

                            {

                                "sku": "ble2",

                                "price": "$9000",

                                "description": "calcetines"

                            },

                            {

                                "sku": "ble3",

                                "price": "$39000",

                                "description": "poleron"

                            }

                        ]

                    }

                ]

            }

        ],

        "fieldNames": [

            "EMAIL_ADDRESS_"

        ]

    },

    "mergeRule": {

        "htmlValue": "H",

        "matchColumnName1": "EMAIL_ADDRESS_",

        "matchColumnName2": null,

        "optoutValue": "O",

        "insertOnNoMatch": true,

        "defaultPermissionStatus": "OPTIN",

        "rejectRecordIfChannelEmpty": "E",

        "optinValue": "I",

        "updateOnMatch": "REPLACE_ALL",

        "textValue": "T",

        "matchOperator": "NONE"

    }

}


Im prepping responsys to receive data as follows:

Hola ${DynamicVariable.customerFirstName}

<br>Probando arreglo dificil

<p>Este es el arreglo:

</p>

<br>API_1: ${DynamicVariable.ORDER_ID}

<br> 

  <#list ORDER_DETAIL as line_detail>

    <p>SKU: {DynamicVariable.line_detail.sku}

</p>

<p>PRICE: {DynamicVariable.line_detail.price}

</p>

<p>DESCRIPTION: {DynamicVariable.line_detail.description}

</p>

  </#list>


Yet, this isn't being interpreted correctly by RPL.

Is there something wrong on my structure for receiving and/or sending?


Appreciate your insights!