• Resolved mxcalderon

    (@mxcalderon)


    Hi! I’m a pro user so I have access to the webhooks feature. The API I’m working with, is sending me this information:

    {
      "id": "1234567890123456789",
      "creation_date": 12345678,
      "event": "WAITING_PAYMENT",
      "version": "2.0.0",
      "data": {
        "product": {
          "id": 213344,
          "name": "Product Name",
          "has_co_production": false
        }
    }

    So, let’s say I want to target the key id, inside product, which is inside data. On the automator, if I use the samples option when testing, it gets only the key “data” (where everything I need is inside of). I’ve tried placing:
    -data.product.id
    -product.id
    -data product id
    -data[product[id]]
    And nothing works. I know because I’ve been monitoring some testing request and they all give the same error: the API is not sending the key my server need. Which I guess it’s because I didn’t set it properly. So, what would be the format or way I should use to target that specific key, when creating the trigger for my recipe?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Uncanny Automator

    (@uncannyautomator)

    Hi @mxcalderon , we unfortunately have good news and bad news here. The bad news is that this format, worked with nested data, is not currently supported with our webhooks implementation.

    The good news is that we wrapped up development of the support you need last week and we’re adding amazing new webhook capabilities (including this support) to the next release. It will be out within the next week. If for any reason you need it sooner, make sure you open a ticket on our website and our team should be able to provide a solution (though we do recommend waiting for the release if possible).

    Plugin Contributor Uncanny Automator

    (@uncannyautomator)

    Hi @mxcalderon ,

    We released all of our new webhook support in the 3.6 Free and Pro releases last week and the week before, so your request should now be fully supported. If you have questions after updating, don’t hesitate to reach out, but for now we’ll go ahead and mark this as closed since we have released the functionality you needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Accesing keys inside objects for trigger’ is closed to new replies.