{"templateId":"markdown","versions":[{"version":"v3","label":"v3","link":"/products/tokens/create-a-network-token","default":true,"active":true,"folderId":"13618f6a"},{"version":"v2","label":"v2","link":"/products/tokens/v2/create-a-network-token","default":false,"active":false,"folderId":"13618f6a"},{"version":"v1","label":"v1","link":"/products/tokens/v1/create-a-network-token","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","tabs","tab","openapi-code-sample","cards","card","openapi-response-sample"]},"custom_product":"Tokens","type":"markdown"},"seo":{"title":"Create a network token","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":"create-a-network-token","__idx":0},"children":["Create a network token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a network token via card schemes to replace your customer's sensitive card information. Use network tokens to improve payment authorization rates, gain built-in account updater and minimize fraud."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Supported schemes: Visa, Mastercard, American Express and Discover"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-a-network-token-request","__idx":1},"children":["Create a network token request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To create a network token:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," your request to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokens:networkToken"]}," request link."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-a-network-token-example-request","__idx":2},"children":["Create a network token example request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},"  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Network token creation request body:"," ","--"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Card","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a network token from a card. ",{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"provisionNetworkToken","exampleKey":"Request to provision a network token","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"paymentInstrument\": {\n    \"cardHolderName\": \"Sherlock Holmes\",\n    \"type\": \"card/front\",\n    \"cardExpiryDate\": {\n      \"month\": 1,\n      \"year\": 2035\n    },\n    \"cardNumber\": \"4444333322221111\"\n  },\n  \"merchant\": {\n    \"entity\": \"default\"\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d '{\n    \"paymentInstrument\": {\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"type\": \"card/front\",\n      \"cardExpiryDate\": {\n        \"month\": 1,\n        \"year\": 2035\n      },\n      \"cardNumber\": \"4444333322221111\"\n    },\n    \"merchant\": {\n      \"entity\": \"default\"\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\"\n\npayload = '''\n  {\n    \"paymentInstrument\": {\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"type\": \"card/front\",\n      \"cardExpiryDate\": {\n        \"month\": 1,\n        \"year\": 2035\n      },\n      \"cardNumber\": \"4444333322221111\"\n    },\n    \"merchant\": {\n      \"entity\": \"default\"\n    }\n  }\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(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 pathname = \"/tokens/network\";\n    var request = HttpRequest.newBuilder()\n      .POST(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 resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `{\n          \"paymentInstrument\": {\n            \"cardHolderName\": \"Sherlock Holmes\",\n            \"type\": \"card/front\",\n            \"cardExpiryDate\": {\n              \"month\": 1,\n              \"year\": 2035\n            },\n            \"cardNumber\": \"4444333322221111\"\n          },\n          \"merchant\": {\n            \"entity\": \"default\"\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\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  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\"\n  payload := strings.NewReader(\"{\\n  \\\"paymentInstrument\\\": {\\n    \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n    \\\"type\\\": \\\"card/front\\\",\\n    \\\"cardExpiryDate\\\": {\\n      \\\"month\\\": 1,\\n      \\\"year\\\": 2035\\n    },\\n    \\\"cardNumber\\\": \\\"4444333322221111\\\"\\n  },\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", 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\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  \\\"paymentInstrument\\\": {\\n    \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n    \\\"type\\\": \\\"card/front\\\",\\n    \\\"cardExpiryDate\\\": {\\n      \\\"month\\\": 1,\\n      \\\"year\\\": 2035\\n    },\\n    \\\"cardNumber\\\": \\\"4444333322221111\\\"\\n  },\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\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\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"{\\n  \\\"paymentInstrument\\\": {\\n    \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n    \\\"type\\\": \\\"card/front\\\",\\n    \\\"cardExpiryDate\\\": {\\n      \\\"month\\\": 1,\\n      \\\"year\\\": 2035\\n    },\\n    \\\"cardNumber\\\": \\\"4444333322221111\\\"\\n  },\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  }\\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    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Token","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a network token from a card token. ",{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"provisionNetworkToken","exampleKey":"Request to turn an access token into a network token","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"paymentInstrument\": {\n    \"type\": \"card/tokenized\",\n    \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network \\\n  -H 'Content-Type: application/vnd.worldpay.tokens-v3.hal+json' \\\n  -d '{\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/tokenized\",\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\"\n\npayload = '''\n  {\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"paymentInstrument\": {\n      \"type\": \"card/tokenized\",\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\n    }\n  }\n'''\n\nheaders = {\"Content-Type\": \"application/vnd.worldpay.tokens-v3.hal+json\"}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(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 pathname = \"/tokens/network\";\n    var request = HttpRequest.newBuilder()\n      .POST(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 resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.tokens-v3.hal+json'\n      },\n      body: `{\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"paymentInstrument\": {\n            \"type\": \"card/tokenized\",\n            \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\"\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\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  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\"\n  payload := strings.NewReader(\"{\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"paymentInstrument\\\": {\\n    \\\"type\\\": \\\"card/tokenized\\\",\\n    \\\"href\\\": \\\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\\\"\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", 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\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  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"paymentInstrument\\\": {\\n    \\\"type\\\": \\\"card/tokenized\\\",\\n    \\\"href\\\": \\\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\\\"\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\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\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.tokens-v3.hal+json'\nrequest.body = \"{\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"paymentInstrument\\\": {\\n    \\\"type\\\": \\\"card/tokenized\\\",\\n    \\\"href\\\": \\\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/eyJrIjoxLCJkIjoia0gvT2xpdDV3WnpOZG1GTWpwemtXckVkRHdJSjFNQzR5VkE5NHhYUldzYz0ifQ\\\"\\n  }\\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    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\", 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/network-token/provisionnetworktoken"},"children":[" "]}," "]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"responses","__idx":3},"children":["Responses"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The majority of network token requests will include the network token in the response."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["an HTTP code ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenReference"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenPaymentInstrument"]}," object which contains network ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tokenNumber"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["links to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-network-tokens-and-provision-cryptograms#network-token-inquiry"},"children":["query a network token"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-network-tokens-and-provision-cryptograms#provision-network-token-cryptograms"},"children":["provision a network token cryptogram"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Where the request is not successful due to provisioning errors, we return an HTTP code ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}," and further details. For more information about provisioning errors, please see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/network-token-errors"},"children":["Network token error responses"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example-responses","__idx":4},"children":["Example responses"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once you've sent your create network token request, one of the following example responses is returned:"]},{"$$mdtype":"Tag","name":"OpenApiResponseSample","attributes":{"descriptionFile":"api-docs-products/tokens/@v3/openapi.yaml","operationId":"provisionNetworkToken","exampleKey":"The network token is ready","responseSamplesResolved":[{"lang":"json","title":"200 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"tokenReference\": \"aa224320-425c-40b6-9781-2cb7df76b0c8\",\n  \"tokenPaymentInstrument\": {\n    \"status\": \"Active\",\n    \"type\": \"card/networkToken\",\n    \"tokenNumber\": \"4917610000000000\",\n    \"expiryDate\": {\n      \"month\": 3,\n      \"year\": 2030\n    }\n  },\n  \"paymentInstrument\": {\n    \"type\": \"card/masked\",\n    \"firstSix\": \"444433\",\n    \"lastFour\": \"1111\",\n    \"cardExpiryDate\": {\n      \"month\": 1,\n      \"year\": 2030\n    },\n    \"paymentAccountReference\": \"Q1HJZ28RKA1EBL470G9XYG90R5D3E\"\n  },\n  \"_links\": {\n    \"self\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network\"\n    },\n    \"tokens:networkTokenLookup\": {\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/network/aa224320-425c-40b6-9781-2cb7df76b0c8\"\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":"400 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"bodyDoesNotMatchSchema\",\n  \"message\": \"The json body provided does not match the expected schema\",\n  \"validationErrors\": [\n    {\n      \"errorName\": \"fieldIsMissing\",\n      \"message\": \"Card holder name must be supplied\",\n      \"jsonPath\": \"$.paymentInstrument.cardHolderName\"\n    }\n  ]\n}"},{"lang":"json","title":"401 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"accessDenied\",\n  \"message\": \"Access to the requested resource has been denied\"\n}"},{"lang":"json","title":"403 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"nptConfigurationError\",\n  \"message\": \"Account not configured to use NPT\"\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":"500 application/vnd.worldpay.tokens-v3.hal+json","source":"{\n  \"errorName\": \"internalErrorOccurred\",\n  \"message\": \"Internal server error\"\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/network-token/provisionnetworktoken#network-token/provisionnetworktoken/response&c=200"},"children":[" "]}," "]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next steps"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-network-tokens-and-provision-cryptograms#network-token-inquiry"},"children":["Query a network token"]}," or ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-network-tokens-and-provision-cryptograms#provision-network-token-cryptograms"},"children":["Provision a network token cryptogram"]}," or ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/tokens/query-network-tokens-and-provision-cryptograms#delete-network-tokens"},"children":["Delete a network token"]}]}]},"headings":[{"value":"Create a network token","id":"create-a-network-token","depth":1},{"value":"Create a network token request","id":"create-a-network-token-request","depth":2},{"value":"Create a network token example request","id":"create-a-network-token-example-request","depth":3},{"value":"Responses","id":"responses","depth":3},{"value":"Example responses","id":"example-responses","depth":4}],"frontmatter":{"seo":{"title":"Create a network token"}},"lastModified":"2026-09-09T10:35:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/tokens/create-a-network-token","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}