Skip to navigation
OverviewAuthentication

Create an access token for Checkout SDK features

Generates an access token to initialize the Checkout SDK to offer PayPal One-Click.

The OAuth bearer token you use to call this endpoint must be generated using an API key with specific permissions.

The access token returned by this endpoint is only required for the following features using Checkout SDK:

You do not need an access token if using Checkout SDK to service other payment methods or PayPal without PayPal One-Click.

A single access token can be used to service the experience to one user and has a lifespan of 15 minutes. You need to provide the UserId of the Natural User or Legal User who will use the Checkout session to make the payment.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

If your platform is using a proxy to take SCA-triggering action on behalf of users, you also need to integrate mTLS authentication and use the api-mtls base URL.

Request

This endpoint expects an object.
clientIdstringRequired
Your Mangopay Client ID.
claimsobjectRequired
Claims for the access token request.

Response

Success
access_tokenstringOptional

The access token value to use as the clientToken value when initializing Checkout SDK.

token_typestringOptional

Returned values: Bearer

The type of the token.

expires_inintegerOptional
The number of seconds until the token expires.
scopestringOptional

Returned values: checkout.session:r checkout.session:w

The API permission scopes of the token, in this case to read and write a Checkout session.