cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Invalid JSON in Webhooks Retrieve Notification History

[{
	"id": "c219bc4f-8d2e-41da-9c0a-3819f5f66793",
	"createdDate": "2016-02-05T16:24:21.757",
	"eventType": "customer.subscription.created",
	"eventDate": "0001-01-01T00:00:00",
	"correlationId": "00000000-0000-0000-0000-000000000000",
	"payload": {
		"m1": "payload test"
	} {
		"_links": {
			"self": {
				"href": "rest/v1/notifications/c219bc4f-8d2e-41da-9c0a-3819f5f66793"
			}
		},

	}
}, {
	"notificationId": "636d12fe-8232-431c-82b3-fdf4019d7333",
	"createdDate": "2016-02-06T16:24:21.757",
	"eventType": null,
	"eventDate": "0001-01-01T00:00:00",
	"correlationId": "00000000-0000-0000-0000-000000000000",
	"payload": {
		"m1": "payload test"
	} {
		"_links": {
			"self": {
				"href": "rest/v1/notifications/636d12fe-8232-431c-82b3-fdf4019d7333"
			}
		}
	}
}]

This JSON is shown in the Webhooks documentation but is invalid. Can we get an updated sample response, please?


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
stymiee
Expert
Expert
1 ACCEPTED SOLUTION

Accepted Solutions

Okay, here's a current sample:

 

{
  "_links": {
    "self": {
      "href": "/rest/v1/notifications?offset=0&limit=100"
    }
  },
  "notifications": [
    {
      "_links": {
        "self": {
          "href": "/rest/v1/notifications/e35d5ede-27c5-46cc-aabb-131f10154ed3"
        }
      },
      "notificationId": "e35d5ede-27c5-46cc-aabb-131f10154ed3",
      "deliveryStatus": "Delivered",
      "eventType": "net.authorize.payment.authcapture.created",
      "eventDate": "2017-02-09T19:18:42.167"
    }
  ]
}

Not only is it valid, it represents what the system is actually returning. The previous sample had information in it that's not actually returned in the response, so it fails on two counts.

View solution in original post

5 REPLIES 5

Hi John,

 

Sorry about that. We actually updated that sample a little while ago, along with a lot of other text on that page, but there's a veritable sausage grinder of build/stage/release steps that things go through before they hit the public web site. I'm not in the office right now, but when I get in, I can pull the updated samples and post them here.

Aaron
All Star

Okay, here's a current sample:

 

{
  "_links": {
    "self": {
      "href": "/rest/v1/notifications?offset=0&limit=100"
    }
  },
  "notifications": [
    {
      "_links": {
        "self": {
          "href": "/rest/v1/notifications/e35d5ede-27c5-46cc-aabb-131f10154ed3"
        }
      },
      "notificationId": "e35d5ede-27c5-46cc-aabb-131f10154ed3",
      "deliveryStatus": "Delivered",
      "eventType": "net.authorize.payment.authcapture.created",
      "eventDate": "2017-02-09T19:18:42.167"
    }
  ]
}

Not only is it valid, it represents what the system is actually returning. The previous sample had information in it that's not actually returned in the response, so it fails on two counts.

Thank you for the updated example. That will make development and testing much easier. :)


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post

Thank you so much for the example. :)

 
sherylbrock
Member

Hi All , 


We  also have a postman collection for Webhooks REST APIs at https://github.com/AuthorizeNet/webhooks-postman-collection .

 

Hope it helps !!!

 

Thanks





Send feedback at developer_feedback@authorize.net