Getting a "callback cannot be null" error when posting to the RequestPermissions API endpoint

gregkaleka
Contributor
Contributor

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/>"
 }
Login to Me Too
1 REPLY 1

MTS_Andre
Moderator
Moderator

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

Login to Me Too

Haven't Found your Answer?

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