Skip to content

Instantly share code, notes, and snippets.

{
"id": "1cd333fc-1516-4319-b5a3-23ed50c3ecb2",
"resource": "notifications",
"path": "/notifications/1cd333fc-1516-4319-b5a3-23ed50c3ecb2",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "payments.canceled",
{
"id": "212e91ea-721e-49d5-9a80-74b770d65e40",
"resource": "notifications",
"path": "/notifications/212e91ea-721e-49d5-9a80-74b770d65e40",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "payments.created",
{
"payments": {
"enabled": true,
"current_issues": [],
"upcoming_issues": {}
},
"payouts": {
"enabled": false,
"current_issues": [{
"target": {
{
"id": "1dda8c16-828f-4d0f-ae27-d232547e46dc",
"resource": "notifications",
"path": "/notifications/1dda8c16-828f-4d0f-ae27-d232547e46dc",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "accounts.capabilities.updated",
@wehub
wehub / accounts.capabilities.updated_sample_notification.json
Last active September 18, 2019 20:32
Note that this sample reflects a use case where a merchant updates their account name to a literal null (should not be allowed by your platform). If their payments and payouts were previously enabled, this would be the notification body.
{
"id": "947ecf75-11eb-4368-a60b-c443dc4366ae",
"resource": "notifications",
"path": "/notifications/947ecf75-11eb-4368-a60b-c443dc4366ae",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "accounts.capabilities.updated",
{
"id": "947ecf75-11eb-4368-a60b-c443dc4366ae", //Notification ID
"resource": "notifications",
"path": "/notifications/947ecf75-11eb-4368-a60b-c443dc4366ae",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "accounts.created",