cURL
curl --request GET \ --url https://api-m.sandbox.paypal.com/v1/commerce/billing/customers/{external_customer_id}/portal_url \ --header 'Authorization: Bearer <token>'
{ "url": "https://www.paypal.com/usage-billing/customer-portal/eyJ1dWlkIjoiNDQ4NmI3NGYtODM5ZC00ZTk2LWEyMTUtNDY3ZDYxMzgwNzFjIiwiZXhwaXJlc19pbiI6MzYwMH0=", "expires_in": 3600 }
Use the /v1/oauth2/token endpoint to obtain an access token and pass it as a Bearer token in the Authorization header.
The unique external identifier of the customer
Embeddable URL to the Customer Portal for the given external customer ID is returned.
Was this page helpful?