Permission Commands

Important: Adaptive Accounts and Adaptive Payments are now limited release products. They are restricted to select partners for approved use cases and should not be used for new integrations without guidance from PayPal.

The web flows associated with Permissions Service require you to redirect the account holder's browser to PayPal. When you redirect to the webscr endpoint, you must send a command that identifies the flow and associated parameters.

_grant-permission Command

The account holder can log in to paypal.com and grant permissions to you when you redirect the account holder's browser to paypal.com with the _grant-permission command.

Redirect to PayPal using the _grant-permission command

Redirect to PayPal:

https://www.paypal.com/cgi-bin/webscr?
cmd=_grant-permission&request_token=token
Parameter Description
cmd (Required) _grant-permission
request_token (Required) The token from the RequestPermissions response message.

Response to _grant-permission command from PayPal

PayPal redirects to the callback URL you set in the RequestPermissions request. It may include the following parameters:

Parameter Description
verification_code Verification code; returned if the account holder agreed to grant permissions. Expires after 15 minutes.
request_token The token from the RequestPermissions response message; returned if the account holder agreed to grant permissions.
Error An error code, which is equal to Internal Error if an error occurred.

If the account holder canceled, no parameters are returned.

Feedback