on 10-25-2018 4:43 PM
Hello Experts,
We have a requirement to implement API_MKT_INTERACTION_SRV to create an interaction in Marketing cloud. Thsi API will be called by third party website. When i test the api using postman GET operation working fine but POST not working , getting an error 'The server is refusing to process the request because the entity has an unsupported format'.
I have used below url and payload
https://myxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_INTERACTION_SRV/$batch
{ "InteractionContactId":"12345",
"CommunicationMedium":"WEB",
"InteractionType":"WEBINAR"
}
Am i missing something? Please help.
Regards,
Ali.
Hello Ali,
you send a non batch payload to a batch endpoint.
Try to send it to
{{protocol}}://{{url}}/sap/opu/odata/sap/API_MKT_INTERACTION_SRV/Interactions
because your Payload is an Interaction
A payload that works for me is
{
"InteractionContactOrigin": "COOKIE_ID",
"InteractionContactId": "cookieid1231231231231",
"CommunicationMedium": "WEB",
"InteractionType": "WEBSITE_SEARCH",
"InteractionTimeStampUTC": "2018-08-28T12:12:27",
"SourceSystemType": "CPI",
"SourceSystem": "SAP Platform Integration",
"MarketingArea":"XXXXX",
"InteractionContent": "This is the content"
}
I think most of it is mandatory except for the last two lines in the json. You can see details in the SAP Marketing Cloud Integration Guide:
More:
https://help.sap.com/viewer/p/SAP_HYBRIS_MARKETING_CLOUD
Regards
Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dominic,
Do you have any sample payload for Marketing permissions/contact's update using contact's api?
-Ali
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.