- Home
- All APIs
- Access Worldpay
- API reference
- Tokens
- Network Token
- Provision Cryptogram
Provision Cryptogram
Gets a cryptogram for short time use related to a network token.
Methods
POST
Provision a cryptogram for short time use based on a network token
Responses
Response schema
Copied!
{
"type": "object",
"properties": {
"cryptogramDetails": {
"type": "object",
"properties": {
"cryptogram": {
"type": "string"
},
"eci": {
"type": "string"
}
},
"required": [
"cryptogram",
"eci"
]
},
"_links": {
"type": "object",
"format": "hal+json"
}
},
"required": [
"cryptogramDetails",
"_links"
]
}
{ "type": "object", "properties": { "cryptogramDetails": { "type": "object", "properties": { "cryptogram": { "type": "string" }, "eci": { "type": "string" } }, "required": [ "cryptogram", "eci" ] }, "_links": { "type": "object", "format": "hal+json" } }, "required": [ "cryptogramDetails", "_links" ] }
Examples
Link relationship
tokens:networkTokenLookup
Returns the network token provisioned by networkToken if it is ready
Provision a cryptogram based on a network token
POSThttps://try.access.worldpay.com/tokens/network/cryptograms
Copied!
{
"Accept": "application/vnd.worldpay.tokens-v3.hal+json",
"Content-Type": "application/vnd.worldpay.tokens-v3.hal+json"
}
{ "Accept": "application/vnd.worldpay.tokens-v3.hal+json", "Content-Type": "application/vnd.worldpay.tokens-v3.hal+json" }
Copied!
{
"tokenNumber": "4111111111111111"
}
{ "tokenNumber": "4111111111111111" }
200
Copied!
{
"Content-Type": "application/vnd.worldpay.tokens-v3.hal+json;charset=UTF-8"
}
{ "Content-Type": "application/vnd.worldpay.tokens-v3.hal+json;charset=UTF-8" }
Copied!
{
"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
}
]
}
}
{ "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 } ] } }