Retrieve Token

Retrieve card details by card id

GET https://<PayEngine-host>/api/cards/:id

Path Parameters

Name
Type
Description

id*

string

PayEngine card unique ID

Field name
Type
Description
Required?

id

string

Card token ID

Required

merchant_id

string

Merchant ID

Required

name

string

Name associated with this card

Required

email

string

Email address associated with this card

Optional

exp_month

integer

Expiration month

Required

exp_year

integer

Expiration year

Required

last_4

integer

Last four digit of the card

Required

address_line1

string

Address line 1 associated with Cardholder's billing address

Optional

address_line2

string

Address line 2 associated with Cardholder's billing address

Optional

address_city

string

City associated with Cardholder's billing address

Optional

address_state

string

State associated with Cardholder's billing address

Optional

address_zip

string

Zip code associated with the card

Optional

address_country

string

Country associated with Cardholder's billing address

Optional

brand

string

Card brand

Required

country

string

Country where card issued

Required

type

string

Type of card - Credit | Debit | Gift | Prepaid

Required

expires_at

string

Card token expiration timestamp

Optional

token

string

Card token that is used for making payments

Required

surcharge_allowed

boolean

True | False. True if the surcharge is allowed for the card

Required

phone_number.cc

string

Cardholder Phone Country Code

Optional

phone_number.subscriber

string

Cardholder Phone Number

Optional

card_updater

object

Card updater information details only when card account updater is enabled

Optional

card_updater.status

string

Values - enrolled | closed Required if the card_updater object is present

Required

card_updater.type

string

Values - updated, expired, closed, no_participating, contact_cardholder_advice, unknown, opt_out, enrolled Required if the card_updater object is present

Required

card_updater.enrolled_at

string

Timestamp indicating when the card was enrolled in the Card Account Updater service. Required if the card_updater object is present Note: This date is not the same as the token creation date

Required

card_updater.updated_at

string

Timestamp indicating when the last update was received. Required if the card_updater object is present

Required

curl --location --request GET 'http://<PayEngine-host>/api/cards/1d15778a-64fb-459b-8c19-e8b5da0a9af9' \
--header 'Authorization: Basic <YOUR_API_SECRET>'

Last updated