On This Page
Retrieve a Payment Instrument
This section shows you how to retrieve a payment instrument token.
Endpoint
Test:
GET
https://apitest.cybersource.com
/tms/v1/paymentinstruments/{paymentInstrumentTokenId}
Production:
GET
https://api.cybersource.com
/tms/v1/paymentinstruments/{paymentInstrumentTokenId}
Production in India:
GET
https://api.in.cybersource.com
/tms/v1/paymentinstruments/{paymentInstrumentTokenId}
The is the payment instrument token ID you
want to retrieve. For more information, see Create a Payment Instrument.
{paymentInstrumentTokenId}
REST Example: Retrieving a Payment Instrument
Request
GEThttps://apitest.cybersource.com/tms/v1/paymentinstruments/F39763E8CFDF2354E053AF598E0AF684
Response to a Successful Request
{ "_links": { "self": { "href": "https://apitest.cybersource.comtms/v1/paymentinstruments/F39763E8CFDF2354E053AF598E0AF684" } }, "id": "F39763E8CFDF2354E053AF598E0AF684", "object": "paymentInstrument", "state": "ACTIVE", "card": { "expirationMonth": "12", "expirationYear": "2031", "type": "visa" }, "billTo": { "firstName": "John", "lastName": "Doe", "company": "Company Name", "address1": "1 Market St", "locality": "San Francisco", "administrativeArea": "CA", "postalCode": "94105", "country": "US", "email": "test@cybs.com", "phoneNumber": "4158880000" }, "metadata": { "creator": "testrest" }, "_embedded": { "instrumentIdentifier": { "_links": { "self": { "href": "https://apitest.cybersource.com/tms/v1/instrumentidentifiers/7010000000016241111" }, "paymentInstruments": { "href": "https://apitest.cybersource.comtms/v1/instrumentidentifiers/7010000000016241111/paymentinstruments" } }, "id": "7010000000016241111", "object": "instrumentIdentifier", "state": "ACTIVE", "card": { "number": "411111XXXXXX1111" }, "processingInformation": { "authorizationOptions": { "initiator": { "merchantInitiatedTransaction": { "previousTransactionId": "123456789619999" } } } }, "metadata": { "creator": "testrest" } } } }