Skip to main content
GET
/
customers
/
{id}
/
portal_url
Get an embeddable URL to the customer portal
curl --request GET \
  --url https://api-m.paypal.com/v1/commerce/billing/customers/{id}/portal_url \
  --header 'Authorization: Bearer <token>'
{
  "url": "https://www.paypal.com/usage-billing/customer-portal/eyJ1dWlkIjoiNDQ4NmI3NGYtODM5ZC00ZTk2LWEyMTUtNDY3ZDYxMzgwNzFjIiwiZXhwaXJlc19pbiI6MzYwMH0=",
  "expires_in": 3600
}

Authorizations

Authorization
string
header
required

Use the /v1/oauth2/token endpoint to obtain an access token and pass it as a Bearer token in the Authorization header.

Path Parameters

external_customer_id
string
required

The unique external identifier of the customer

Response

Embeddable URL to the Customer Portal for the given external customer ID is returned.

url
string
expires_in
integer
I