Customer Token

Get Customer Token

get

Retrieve the payment token associated with the customer identified by the specified customer key.

Path parameters
customerKeystringRequired

Unique identifier of the customer.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Responses
chevron-right
200

ok

payload

payloadTypestringOptional

Type of payload returned in the response.

Example: customer-tokens
get
/rest/v2/customers/{customerKey}/tokens

Add Token to a Customer

post

Add an existing payment token to the customer identified by the specified customer key.

Path parameters
customerKeystringRequired

Unique identifier of the customer.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Body

Represents a stored payment token for a customer.

customer-keystringRequired

Unique identifier of the customer to associate with the token.

Example: custID-dkke-8383-ek999
token-idstringRequired

Unique identifier of the existing payment token that represents the card number.

Example: 11000383833939381111
exp-datestringRequired

Expire date of the card (MMYY).

Example: 0932
card-typestring · enumRequired

Type of payment card associated with the token.

Example: VISAPossible values:
last-four-digitsstringRequired

Last four digits of the card number associated with the token.

Example: 5678
descriptionstringOptional

Description of the customer's card to help identify the payment method.

Example: joint debit
defaultbooleanOptional

Indicates whether this card is the default payment method for the customer.

Example: true
avs-addressstringOptional

Street address used for Address Verification Service (AVS) validation for the payment card.

Example: 123 example street
avs-zipstringOptional

ZIP or postal code used for Address Verification Service (AVS) validation.

Example: 123445
Responses
chevron-right
200

ok

payload

payloadTypestringOptional

Type of payload returned in the response.

Example: customer-tokens
post
/rest/v2/customers/{customerKey}/tokens

Update a Token

put

Update the customer-key, status (ACTIVE, INACTIVE, or DELETED), or description of an existing payment token associated with the specified customer. To update other token details, you must delete the token and create a new one.

Path parameters
customerKeystringRequired

Unique identifier of the customer.

Header parameters
api-keystringRequired

An access API key issued to you by Xplor Pay.

Body

Represents a stored payment token for a customer.

customer-keystringRequired

Unique identifier of the customer to associate with the token.

Example: custID-dkke-8383-ek999
token-idstringRequired

Unique identifier of the existing payment token that represents the card number.

Example: 11000383833939381111
exp-datestringRequired

Expire date of the card (MMYY).

Example: 0932
card-typestring · enumRequired

Type of payment card associated with the token.

Example: VISAPossible values:
last-four-digitsstringRequired

Last four digits of the card number associated with the token.

Example: 5678
descriptionstringOptional

Description of the customer's card to help identify the payment method.

Example: joint debit
defaultbooleanOptional

Indicates whether this card is the default payment method for the customer.

Example: true
avs-addressstringOptional

Street address used for Address Verification Service (AVS) validation for the payment card.

Example: 123 example street
avs-zipstringOptional

ZIP or postal code used for Address Verification Service (AVS) validation.

Example: 123445
Responses
chevron-right
200

ok

payload

payloadTypestringOptional

Type of payload returned in the response.

Example: customer-tokens
put
/rest/v2/customers/{customerKey}/tokens

Last updated

Was this helpful?