A token representing a payment instrument.
GET
Retrieve the detail for this token.
Responses
Response schema
Copied!
{
"type": "object",
"properties": {
"tokenPaymentInstrument": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"href": {
"type": "string"
}
}
},
"tokenId": {
"type": "string",
"minLength": 15,
"maxLength": 21,
"pattern": "^[0-9A-HJ-NP-Z]+$"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[^&<]*$"
},
"tokenExpiryDateTime": {
"type": "string",
"format": "date-time"
},
"namespace": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"schemeTransactionReference": {
"type": "string",
"minLength": 1,
"maxLength": 56,
"pattern": "^[a-zA-Z0-9 ]*$"
},
"paymentInstrument": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"cardNumber": {
"type": "string",
"minLength": 10,
"maxLength": 19,
"pattern": "^[0-9\\*]*$"
},
"cardHolderName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"cardExpiryDate": {
"type": "object",
"properties": {
"month": {
"type": "integer",
"minimum": 1,
"maximum": 12
},
"year": {
"type": "integer",
"maximum": 9999
}
},
"required": [
"month",
"year"
]
},
"bin": {
"type": "string",
"minLength": 6,
"maxLength": 6,
"pattern": "\\d{6}"
},
"brand": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"fundingType": {
"type": "string",
"minLength": 5,
"maxLength": 7
},
"countryCode": {
"type": "string",
"minLength": 2,
"maxLength": 2
},
"billingAddress": {
"type": "object",
"properties": {
"address1": {
"type": "string"
},
"address2": {
"type": "string"
},
"address3": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"countryCode": {
"type": "string",
"pattern": "^[A-Z]*$",
"minLength": 2,
"maxLength": 2
}
},
"networkType": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"last4Digits": {
"type": "string",
"minLength": 4,
"maxLength": 4
},
"required": [
"address1",
"postalCode",
"city",
"countryCode"
]
}
},
"required": [
"cardNumber",
"cardExpiryDate"
]
},
"_links": {
"type": "object",
"format": "hal+json"
}
},
"required": [
"tokenPaymentInstrument",
"description",
"tokenExpiryDateTime",
"paymentInstrument",
"_links"
]
}
{ "type": "object", "properties": { "tokenPaymentInstrument": { "type": "object", "properties": { "type": { "type": "string" }, "href": { "type": "string" } } }, "tokenId": { "type": "string", "minLength": 15, "maxLength": 21, "pattern": "^[0-9A-HJ-NP-Z]+$" }, "description": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[^&<]*$" }, "tokenExpiryDateTime": { "type": "string", "format": "date-time" }, "namespace": { "type": "string", "minLength": 1, "maxLength": 64 }, "schemeTransactionReference": { "type": "string", "minLength": 1, "maxLength": 56, "pattern": "^[a-zA-Z0-9 ]*$" }, "paymentInstrument": { "type": "object", "properties": { "type": { "type": "string" }, "cardNumber": { "type": "string", "minLength": 10, "maxLength": 19, "pattern": "^[0-9\\*]*$" }, "cardHolderName": { "type": "string", "minLength": 1, "maxLength": 255 }, "cardExpiryDate": { "type": "object", "properties": { "month": { "type": "integer", "minimum": 1, "maximum": 12 }, "year": { "type": "integer", "maximum": 9999 } }, "required": [ "month", "year" ] }, "bin": { "type": "string", "minLength": 6, "maxLength": 6, "pattern": "\\d{6}" }, "brand": { "type": "string", "minLength": 1, "maxLength": 255 }, "fundingType": { "type": "string", "minLength": 5, "maxLength": 7 }, "countryCode": { "type": "string", "minLength": 2, "maxLength": 2 }, "billingAddress": { "type": "object", "properties": { "address1": { "type": "string" }, "address2": { "type": "string" }, "address3": { "type": "string" }, "postalCode": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" }, "countryCode": { "type": "string", "pattern": "^[A-Z]*$", "minLength": 2, "maxLength": 2 } }, "networkType": { "type": "string", "minLength": 1, "maxLength": 255 }, "last4Digits": { "type": "string", "minLength": 4, "maxLength": 4 }, "required": [ "address1", "postalCode", "city", "countryCode" ] } }, "required": [ "cardNumber", "cardExpiryDate" ] }, "_links": { "type": "object", "format": "hal+json" } }, "required": [ "tokenPaymentInstrument", "description", "tokenExpiryDateTime", "paymentInstrument", "_links" ] }
Link relationship
tokens:token
A token representing a payment instrument - this resource.
tokens:billingAddress
Update the billing address.
tokens:cardExpiryDate
Update the card expiry date.
tokens:cardHolderName
Update the card holder name.
tokens:description
Update the token description.
tokens:schemeTransactionReference
Update the scheme transaction reference.
tokens:conflicts
Update conflicts.
tokens:networkToken
Use an existing token to provision a network payment token.
Retrieve details about a token.
GEThttps://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ
Copied!
{
"Accept": "application/vnd.worldpay.tokens-v3.hal+json"
}
{ "Accept": "application/vnd.worldpay.tokens-v3.hal+json" }
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!
{
"tokenPaymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ"
},
"tokenId": "9925760692793807595",
"description": "Token Description",
"tokenExpiryDateTime": "2025-01-23T10:57:01Z",
"paymentInstrument": {
"type": "card/masked",
"cardNumber": "4444********1111",
"cardHolderName": "Card Holder Name",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"bin": "444433",
"brand": "VISA",
"fundingType": "credit",
"countryCode": "US",
"billingAddress": {
"address1": "Address 1",
"address2": "Address 2",
"address3": "Address 3",
"postalCode": "Postal Code",
"city": "City",
"state": "State",
"countryCode": "XX"
}
},
"_links": {
"tokens:token": {
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ"
},
"tokens:description": {
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXdW9oYzR3RUFEM2FCQnlaejhsZ1poTFVzYW1OU1lxSFE2NHI1c2JkY1pWaSJ9"
},
"tokens:cardHolderName": {
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXT0pLN2N3VVc5WUk3czRUTW1RQ2JLdjFnVXlzakdPSXdWWkRhZkZyUmlMd3c9PSJ9"
},
"tokens:cardExpiryDate": {
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXT0pLN2N3VVc5WUk3czRUTW1RQ2JLdkVpVW5GNnBsZThNTXNQWTRGbzFzTXc9PSJ9"
},
"tokens:billingAddress": {
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXTlpSdXFxbWZlNVl1TkpHZEVvZXN3MTlCU0lmdCtxSTUyVDJSdXlmSTIwM3c9PSJ9"
},
"tokens:schemeTransactionReference": {
"href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXTThZcVl5OWJFUHNnbzNpTHd1NlpJSTJxUUNRVXZybWJpRkdyQ0NNQ0g0ZlpsNlBnc1NkL0h5VkRCKyt0Ym9wMGs9In0"
},
"tokens:networkToken": {
"href": "https://try.access.worldpay.com/tokens/network"
},
"curies": [
{
"href": "https://try.access.worldpay.com/rels/tokens/{rel}.json",
"name": "tokens",
"templated": true
}
]
}
}
{ "tokenPaymentInstrument": { "type": "card/tokenized", "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ" }, "tokenId": "9925760692793807595", "description": "Token Description", "tokenExpiryDateTime": "2025-01-23T10:57:01Z", "paymentInstrument": { "type": "card/masked", "cardNumber": "4444********1111", "cardHolderName": "Card Holder Name", "cardExpiryDate": { "month": 5, "year": 2035 }, "bin": "444433", "brand": "VISA", "fundingType": "credit", "countryCode": "US", "billingAddress": { "address1": "Address 1", "address2": "Address 2", "address3": "Address 3", "postalCode": "Postal Code", "city": "City", "state": "State", "countryCode": "XX" } }, "_links": { "tokens:token": { "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ" }, "tokens:description": { "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXdW9oYzR3RUFEM2FCQnlaejhsZ1poTFVzYW1OU1lxSFE2NHI1c2JkY1pWaSJ9" }, "tokens:cardHolderName": { "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXT0pLN2N3VVc5WUk3czRUTW1RQ2JLdjFnVXlzakdPSXdWWkRhZkZyUmlMd3c9PSJ9" }, "tokens:cardExpiryDate": { "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXT0pLN2N3VVc5WUk3czRUTW1RQ2JLdkVpVW5GNnBsZThNTXNQWTRGbzFzTXc9PSJ9" }, "tokens:billingAddress": { "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXTlpSdXFxbWZlNVl1TkpHZEVvZXN3MTlCU0lmdCtxSTUyVDJSdXlmSTIwM3c9PSJ9" }, "tokens:schemeTransactionReference": { "href": "https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXc2w4WnRHSGdzblFZd2Y4ZU1hLzhXTThZcVl5OWJFUHNnbzNpTHd1NlpJSTJxUUNRVXZybWJpRkdyQ0NNQ0g0ZlpsNlBnc1NkL0h5VkRCKyt0Ym9wMGs9In0" }, "tokens:networkToken": { "href": "https://try.access.worldpay.com/tokens/network" }, "curies": [ { "href": "https://try.access.worldpay.com/rels/tokens/{rel}.json", "name": "tokens", "templated": true } ] } }