parsing webhook payload with unknown object names...

parsing webhook payload with unknown object names...

Hello friends,

I'm setting up a webhook create a Deal when a order is made thru our 3rd party ecomm provider. All is good and well and working - except I'd like to record the 'license key' from the e-comm order. The trick is that that the json path to the key changes based on the product name. Really annoying and I can't edit the payload the e-comm service provides. For example, the part I'm concerned with is:

  1.         "fulfillments": {
  2.           "first_product_license_0": [
  3.             {
  4.               "license": "12345",
  5.               "display": "License Key",
  6.               "type": "license"
  7.             }
  8.           ],
  9.           "instructions": "<p>Here is your license key:<br/></p><p>This license key has been emailed to you, along with a link to download your product.</p>"
  10.         }
If the customer bought "second_product", then the name of that object would also be changed.

So: any clever ways to select the license key regardless of the product chosen? 

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                          • Topic Participants

                                          • jeff



                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now