Customer Token
Retrieve the payment token associated with the customer identified by the specified customer key.
Unique identifier of the customer.
An access API key issued to you by Xplor Pay.
ok
payload
Type of payload returned in the response.
customer-tokensUnauthorized
Forbidden
Not Found
GET /rest/v2/customers/{customerKey}/tokens HTTP/1.1
api-key: text
Accept: */*
{
"customer-tokens": {
"token": [
{
"customer-key": "custID-dkke-8383-ek999",
"token-id": "11000383833939381111",
"exp-date": "0932",
"card-type": "VISA",
"last-four-digits": "5678",
"description": "joint debit",
"default": true,
"avs-address": "123 example street",
"avs-zip": "123445"
}
]
},
"payloadType": "customer-tokens"
}Add an existing payment token to the customer identified by the specified customer key.
Unique identifier of the customer.
An access API key issued to you by Xplor Pay.
Represents a stored payment token for a customer.
Unique identifier of the customer to associate with the token.
custID-dkke-8383-ek999Unique identifier of the existing payment token that represents the card number.
11000383833939381111Expire date of the card (MMYY).
0932Type of payment card associated with the token.
VISAPossible values: Last four digits of the card number associated with the token.
5678Description of the customer's card to help identify the payment method.
joint debitIndicates whether this card is the default payment method for the customer.
trueStreet address used for Address Verification Service (AVS) validation for the payment card.
123 example streetZIP or postal code used for Address Verification Service (AVS) validation.
123445ok
payload
Type of payload returned in the response.
customer-tokensUnauthorized
Forbidden
Not Found
POST /rest/v2/customers/{customerKey}/tokens HTTP/1.1
api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"customer-key": "custID-dkke-8383-ek999",
"token-id": "11000383833939381111",
"exp-date": "0932",
"card-type": "VISA",
"last-four-digits": "5678",
"description": "joint debit",
"default": true,
"avs-address": "123 example street",
"avs-zip": "123445"
}{
"customer-tokens": {
"token": [
{
"customer-key": "custID-dkke-8383-ek999",
"token-id": "11000383833939381111",
"exp-date": "0932",
"card-type": "VISA",
"last-four-digits": "5678",
"description": "joint debit",
"default": true,
"avs-address": "123 example street",
"avs-zip": "123445"
}
]
},
"payloadType": "customer-tokens"
}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.
Unique identifier of the customer.
An access API key issued to you by Xplor Pay.
Represents a stored payment token for a customer.
Unique identifier of the customer to associate with the token.
custID-dkke-8383-ek999Unique identifier of the existing payment token that represents the card number.
11000383833939381111Expire date of the card (MMYY).
0932Type of payment card associated with the token.
VISAPossible values: Last four digits of the card number associated with the token.
5678Description of the customer's card to help identify the payment method.
joint debitIndicates whether this card is the default payment method for the customer.
trueStreet address used for Address Verification Service (AVS) validation for the payment card.
123 example streetZIP or postal code used for Address Verification Service (AVS) validation.
123445ok
payload
Type of payload returned in the response.
customer-tokensUnauthorized
Forbidden
Not Found
PUT /rest/v2/customers/{customerKey}/tokens HTTP/1.1
api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"customer-key": "custID-dkke-8383-ek999",
"token-id": "11000383833939381111",
"exp-date": "0932",
"card-type": "VISA",
"last-four-digits": "5678",
"description": "joint debit",
"default": true,
"avs-address": "123 example street",
"avs-zip": "123445"
}{
"customer-tokens": {
"token": [
{
"customer-key": "custID-dkke-8383-ek999",
"token-id": "11000383833939381111",
"exp-date": "0932",
"card-type": "VISA",
"last-four-digits": "5678",
"description": "joint debit",
"default": true,
"avs-address": "123 example street",
"avs-zip": "123445"
}
]
},
"payloadType": "customer-tokens"
}Last updated
Was this helpful?

