Retrieve a Network Token for Payment Credentials
This section shows you how to retrieve a network token for payment credentials.
Endpoint
Test:
POST
https://apitest.cybersource.com
/tms/v2/tokens/{tokenId}/
payment-credentialsProduction:
POST
https://api.cybersource.com
/tms/v2/tokens/{tokenId}
/payment-credentialsProduction in India:
POST
https://api.in.cybersource.com
/tms/v2/tokens/{tokenId}
/payment-credentialsThe is the token ID returned in the
{tokenId}
id
field when you created the customer, payment instrument or
instrument identifier token. For more information, see Create an Instrument Identifier for more information.
REST Example: Retrieving a Network Token for Payment Credentials
Request
POSThttps://apitest.cybersource.com/tms/v2/tokens/7040000000001853257/payment-credentials
Response to a Successful Request: BASE 64
JraWQiOiI5OWY5YmVjOTlmMzQ1MDJmMDE2NWIyYmJhYWYyODAxNDNhOTI0OWNjIiwiY3R5IjoianNvbiIsInR5cCI6IkpXVCIsImVuYyI6IkEyNTZHQ00iLCJhbGciOiJSU0EtT0FFUC0yNTYifQ.uYCE2zysWJB8E562FGJl4YyotZEHw4Az-2fvhjaUWubuAZ2tmZm44oKUdsfsBLYWInxpMDUsiENTTHG_UJJ25Snhcft6eZGj79gW_S55ZAGAi1eYIJA08gr01U7P-1QIzQ5t6dlkTRZElYDiNjypSaVfQPQPODaGNfB04Li7Pt88i-PIspGafq9P7TgacPyKoIkvM5CwLWbwSZYN_jdFq8hEu4Dy7gqDpf0z-rCdtWggWpFbGwdurDrKCbLBoQ4dY7OckJoe2OOWH-O1h_7uZymDDUjnqWFRcHgjxY7bmWJz94i_r4QUaoTQiaaqgyP6A2H3Gmt6Dy4VpIzO2XgLQA._cLex9BPstYqqnfe.RMbdjAqWR6HaVZ7USbp6j-KWPC1jGc3Wzk4M_CwJ58X2NNZ5ekUpAvU28_MbqQ2W6MLhJ7ulgfU5mk9_Y5nvAW6Yh68Ctye2yOhgu_V_33aLmz3iZP5AEGi7HeJVng0hy4EaQHNb92XYXUV1mvFHJokA4cRaj3eKwh6v-1lRhB4uIgXU62ZanVGGu5c7UkVkf6JiigZarGJiY2DKCRjYnbQYkj4JNFY94JlS50wTnGrk3MiAJN9DYIU-6US98zWGJ8VhBwhMuXk1juqVBfifjJMFa_-vnJjGpq1ri2buZ7hMJG-x0PIYoHUGSFeqNrcLUjJxI0o8lnXfhj7DtfYvNc0e4g5U39xtk-T2TDnQfdekRVxgdxcVR4mZdEqUHBxYUWTSW4AbgV-fjuCGDCkUoPIgkZ95y4RJhSPZzjZHdulf2Fk3L7e-nto2PB25zUTt_aXeNBSH8zjmaI2ve6D3VN0ScduRMl_9PXv1876opHEGqgkKLSTXcTUasXKlzMEiUzLl3p5pN30KnVbryAzuU3hhmIMyyPpEQkp9h3WlD4sc5oH1E8YtihLlSTtTUNwX5dJuR6iVwpKqFxECqYPtDWlzXQDTedFqdTA4isE3MCs.th9qWPzsevuDYp--06oPOw
Response to a Successful Request: Decrypted
{ "_links": { "self": { "href": "/tms/v2/tokens/7040000000001853257/payment-credentials" } }, "tokenizedCard": { "state": "ACTIVE", "number": "504240750347XX2", "expirationMonth": "11", "expirationYear": "2024", "type": "mastercard", "cryptogram": "AGMkrO22Drk4AAdiUWJoAAADFA==", "requestorId": "50162233570", "card": { "suffix": "3257", "expirationMonth": "09", "expirationYear": "2023" } }, "card": { "number": "520424XXXXXX3257" }, "issuer": { "paymentAccountReference": "500194XI39I8V2596QWVQSG0JQFSE" } }
For more information on decrypting data, see Encrypt and Decrypt Data.