Skip to Content

Subscribe to notification is json format

Hi,

Is it possible to subscribe to notifications with json request?

I know it's possible to receive json which is controlled by 'accept' header I'm interested in the first part.

All examples for subscribing are using xml atom format like here or here

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 15, 2014 at 04:05 PM

    Hello Tomasz,

    Add below Header ->

    Content Type -  application/json

    Create JSON payload as below -> Sample

    {

        "ID": "50001444",

        "Name": "John"

    }

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

    • Turned out to be an issue with the payload.

      I managed to get it working with following data:

      headers:

      accept: application/json

      x-csrf-token: my_token

      payload:

      {

      "deliveryAddress": "http://xyz:8000",

      "persistNotifications": false,

      "collection": "MyCollection"

      }

      Now I see new entries in table /IWBEP/D_MGW_SUB