I am using a shopify API webhook to post JSON data on an event to a cloud page URL which currently is using a static set json to upsert to a DE but will need to get the raw JSON that is sent from the webhook.

I am unable to find a function for this because it is not post form data, it is raw body data according to recycleb.in when I ran the test. I need to know if the functionality for this exist or not so I can either complete it or look for an alternative solution.

  • What SSJS functions have you tried? – Adam Spriggs Feb 28 '17 at 12:57
  • Well I had a look at the request functions or even response functions but there is nothing that relates to what I want, usually in javascript you could do something like "request.body", but that does not exist in ssjs... – Chris Haddad Feb 28 '17 at 13:47
  • I have yet to figure out a way to do that but I would be very interested in it if there is a way. – Jim Nagorka May 25 '17 at 13:47

A solution for this has been found. You will want to use Platform.Request.GetPostData() to retrieve the raw POST body content of incoming request.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.