Billing-Plan REST API Issue

tonysims
New Community Member

I am trying to create a billing plan using the REST API from within the POSTMAN application, I have successfully managed this using the PAYPAL SDK but keep getting the following error when using the API. I have decided to try and switch to the API as opposed to the SDK as I feel it will be me more versatility. 

 

Error Message Received

{ "name": "INTERNAL_SERVICE_ERROR", "message": "An internal service error has occurred", "debug_id": "fbe5c6c97782a" }

 

I have been posting to the following URL

https://api.sandbox.paypal.com/v1/payments/billing-plans

 

I have been sure to include the following headers

Authorization Bearer xxxmy_access_tokenxxx

Content-Type application/json

 

and the following JSON body (same as what works using the SDK)

 

 {"name":"this plan","description":"this descrition","type":"INFINITE","payment_definitions":[{"name":"regular payment","type":"REGULAR","frequency_interval":"1","frequency":"MONTH","cycles":"0","amount":{"value":"9.99","currency":"GBP"},"charge_models":[{"type":"SHIPPING","amount":{"value":"1.00","currency":"GBP"}},null,null]},null,null],"merchant_preferences":{"setup_fee":{"value":"2.00","currency":"GBP"},"cancel_url":"http://ip-abc.info/cancel","return_url":"http://ip-abc.info/complete","max_fail_attempts":"0","auto_..."}}

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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