Showing results for 
Search instead for 
Did you mean: 

I have a problem with billing agreements

Posted on

Hello, I have a big problem with the webhook for confirms a subscribe agreements. I'm used the SDK If somebody could help me, my errors is the next:

Traceback (most recent call last):
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/django/core/handlers/", line 34, in inner
response = get_response(request)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/django/core/handlers/", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/django/core/handlers/", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/django/views/decorators/", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/django/views/generic/", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/django/views/generic/", line 97, in dispatch
return handler(request, *args, **kwargs)
File "/home/jjorge/src/guru/guru-payments/apps/paypal/", line 69, in post
File "/home/jjorge/src/guru/guru-payments/apps/paypal/", line 34, in execute
File "/home/jjorge/src/guru/guru-payments/apps/paypal/", line 154, in get_billing_agreement
'client_secret': paypal_client_secret
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/paypalrestsdk/", line 110, in find
return cls(api.get(url, refresh_token=refresh_token), api=api)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/paypalrestsdk/", line 268, in get
return self.request(util.join_url(self.endpoint, action), 'GET', headers=headers or {}, refresh_token=refresh_token)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/paypalrestsdk/", line 171, in request
return self.http_call(url, method, data=json.dumps(body), headers=http_headers)
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/paypalrestsdk/", line 214, in http_call
return self.handle_response(response, response.content.decode('utf-8'))
File "/home/jjorge/venvs/payments/lib/python3.7/site-packages/paypalrestsdk/", line 231, in handle_response
raise exceptions.ResourceNotFound(response, content)
paypalrestsdk.exceptions.ResourceNotFound: Failed. Response status: 404. Response message: Not Found. Error message: {"name":"RESOURCE_NOT_FOUND","debug_id":"9a7aa1a765763","message":"The requested resource was not found","information_link":"","details":[{"issue":"Requested resource ID was not found."}]}


I have a problem with billing agreements

PayPal Employee

Hi jjorgewill,



The error "RESOURCE_NOT_FOUND" typically means you're trying to access a resource that either doesn't belong to your account or simply doesn't exist. Just to confirm, are you receiving this error with the billing agreement ID I-HT38K76XPMGJ from our example or are you using your own billing agreement ID and REST app credentials? If you can also provide us a new PayPal debug ID, it would be very helpful.



Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.