{"templateId":"markdown","versions":[{"version":"v3","label":"v3","link":"/products/tokens/query-and-update-tokens","default":true,"active":true,"folderId":"13618f6a"},{"version":"v2","label":"v2","link":"/products/tokens/v2/query-and-update-tokens","default":false,"active":false,"folderId":"13618f6a"},{"version":"v1","label":"v1","link":"/products/tokens/v1/query-and-update-tokens","default":false,"active":false,"folderId":"13618f6a"}],"sharedDataIds":{"sidebar":"sidebar-products/tokens/sidebars.yaml","current-catalog-info":"current-catalog-info-/products/tokens/openapi","api-docs-products/tokens/@v3/openapi.yaml":"api-docs-products/tokens/@v3/openapi.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","admonition","openapi-response-sample","cards","card","tabs","tab","openapi-code-sample"]},"custom_product":"Tokens","type":"markdown"},"seo":{"title":"Query and update tokens","description":"Worldpay for Developers - docs, code examples, resources and tools. Everything you need to build your omnichannel payment solution.","siteUrl":"https://docs.worldpay-bsh.securedataplatform.co.uk","image":"/access/assets/worldpay-logo-light.21b7daf79984773a9fcd7d4fbcb07ae5289dfffd6023c4c3dca720c7058e53dc.33f780a6.svg","keywords":"documentation, api, openapi, sdks, developer, payments, json, payouts, 3ds","jsonLd":{"@context":"https://schema.org","@type":"Organization","url":"https://docs.worldpay-bsh.securedataplatform.co.uk/access","name":"Worldpay"},"meta":[{"name":"google-site-verification","content":"zjziIKaP3ImsqsfhYnEBnq1R85UabiSwl7HTXuwtZuo"},{"name":"doc_product","content":"Access"},{"name":"doc_category","content":"Documentation"}],"llmstxt":{"hide":false,"sections":[{"title":"Payments API","description":"Payment orchestration API combining fraud assessment, 3ds authentication, SCA exemptions, Worldpay Token creation and a card or wallet based payment.","includeFiles":["products/payments/@20240601/**/*"]},{"title":"Payment Queries API","description":"Querying your payments data, based on a variety of parameters.","includeFiles":["products/payment-queries/@v1/**/*"]},{"title":"Card BIN Data API","description":"Provides detailed information about a card.","includeFiles":["products/card-bin/@v1/**/*"]},{"title":"3DS Authentication API","description":"Request 3DS authentication to protect against fraud, be SCA compliant and to shift liability using this standalone API.","includeFiles":["products/3ds/@v3/**/*"]},{"title":"FraudSight API","description":"Request a risk assessment and receive a response with an outcome (e.g. lowRisk) using this standalone API.","includeFiles":["products/fraudsight/@v1/**/*"]},{"title":"Checkout SDK","description":"Integrate using our clientside SDKs for both web and native devices. Benefit from SAQ-A/PCI-SSF compliance.","includeFiles":["products/checkout/web/@v2/**/*","products/checkout/ios/@v4/**/*","products/checkout/android/@v4/**/*","products/checkout/react-native/@v3/**/*","products/checkout/flutter/@v1/**/*"]},{"title":"Tokens API","description":"Minimizes the exposure of sensitive card details and increases the security of your customer's card details.","includeFiles":["products/tokens/@v3/**/*"]},{"title":"Card Payments API","description":"Request a card payment using this standalone API, requires separate requests for 3DS, Fraud assessment etc.","includeFiles":["products/card-payments/@v7/**/*"]},{"title":"Card Verifications API","description":"Verify your customer's card to maximize your authentication rates.","includeFiles":["products/card-verifications/@v6/**/*"]},{"title":"Account Payouts API","description":"Send funds to your customer's bank accounts and search for payouts using parameters.","includeFiles":["products/account-payouts/@20250101/**/*"]},{"title":"APMs","description":"Pay using eWallets, bank transfers, direct debits, local card schemes, Postpay and eInvoice/ Buy Now Pay Later.","includeFiles":["products/apms/@20240701/**/*"]},{"title":"Balance API","description":"Request your account details for a single account or all accounts under an entity.","includeFiles":["products/balance/@20250101/**/*"]},{"title":"Card Payouts API","description":"Send funds to your customer's cards.","includeFiles":["products/card-payouts/@v4/**/*"]},{"title":"Events (Webhooks)","description":"Receive status updates from Access Worldpay by setting up a webhook.","includeFiles":["products/events/@v1/**/*"]},{"title":"FX API","description":"Manage Foreign Exchange (FX) on your payments.","includeFiles":["products/fx/@v1/**/*"]},{"title":"Hosted Payment Pages (HPP) API","description":"Our low-code option to take payments securely at the lowest PCI compliance level - SAQ A.","includeFiles":["products/hosted-payment-pages/@v1/**/*"]},{"title":"Money Transfers API","description":"Money Transfer OCTs (Original Credit Transaction) allow funds to be pushed to an eligible card in 30 minutes or less.","includeFiles":["products/money-transfers/@v1/**/*"]},{"title":"Parties API","description":"Create parties, manage your payout instruments and beneficial owners and carry out identity verification checks.","includeFiles":["products/parties/@20250101/**/*"]},{"title":"SCA Exemptions API","description":"Maximize a frictionless checkout experience by using issuer data insights to apply exemptions.","includeFiles":["products/sca-exemptions/@v1/**/*"]},{"title":"Split Payments API","description":"Divide funds from a single payment amongst yourself and your parties/sellers.","includeFiles":["products/split-payments/@20250625/**/*"]},{"title":"Statements API","description":"Retrieve your account statement and see individual entries for all credits and debits.","includeFiles":["products/statements/@20250101/**/*"]},{"title":"Transfers API","description":"Transfer funds from source account to target account.","includeFiles":["products/transfers/@20250101/**/*"]},{"title":"Verified Tokens API","description":"Verified Tokens ensures that your customer's payment details are valid and CIT compliant when creating a token.","includeFiles":["products/verified-tokens/@v3/**/*"]}]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Last updated"]},": 28 August 2026 | ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/changelog/"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Change log"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"query-and-update-tokens","__idx":0},"children":["Query and update tokens"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Find and change the details of your customer's tokens."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"retrieve-token-details-using-the-token-href-link-data","__idx":1},"children":["Retrieve token details using the token href link data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To retrieve the data stored in a token, send a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," request to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:token"]}," request link returned in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#responses"},"children":["response"]}," of your ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#create-a-token-request"},"children":["create a token"]}," request."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do this if you want to display the tokenized card details to your customer on a payment page, or if you need the next available request links in order to update your customer's details."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the token is in a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]},", the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]}," attribute is also returned. To retrieve all tokens in the same ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]},", you must ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#retrieve-token-details-using-query-parameters"},"children":["retrieve the token details using query parameters"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["By default, all sensitive PCI details are masked in the response. If you wish the raw card details to be returned in the response, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/detokenize"},"children":["detokenize"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The default expiry date/time is 90 days in Try and 4 years in the Live environment.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"In Live, if the token is used in the second half of its life, the token expiry becomes 4 years from that point, with no limit to the number of extensions. In Try, expiry date extensions are not applicable. After the expiry passes, the token is deleted."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"request","__idx":2},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0NzI0NE1rdUtjMUFJdjYxVnlibWZuUT0ifQ"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No request body is needed for this request."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response","__idx":3},"children":["Response"]},{"$$mdtype":"Tag","name":"OpenApiResponseSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"getSecurityTokenByHref","exampleKey":"Retrieve details about a token","responseSamplesResolved":[{"lang":"json","title":"200 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"tokenPaymentInstrument\": {\n    \"type\": \"card/tokenized\",\n    \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0NzI0NE1rdUtjMUFJdjYxVnlibWZuUT0ifQ\"\n  },\n  \"tokenId\": \"9902480679618049603\",\n  \"description\": \"Test Token Description\",\n  \"tokenExpiryDateTime\": \"2030-06-24T09:19:35Z\",\n  \"paymentInstrument\": {\n    \"type\": \"card/masked\",\n    \"cardNumber\": \"4444********1111\",\n    \"cardHolderName\": \"Sherlock Holmes\",\n    \"cardExpiryDate\": {\n      \"month\": 5,\n      \"year\": 2035\n    },\n    \"billingAddress\": {\n      \"address1\": \"221B Baker Street\",\n      \"address2\": \"Marylebone\",\n      \"address3\": \"Westminster\",\n      \"postalCode\": \"NW1 6XE\",\n      \"city\": \"London\",\n      \"state\": \"Greater London\",\n      \"countryCode\": \"GB\"\n    },\n    \"bin\": \"444433\",\n    \"brand\": \"VISA\",\n    \"fundingType\": \"credit\"\n  },\n  \"_links\": {\n    \"tokens:token\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0NzI0NE1rdUtjMUFJdjYxVnlibWZuUT0ifQ\"\n    },\n    \"tokens:description\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0MWJVbkh1WTFGZExUNXJxc04va1ZoTFVzYW1OU1lxSFE2NHI1c2JkY1pWaSJ9\"\n    },\n    \"tokens:cardHolderName\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0d3ltd21ieGo3TlZLYzRYSkExOUhSdUpLN2N3VVc5WUk3czRUTW1RQ2JLdjFnVXlzakdPSXdWWkRhZkZyUmlMd3c9PSJ9\"\n    },\n    \"tokens:cardExpiryDate\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0d3ltd21ieGo3TlZLYzRYSkExOUhSdUpLN2N3VVc5WUk3czRUTW1RQ2JLdkVpVW5GNnBsZThNTXNQWTRGbzFzTXc9PSJ9\"\n    },\n    \"tokens:billingAddress\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0d3ltd21ieGo3TlZLYzRYSkExOUhSdFpSdXFxbWZlNVl1TkpHZEVvZXN3MTlCU0lmdCtxSTUyVDJSdXlmSTIwM3c9PSJ9\"\n    },\n    \"tokens:schemeTransactionReference\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiSENXWFZQZjNIZ1V3dnpDMElJZS9Zdmc4M0pYM3dDWEJTVnQrWVlacXdDUXFFKzhzaC8xNSs2d3NkTTdFWUFNVU9tdXBmUlZGeVNDY2dPMkhKV2NIcGc9PSJ9\"\n    },\n    \"curies\": [\n      {\n        \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/rels/tokens/{rel}.json\",\n        \"name\": \"tokens\",\n        \"templated\": true\n      }\n    ]\n  }\n}"},{"lang":"json","title":"404 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"resourceNotFound\",\n  \"message\": \"Requested resource was not found\"\n}"},{"lang":"json","title":"405 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"methodNotAllowed\",\n  \"message\": \"Requested method is not allowed\"\n}"},{"lang":"json","title":"500 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"tokenizationNotEnabled\",\n  \"message\": \"Tokenization not enabled\"\n}"}]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":3,"cardMinWidth":180},"children":[" ",{"$$mdtype":"Tag","name":"Card","attributes":{"title":"View the full API Response schema","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"center","variant":"outlined","to":"/products/tokens/openapi/token/getsecuritytokenbyhref#token/getsecuritytokenbyhref/response&c=200"},"children":[" "]}," "]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"retrieve-token-details-using-query-parameters","__idx":4},"children":["Retrieve token details using query parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Query the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:tokens"]}," request link from the tokens root resource."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["At least one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]}," must be provided."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Avoid using personally identifiable information (PII) as references. This prevents the logging of sensitive identifiers."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-1","__idx":5},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To look up an individual token created without a namespace, query by tokenId."," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens?tokenId=9902480679618049603"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the token was created with a namespace, both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]}," must be supplied in order to target a specific token."," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens?tokenId=9902480679618049603&namespace=my-namespace"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To look up all tokens created under a namespace, query by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]}," alone."," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens?namespace=my-namespace"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["9902480679618049603"]}," in the URL with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenId"]}," you're trying to query, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my-namespace"]}," by the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["namespace"]}," where applicable."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No request body is needed for this request."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-1","__idx":6},"children":["Response"]},{"$$mdtype":"Tag","name":"OpenApiResponseSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"querySecurityToken","exampleKey":"Retrieve details about a card token","responseSamplesResolved":[{"lang":"json","title":"200 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"_embedded\": {\n    \"tokens\": [\n      {\n        \"tokenPaymentInstrument\": {\n          \"type\": \"card/tokenized\",\n          \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQUjRyeUt6Z21BN3NxdDN6VEYxeWNieSJ9\"\n        },\n        \"tokenId\": \"9925760692793807595\",\n        \"description\": \"Test Token Description\",\n        \"tokenExpiryDateTime\": \"2026-09-02T14:37:06Z\",\n        \"paymentInstrument\": {\n          \"type\": \"card/masked\",\n          \"cardNumber\": \"4444********1111\",\n          \"cardHolderName\": \"Sherlock Holmes\",\n          \"cardExpiryDate\": {\n            \"month\": 5,\n            \"year\": 2037\n          },\n          \"billingAddress\": {\n            \"address1\": \"221B Baker Street\",\n            \"address2\": \"Marylebone\",\n            \"address3\": \"Westminster\",\n            \"postalCode\": \"NW1 6XE\",\n            \"city\": \"London\",\n            \"state\": \"Greater London\",\n            \"countryCode\": \"GB\"\n          },\n          \"bin\": \"444433\",\n          \"brand\": \"VISA\",\n          \"fundingType\": \"credit\"\n        },\n        \"_links\": {\n          \"tokens:token\": {\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQUjRyeUt6Z21BN3NxdDN6VEYxeWNieSJ9\"\n          },\n          \"tokens:description\": {\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQU0dMUkhEVmZ5bjg0VTVBVkVqTFFvcyJ9\"\n          },\n          \"tokens:cardHolderName\": {\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQVGp6RWVHOVkxUXpoMEdlMkR0ak9MeU5hRVBwbGlGeVJ1SmozZ2hta2ZFbEo3RnpSN2xPQ210elBIQkZBSzdiNHc9In0\"\n          },\n          \"tokens:cardExpiryDate\": {\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQVGp6RWVHOVkxUXpoMEdlMkR0ak9MeXMxVW4ySlIzUTZHclA1aVRDV3FRS3A3RnpSN2xPQ210elBIQkZBSzdiNHc9In0\"\n          },\n          \"tokens:billingAddress\": {\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQVGp6RWVHOVkxUXpoMEdlMkR0ak9MeU5aT3d3L1ZGcE1vVjBQL2t2eDBXYlhiQW8rR2RhcUxRdkhGZXJSMDBGRkU9In0\"\n          },\n          \"tokens:schemeTransactionReference\": {\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoiMmEySFRyUGdFQk9DQVBJWE9vZFQ2NEpJa08rK3hwYktyRnlBenpoWEpQU3Q1MlVockRlc2R5K1NKU1FBcUJhMzZjdHFSUklYNS9FWkYvbCtkay90WUE9PSJ9\"\n          }\n        }\n      }\n    ]\n  },\n  \"_links\": {\n    \"tokens:tokens\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens{?tokenId,namespace}\",\n      \"templated\": true\n    },\n    \"resourceTree\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/rels/tokens/resourceTree.json\"\n    },\n    \"curies\": [\n      {\n        \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/rels/tokens/{rel}.json\",\n        \"name\": \"tokens\",\n        \"templated\": true\n      }\n    ]\n  }\n}"},{"lang":"json","title":"405 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"methodNotAllowed\",\n  \"message\": \"Requested method is not allowed\"\n}"},{"lang":"json","title":"500 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"tokenizationNotEnabled\",\n  \"message\": \"Tokenization not enabled\"\n}"}]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":3,"cardMinWidth":180},"children":[" ",{"$$mdtype":"Tag","name":"Card","attributes":{"title":"View the full API Response schema","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"center","variant":"outlined","to":"/products/tokens/openapi/token/querysecuritytoken#token/querysecuritytoken/response&c=200"},"children":[" "]}," "]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"update-token-details","__idx":7},"children":["Update token details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To update the details in a token, send a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," request to one of the links returned in the response of your ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#create-a-token-request"},"children":["create a token"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-and-update-tokens#retrieve-token-details-using-the-token-href-link-data"},"children":["token href lookup"]}," or ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-and-update-tokens#retrieve-token-details-using-query-parameters"},"children":["token inquiry"]}," ","request."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can update:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the token description"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the cardholder name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the card expiry date"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the billing address"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the scheme transaction reference"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can only update one attribute at a time with a maximum of 50 updates in a rolling 30 day period."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Warning"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["cannot"]}," update the card number. Instead, you must send a new ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#create-a-token-request"},"children":["create a token"]}," request."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["cannot"]}," update card network type tokens."]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-2","__idx":8},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0MWJVbkh1WTFGZExUNXJxc04va1ZoTFVzYW1OU1lxSFE2NHI1c2JkY1pWaSJ9"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Update billing address","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update billing address."]},{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"updateSecurityToken","exampleKey":"Update billing address","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"address1\": \"1 Test Street\",\n  \"address2\": \"Address line 2\",\n  \"address3\": \"Address line 3\",\n  \"postalCode\": \"TE12 34ST\",\n  \"city\": \"Testville\",\n  \"state\": \"Testshire\",\n  \"countryCode\": \"TS\"\n}"},{"lang":"shell","title":"curl","source":"curl -i -X PUT \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d '{\n    \"address1\": \"1 Test Street\",\n    \"address2\": \"Address line 2\",\n    \"address3\": \"Address line 3\",\n    \"postalCode\": \"TE12 34ST\",\n    \"city\": \"Testville\",\n    \"state\": \"Testshire\",\n    \"countryCode\": \"TS\"\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nlink_data = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + link_data\n\npayload = '''\n  {\n    \"address1\": \"1 Test Street\",\n    \"address2\": \"Address line 2\",\n    \"address3\": \"Address line 3\",\n    \"postalCode\": \"TE12 34ST\",\n    \"city\": \"Testville\",\n    \"state\": \"Testshire\",\n    \"countryCode\": \"TS\"\n  }\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.put(url, data=payload, headers=headers)\n\nif response.status_code == 204:\n  print(\"success\")\nelse:\n  data = response.json()\n  print(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    var pathname = \"/tokens/%7BlinkData%7D\";\n    var request = HttpRequest.newBuilder()\n      .PUT(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const linkData = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ';\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/${linkData}`,\n    {\n      method: 'PUT',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `{\n          \"address1\": \"1 Test Street\",\n          \"address2\": \"Address line 2\",\n          \"address3\": \"Address line 3\",\n          \"postalCode\": \"TE12 34ST\",\n          \"city\": \"Testville\",\n          \"state\": \"Testshire\",\n          \"countryCode\": \"TS\"\n        }`\n    }\n  );\n\n  if (resp.status === 204) {\n    console.log('success');\n  } else {\n    const data = await resp.text();\n    console.log(data);\n  }\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  linkData := \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + linkData\n  payload := strings.NewReader(\"{\\n  \\\"address1\\\": \\\"1 Test Street\\\",\\n  \\\"address2\\\": \\\"Address line 2\\\",\\n  \\\"address3\\\": \\\"Address line 3\\\",\\n  \\\"postalCode\\\": \\\"TE12 34ST\\\",\\n  \\\"city\\\": \\\"Testville\\\",\\n  \\\"state\\\": \\\"Testshire\\\",\\n  \\\"countryCode\\\": \\\"TS\\\"\\n}\")\n  req, err := http.NewRequest(\"PUT\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\nconst linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/vnd.worldpay.tokens-v3.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"address1\\\": \\\"1 Test Street\\\",\\n  \\\"address2\\\": \\\"Address line 2\\\",\\n  \\\"address3\\\": \\\"Address line 3\\\",\\n  \\\"postalCode\\\": \\\"TE12 34ST\\\",\\n  \\\"city\\\": \\\"Testville\\\",\\n  \\\"state\\\": \\\"Testshire\\\",\\n  \\\"countryCode\\\": \\\"TS\\\"\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" . linkData,\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"PUT\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nlink_data = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ'\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/' + link_data)\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"{\\n  \\\"address1\\\": \\\"1 Test Street\\\",\\n  \\\"address2\\\": \\\"Address line 2\\\",\\n  \\\"address3\\\": \\\"Address line 3\\\",\\n  \\\"postalCode\\\": \\\"TE12 34ST\\\",\\n  \\\"city\\\": \\\"Testville\\\",\\n  \\\"state\\\": \\\"Testshire\\\",\\n  \\\"countryCode\\\": \\\"TS\\\"\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new();\n\n      var LinkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    using HttpResponseMessage request = await client.PutAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + LinkData, postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Update card expiry date","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update card expiry date."]},{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"updateSecurityToken","exampleKey":"Update card expiry date","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"month\": 1,\n  \"year\": 2035\n}"},{"lang":"shell","title":"curl","source":"curl -i -X PUT \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d '{\n    \"month\": 1,\n    \"year\": 2035\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nlink_data = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + link_data\n\npayload = '''\n  {\n    \"month\": 1,\n    \"year\": 2035\n  }\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.put(url, data=payload, headers=headers)\n\nif response.status_code == 204:\n  print(\"success\")\nelse:\n  data = response.json()\n  print(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    var pathname = \"/tokens/%7BlinkData%7D\";\n    var request = HttpRequest.newBuilder()\n      .PUT(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const linkData = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ';\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/${linkData}`,\n    {\n      method: 'PUT',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `{\n          \"month\": 1,\n          \"year\": 2035\n        }`\n    }\n  );\n\n  if (resp.status === 204) {\n    console.log('success');\n  } else {\n    const data = await resp.text();\n    console.log(data);\n  }\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  linkData := \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + linkData\n  payload := strings.NewReader(\"{\\n  \\\"month\\\": 1,\\n  \\\"year\\\": 2035\\n}\")\n  req, err := http.NewRequest(\"PUT\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\nconst linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/vnd.worldpay.tokens-v3.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"month\\\": 1,\\n  \\\"year\\\": 2035\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" . linkData,\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"PUT\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nlink_data = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ'\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/' + link_data)\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"{\\n  \\\"month\\\": 1,\\n  \\\"year\\\": 2035\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new();\n\n      var LinkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    using HttpResponseMessage request = await client.PutAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + LinkData, postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Update card holder name","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update card holder name."]},{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"updateSecurityToken","exampleKey":"Update card holder name","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"new name"},{"lang":"shell","title":"curl","source":"curl -i -X PUT \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d 'new name'"},{"lang":"python","title":"Python","source":"import requests\n\nlink_data = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + link_data\n\npayload = '''\n  new name\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.put(url, data=payload, headers=headers)\n\nif response.status_code == 204:\n  print(\"success\")\nelse:\n  data = response.json()\n  print(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    var pathname = \"/tokens/%7BlinkData%7D\";\n    var request = HttpRequest.newBuilder()\n      .PUT(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const linkData = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ';\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/${linkData}`,\n    {\n      method: 'PUT',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `new name`\n    }\n  );\n\n  if (resp.status === 204) {\n    console.log('success');\n  } else {\n    const data = await resp.text();\n    console.log(data);\n  }\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  linkData := \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + linkData\n  payload := strings.NewReader(\"new name\")\n  req, err := http.NewRequest(\"PUT\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\nconst linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/vnd.worldpay.tokens-v3.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"new name\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" . linkData,\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"PUT\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nlink_data = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ'\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/' + link_data)\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"new name\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new();\n\n      var LinkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    using HttpResponseMessage request = await client.PutAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + LinkData, postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Update token description","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update token description."]},{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"updateSecurityToken","exampleKey":"Update token description","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"new description"},{"lang":"shell","title":"curl","source":"curl -i -X PUT \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d 'new description'"},{"lang":"python","title":"Python","source":"import requests\n\nlink_data = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + link_data\n\npayload = '''\n  new description\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.put(url, data=payload, headers=headers)\n\nif response.status_code == 204:\n  print(\"success\")\nelse:\n  data = response.json()\n  print(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    var pathname = \"/tokens/%7BlinkData%7D\";\n    var request = HttpRequest.newBuilder()\n      .PUT(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const linkData = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ';\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/${linkData}`,\n    {\n      method: 'PUT',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `new description`\n    }\n  );\n\n  if (resp.status === 204) {\n    console.log('success');\n  } else {\n    const data = await resp.text();\n    console.log(data);\n  }\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  linkData := \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + linkData\n  payload := strings.NewReader(\"new description\")\n  req, err := http.NewRequest(\"PUT\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\nconst linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/vnd.worldpay.tokens-v3.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"new description\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" . linkData,\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"PUT\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nlink_data = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ'\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/' + link_data)\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"new description\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new();\n\n      var LinkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    using HttpResponseMessage request = await client.PutAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + LinkData, postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Update scheme transaction reference","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update scheme transaction reference."]},{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"updateSecurityToken","exampleKey":"Update scheme transaction reference","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"000000000000020005060720116005060"},{"lang":"shell","title":"curl","source":"curl -i -X PUT \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d 000000000000020005060720116005060"},{"lang":"python","title":"Python","source":"import requests\n\nlink_data = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + link_data\n\npayload = '''\n  000000000000020005060720116005060\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.put(url, data=payload, headers=headers)\n\nif response.status_code == 204:\n  print(\"success\")\nelse:\n  data = response.json()\n  print(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    var pathname = \"/tokens/%7BlinkData%7D\";\n    var request = HttpRequest.newBuilder()\n      .PUT(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const linkData = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ';\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/${linkData}`,\n    {\n      method: 'PUT',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `000000000000020005060720116005060`\n    }\n  );\n\n  if (resp.status === 204) {\n    console.log('success');\n  } else {\n    const data = await resp.text();\n    console.log(data);\n  }\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  linkData := \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + linkData\n  payload := strings.NewReader(\"000000000000020005060720116005060\")\n  req, err := http.NewRequest(\"PUT\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.tokens-v3.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\nconst linkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Content-Type: application/vnd.worldpay.tokens-v3.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"000000000000020005060720116005060\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" . linkData,\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"PUT\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nlink_data = 'eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ'\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/' + link_data)\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"000000000000020005060720116005060\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new();\n\n      var LinkData = \"eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\";\n    using HttpResponseMessage request = await client.PutAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/\" + LinkData, postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":3,"cardMinWidth":180},"children":[" ",{"$$mdtype":"Tag","name":"Card","attributes":{"title":"View the full API Request schema","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"center","variant":"outlined","to":"/products/tokens/openapi/token/updatesecuritytoken#token/updatesecuritytoken"},"children":[" "]}," "]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-2","__idx":9},"children":["Response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response status is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204 No Content"]}," for a successful update, or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]}," indicating too many updates within the period."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"delete-tokens","__idx":10},"children":["Delete tokens"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To delete a token, send a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]}," request to the token resource reference received in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenPaymentInstrument"]}," object in your create a token ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#responses"},"children":["response"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You might want to delete tokens if a customer has closed their account with you, or if the customer no longer wants their card details kept on file."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"request-3","__idx":11},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0NzI0NE1rdUtjMUFJdjYxVnlibWZuUT0ifQ"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No request body is needed for this request. You can delete tokens of all types."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-3","__idx":12},"children":["Response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response status is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204 No Content"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Warning"},"children":[" This action cannot be undone. Once we've received the request, the token is deleted."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"update-a-token-with-conflicts","__idx":13},"children":["Update a token with conflicts"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To resolve a token with a conflict, send a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," request with no request body to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:conflicts"]}," request link returned in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#responses"},"children":["conflict response"]}," when you ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/create-a-token#create-a-token-request"},"children":["created the token"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This request replaces all conflicting fields in the existing token with data from your initial token request."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Warning"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:conflicts"]}," request link is time-limited. Once it expires, it is no longer possible to use this link to update the original token."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["cannot"]}," update card network type tokens. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:conflicts"]}," action will not be provided for tokens of this type."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-4","__idx":14},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," request to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:conflicts"]}," link:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0ODUrN2hvZ0cyK1JvQ3JKdUtFZnU5UTFsdTdwODVHTUcwYy92VW02MDlJd2pHQllvcW0zanhWQ3p3Zk9OUW9CYUZtQ1hNbFhwM3lhSXlkYVlNYWJnQUdQUHFpRVAxVXVpZHM2Y2tvTjEvOGNJdFQ0WkVlVEJIVWF6T1dlWTlQMkpnPT0ifQ"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Reminder"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No request body is needed for this request."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"response-4","__idx":15},"children":["Response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response status is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["204 No Content"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}]},"headings":[{"value":"Query and update tokens","id":"query-and-update-tokens","depth":1},{"value":"Retrieve token details using the token href link data","id":"retrieve-token-details-using-the-token-href-link-data","depth":2},{"value":"Request","id":"request","depth":3},{"value":"Response","id":"response","depth":4},{"value":"Retrieve token details using query parameters","id":"retrieve-token-details-using-query-parameters","depth":2},{"value":"Request","id":"request-1","depth":4},{"value":"Response","id":"response-1","depth":4},{"value":"Update token details","id":"update-token-details","depth":2},{"value":"Request","id":"request-2","depth":4},{"value":"Response","id":"response-2","depth":4},{"value":"Delete tokens","id":"delete-tokens","depth":2},{"value":"Request","id":"request-3","depth":3},{"value":"Response","id":"response-3","depth":4},{"value":"Update a token with conflicts","id":"update-a-token-with-conflicts","depth":2},{"value":"Request","id":"request-4","depth":4},{"value":"Response","id":"response-4","depth":4}],"frontmatter":{"seo":{"title":"Query and update tokens"}},"lastModified":"2026-09-07T16:53:52.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/tokens/query-and-update-tokens","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}