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
Hi Dominic,
Many Thanks for your hlep. It worked for me.
-Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ali,
it is a bit late but here is a working Payload to create Marketing Permissions with the CONTACTS API. In this case I make a newsletter subscription.
/sap/opu/odata/sap/API_MKT_CONTACT_SRV/MarketingPermissions
{
"ContactID" : "mail@xy.de",
"ContactOrigin" : "YOURORIGIN",
"ContactPermissionID" : "mail@xy.de",
"ContactPermissionOrigin" : "EMAIL",
"PermissionUTCDateTime" : "2018-10-01T08:17:00",
"ContactPermission" : "Y",
"CommunicationMedium" : "EMAIL",
"PermissionSourceCommMedium" : "SYSTEM",
"PermissionIsExplicit": true,
"IsConfirmationRequired" : true,
"CommunicationCategory": "29"
}
I hope that helps!
Best regards
Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
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.