Getting a "callback cannot be null" error when posting to the RequestPermissions API endpoint
gregkaleka
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-11-2018
12:15 PM
I'm following along with the Permissions Service Getting Started Guide, and sending the post request below (using Postman). I clearly have callback in the body of the request, but am getting this error in the response:
"error": [ { "errorId": "580022", "domain": "PLATFORM", "subdomain": "Application", "severity": "Error", "category": "Application", "message": "Invalid request parameter: callback cannot be null", "parameter": [ "callback", "null" ] } ]
What am I doing wrong? Full post request (with sensitive info redacted) pasted below:
POST /Permissions/RequestPermissions HTTP/1.1 Host: svcs.sandbox.paypal.com X-PAYPAL-SECURITY-USERID: greg_api1.[redacted].com X-PAYPAL-SECURITY-PASSWORD: [redacted] X-PAYPAL-SECURITY-SIGNATURE: [redacted] X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T X-PAYPAL-REQUEST-DATA-FORMAT: JSON X-PAYPAL-RESPONSE-DATA-FORMAT: JSON Cache-Control: no-cache Postman-Token: d07372d2-e4bc-424e-ab7d-4bed424b2304 { "scope": "PAYOUTS", "requestEnvelope": {"errorLanguage":"en_US"}, "callback": "<https://www.[redacted].com/>" }
1 REPLY 1
MTS_Andre
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr-12-2018
06:30 AM
Hi, do you have in the response a PayPal DebugID/FlowloggingID or Correlation ID? Also, which is the API caller email? I guess it is a Sandbox account as I see the Sandbox standard APP-80W284485P519543T
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Simple Paypal button integration results in 404 error in Sandbox Environment
- How to retrieve merchant integration status through the API? in REST APIs
- PAYMENT.SALE.COMPLETED signature verification failed in sandbox mode in REST APIs
- Can't capture order, loop on action-required in REST APIs
- Paypal Webhook event not triggering when making direct payment from sandbox account in PayPal Payments Standard