A token representing a payment instrument.
- Get the actual network token using the network token reference
 
Tokens (3)
Minimize the exposure of sensitive card details and increase the security of your customer's card details.
Authentication header
  Authorization: {your_credentials}Replace {your_credentials} with your base64-encoded Basic Auth username and password given to you by your Implementation Manager. 
 
 You must use the Authorization header for any request you send to our Tokens API. 
 Accept & Content-Type headers
  Accept: application/vnd.worldpay.tokens-v3.hal+json
  Content-Type: application/vnd.worldpay.tokens-v3.hal+jsonWe use the Accept header to identify which version of our API you are using. You must use the Accept header for any request you send to our Tokens API. 
 We require the Content-Type header if the request you're sending includes a request body, and if the HTTP method is a POST or a PUT. 
 DNS whitelisting
Whitelist the following URLs:
https://try.access.worldpay.com/https://access.worldpay.com/
Please ensure you use DNS whitelisting, not explicit IP whitelisting. When you make a request within Access Worldpay, you should always cache the response returned.
- Test (Try)https://try.access.worldpay.com/tokens/network
 - Livehttps://access.worldpay.com/tokens/network
 
- Payload
 - curl
 - Python
 - Java
 - Node.js
 - Go
 - PHP
 - Ruby
 - C#
 
Request to provision a network token.
{ "paymentInstrument": { "cardHolderName": "name", "type": "card/front", "cardExpiryDate": { "month": 1, "year": 2050 }, "cardNumber": "4444333322221111" }, "merchant": { "entity": "default" } }
Request to provision a network token.
{ "tokenReference": "aa224320-425c-40b6-9781-2cb7df76b0c8", "paymentInstrument": { "type": "card/masked", "firstSix": "444433", "lastFour": "1111", "cardExpiryDate": { "month": 1, "year": 2050 }, "paymentAccountReference": "41111111111111111111111111111" }, "_links": { "self": { "href": "https://try.access.worldpay.com/tokens/network" }, "tokens:networkTokenLookup": { "href": "https://try.access.worldpay.com/tokens/network/aa224320-425c-40b6-9781-2cb7df76b0c8" }, "curies": [ { "href": "https://try.access.worldpay.com/rels/tokens/{rel}.json", "name": "tokens", "templated": true } ] } }
- Test (Try)https://try.access.worldpay.com/tokens/network/{id}
 - Livehttps://access.worldpay.com/tokens/network/{id}
 
- Payload
 - curl
 - Python
 - Java
 - Node.js
 - Go
 - PHP
 - Ruby
 - C#
 
No request payloadGet a network token after it has been provisioned.
{ "tokenPaymentInstrument": { "status": "Active", "type": "card/networkToken", "tokenNumber": "4111111111111111", "expiryDate": { "month": 12, "year": 2025 } }, "paymentInstrument": { "type": "card/masked", "firstSix": "411111", "lastFour": "1111", "cardExpiryDate": { "month": 12, "year": 2025 }, "paymentAccountReference": "41111111111111111111111111111" }, "_links": { "self": { "href": "https://try.access.worldpay.com/tokens/network/aa224320-425c-40b6-9781-2cb7df76b0c8" }, "tokens:networkTokenCryptogram": { "href": "https://try.access.worldpay.com/tokens/network/cryptograms" }, "curies": [ { "href": "https://try.access.worldpay.com/rels/tokens/{rel}.json", "name": "tokens", "templated": true } ] } }
- Test (Try)https://try.access.worldpay.com/tokens/network/{id}
 - Livehttps://access.worldpay.com/tokens/network/{id}
 
- Payload
 - curl
 - Python
 - Java
 - Node.js
 - Go
 - PHP
 - Ruby
 - C#
 
No request payload- Test (Try)https://try.access.worldpay.com/tokens/network/cryptograms
 - Livehttps://access.worldpay.com/tokens/network/cryptograms
 
- Payload
 - curl
 - Python
 - Java
 - Node.js
 - Go
 - PHP
 - Ruby
 - C#
 
Provision a cryptogram based on a network token
{ "tokenNumber": "4111111111111111" }
Provision a cryptogram based on a network token
{ "cryptogramDetails": { "cryptogram": "AgAAAAAASFh+gDRt/rq8QOkAAAA=", "eci": "07" }, "_links": { "self": { "href": "https://try.access.worldpay.com/tokens/network/cryptograms" }, "tokens:networkTokenLookup": { "href": "https://try.access.worldpay.com/tokens/network/{tokenReference}", "templated": true }, "curies": [ { "href": "https://try.access.worldpay.com/rels/tokens/{rel}.json", "name": "tokens", "templated": true } ] } }