{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues/issues/201","repository_url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues","labels_url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues/issues/201/comments","events_url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues/issues/201/events","html_url":"https://github.com/paypal/PayPal-REST-API-issues/issues/201","id":296842073,"number":201,"title":"How to know that a Billing Agreement has outstanding_balance > 0?","user":{"login":"Fruzenshtein","id":3518953,"avatar_url":"https://avatars0.githubusercontent.com/u/3518953?v=4","gravatar_id":"","url":"https://api.github.com/users/Fruzenshtein","html_url":"https://github.com/Fruzenshtein","followers_url":"https://api.github.com/users/Fruzenshtein/followers","following_url":"https://api.github.com/users/Fruzenshtein/following{/other_user}","gists_url":"https://api.github.com/users/Fruzenshtein/gists{/gist_id}","starred_url":"https://api.github.com/users/Fruzenshtein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fruzenshtein/subscriptions","organizations_url":"https://api.github.com/users/Fruzenshtein/orgs","repos_url":"https://api.github.com/users/Fruzenshtein/repos","events_url":"https://api.github.com/users/Fruzenshtein/events{/privacy}","received_events_url":"https://api.github.com/users/Fruzenshtein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-13T18:36:06Z","updated_at":"2018-02-13T19:46:47Z","closed_at":null,"author_association":"NONE","body":"Hello dear PayPal Dev team :)\r\n\r\nActually it's clear that I can [get billing agreement details](https://developer.paypal.com/docs/api/payments.billing-agreements#billing-agreements_get) and in the response body I can take a look at `outstanding_balance`.\r\n\r\nBut what about some webhook which I can handle on my side in case of failed billing agreement payment? Because without a such webhook I must go through all ACTIVE billing agreements of my customers and request info for each of them. \r\nHence I generate tones of useless traffic to paypal rest api on daily basis. \r\n\r\nThe main goal is to suspend a billing agreement which has positive `outstanding_balance`.\r\n\r\nHow to handle this?"},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues/issues/comments/365382110","html_url":"https://github.com/paypal/PayPal-REST-API-issues/issues/201#issuecomment-365382110","issue_url":"https://api.github.com/repos/paypal/PayPal-REST-API-issues/issues/201","id":365382110,"user":{"login":"xiaoleih41","id":1178879,"avatar_url":"https://avatars3.githubusercontent.com/u/1178879?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaoleih41","html_url":"https://github.com/xiaoleih41","followers_url":"https://api.github.com/users/xiaoleih41/followers","following_url":"https://api.github.com/users/xiaoleih41/following{/other_user}","gists_url":"https://api.github.com/users/xiaoleih41/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoleih41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoleih41/subscriptions","organizations_url":"https://api.github.com/users/xiaoleih41/orgs","repos_url":"https://api.github.com/users/xiaoleih41/repos","events_url":"https://api.github.com/users/xiaoleih41/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoleih41/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T19:46:47Z","updated_at":"2018-02-13T19:46:47Z","author_association":"NONE","body":"Can you use the webhook, payment.sale.denied.  Once it's denied, it should result an outstanding_balance of that specific billing agreement. "}}
{"actor":{"display_login":"xiaoleih41"}}