Provision a Network Token for a Card Number
This section shows you how to provision a network token for a card number.
Network tokens that are provisioned by
TMS
are card-on-file (COF) tokens.Endpoint
Test:
POST
https://apitest.cybersource.com
/tms/v1/instrumentidentifiersProduction:
POST
https://api.cybersource.com
/tms/v1/instrumentidentifiersProduction in India:
POST
https://api.in.cybersource.com
/tms/v1/instrumentidentifiersRequired Fields for Provisioning a Network Token for a Card Number
- card.number
- card.expirationMonth
- card.expirationYear
- type
Related Information
Optional Fields for Provisioning a Network Token for a Card Number
- card.securityCode
Related Information
REST Example: Provisioning a Network Token for a Card
Number
Request
{ "type": "enrollable card", "card": { "number": "4895379987X11515", "expirationMonth": "12", "expirationYear": "2031", "securityCode": "089" } }
Response to a Successful Request
{ "_links": { "self": { "href": "https://apitest.cybersource.com/tms/v1/instrumentidentifiers/7030000000014911515" }, "paymentInstruments": { "href": "https://apitest.cybersource.com/tms/v1/instrumentidentifiers/7030000000014911515/paymentinstruments" } }, "id": "7030000000014911515", "object": "instrumentIdentifier", "state": "ACTIVE", "tokenizedCard": { "state": "ACTIVE", "number": "489537XXXXXX5914", "expirationMonth": "12", "expirationYear": "2022", "type": "visa", "card": { "suffix": "1515", "expirationMonth": "12", "expirationYear": "2031" } }, "card": { "number": "489537XXXXXX1515" }, "issuer": { "paymentAccountReference": "V0010013019326121174070050420" }, "metadata": { "creator": "testrest" } }