Token

May 27, 2025 ยท View on GitHub

The tokenized payment source to fund a payment.

Structure

Token

Fields

NameTypeTagsDescriptionGetterSetter
IdStringRequiredThe PayPal-generated ID for the token.

Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9a-zA-Z_-]+$
String getId()setId(String id)
TypeTokenTypeRequiredThe tokenization method that generated the ID.

Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_-]+$
TokenType getType()setType(TokenType type)

Example (as JSON)

{
  "id": "id6",
  "type": "BILLING_AGREEMENT"
}