Recurring Payments Service Customer Token

Customer Token Controller

Get Tokens for a Customer

get
Path parameters
customerKeyanyRequired

customerKey

Header parameters
api-keyanyRequired

api-key-value

Responses
200

OK

get
/rest/v2/customers/{customerKey}/tokens

Add an existing token to a customer

post

Plan must have a customer-key from a previously related customer. Use url https://gateway-sb.clearent.net/rest/v2/tokens You can POST application/xml or application/json to the service. Make sure you include a valid api-key in the header.

Path parameters
customerKeyanyRequired

customerKey

Header parameters
api-keyanyRequired

api-key-value

Body
avs-addressstringOptional

Street address associated with the card

Example: 123 example street
avs-zipstringOptional

zip code of street address assoicated with the card

Example: 123445
card-typestring · enumRequired

Type of card

Example: VISAPossible values:
customer-keystringRequired

Customer Identifier

Example: custID-dkke-8383-ek999
defaultbooleanOptional

true if this is the default card for the customer

Example: true
descriptionstringOptional

description of card

Example: joint debit
exp-datestringRequired

Expire date of the card

Example: 0932
last-four-digitsstringRequired

last 4 digits of card number

Example: 5678
token-idstringRequired

Token that represents to card number

Example: 11000383833939380000
Responses
200

OK

post
/rest/v2/customers/{customerKey}/tokens

Update a Token

put

You can do an HTTP PUT on the field you want to modify. There are only 3 modifiable fields on a token; customer-key, status (ACTIVE, INACTIVE, DELETED), description. Anything else you want to modify with a token, you will need to delete and re-add. First, you will need to add the token-id, that was returned on the creation of the token, to the end of the URL: https://gateway-sb.clearent.net/rest/v2/tokens/TOKEN-ID-HERE

Path parameters
customerKeyanyRequired

customerKey

Header parameters
api-keyanyRequired

api-key-value

Body
avs-addressstringOptional

Street address associated with the card

Example: 123 example street
avs-zipstringOptional

zip code of street address assoicated with the card

Example: 123445
card-typestring · enumRequired

Type of card

Example: VISAPossible values:
customer-keystringRequired

Customer Identifier

Example: custID-dkke-8383-ek999
defaultbooleanOptional

true if this is the default card for the customer

Example: true
descriptionstringOptional

description of card

Example: joint debit
exp-datestringRequired

Expire date of the card

Example: 0932
last-four-digitsstringRequired

last 4 digits of card number

Example: 5678
token-idstringRequired

Token that represents to card number

Example: 11000383833939380000
Responses
200

OK

put
/rest/v2/customers/{customerKey}/tokens

Last updated

Was this helpful?