Skip to main content
POST
Create payment token for a given payment source

Authorizations

Authorization
string
header
required

Oauth 2.0 authentication

Headers

PayPal-Request-Id
string

The server stores keys for 3 hours.

Required string length: 1 - 10000
Pattern: ^.*$

Body

application/json

Payment Token creation with a financial instrument and an optional customer_id.

Payment Token Request where the source defines the type of instrument to be stored.

payment_source
Payment source request · object
required

The payment method to vault with the instrument details.

customer
Customer Request · object

This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details.

Response

Idempotent response for a successful creation of payment token.

Full representation of a saved payment token.

id
string

The PayPal-generated ID for the vault token.

Required string length: 1 - 36
Pattern: ^[0-9a-zA-Z_-]+$
customer
Customer Request · object

Customer in merchant's or partner's system of records.

payment_source
Payment token response payment source · object

The vaulted payment method details.

An array of related HATEOAS links.

Required array length: 1 - 32 elements