---
title: Withdraw
slug: withdraw
docTags: 
createdAt: 2023-09-22T04:45:29.872Z
---

:::ApiMethodV2
```json
{
  "name": "Withdraw",
  "method": "POST",
  "url": "https://dashboard.devpaydocker.cloud/tokenReadfortest - Demo URL",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "BvDO5W1d2PXTDWHqpMk1v",
        "language": "json",
        "code": "{\n      \"share_public\": \"string\",\n      \"read_event\": \"string\",\n      \"source_id\": \"string\",\n      \"destination_id\": \"string\",\n      \"token_id\": \"string\",\n      \"transaction_id\": \"string\",\n      \"withdrawn_amount\": \"string\",\n      \"token_balance\": \"string\"\n}",
        "customLabel": ""
      },
      {
        "id": "vd75iqhDEHmkE3QgyfO1G",
        "language": "curl",
        "code": "curl --location --request GET '' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"share_public\":\"string\",\"read_event\":\"string\",\"source_id\":\"string\",\"destination_id\":\"string\",\"token_id\":\"string\",\"transaction_id\":\"string\",\"withdrawn_amount\":\"string\",\"token_balance\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "5ytMqVt0t2z2fHjFS2W5t",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': '',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"share_public\": \"string\",\n      \"read_event\": \"string\",\n      \"source_id\": \"string\",\n      \"destination_id\": \"string\",\n      \"token_id\": \"string\",\n      \"transaction_id\": \"string\",\n      \"withdrawn_amount\": \"string\",\n      \"token_balance\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "mCS4BE39ZzVHVMrwNshAD",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"share_public\": \"string\",\n   \"read_event\": \"string\",\n   \"source_id\": \"string\",\n   \"destination_id\": \"string\",\n   \"token_id\": \"string\",\n   \"transaction_id\": \"string\",\n   \"withdrawn_amount\": \"string\",\n   \"token_balance\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "wAWV8_gvTAJSi8ej9tVhr",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"\"\n\npayload = json.dumps({\n   \"share_public\": \"string\",\n   \"read_event\": \"string\",\n   \"source_id\": \"string\",\n   \"destination_id\": \"string\",\n   \"token_id\": \"string\",\n   \"transaction_id\": \"string\",\n   \"withdrawn_amount\": \"string\",\n   \"token_balance\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "7j0zdl8wlfKGJzY7p7O1b",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"share_public\": \"string\",\n   \"read_event\": \"string\",\n   \"source_id\": \"string\",\n   \"destination_id\": \"string\",\n   \"token_id\": \"string\",\n   \"transaction_id\": \"string\",\n   \"withdrawn_amount\": \"string\",\n   \"token_balance\": \"string\"\n})\n\nresponse = http.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "BvDO5W1d2PXTDWHqpMk1v"
  },
  "results": {
    "languages": [
      {
        "id": "GKQgMYcgadqgpuw0TmFw3",
        "language": "200",
        "customLabel": "",
        "code": "{\n   \"success\": true,\n   \"message\": \"Success\",\n}\n"
      },
      {
        "id": "XmlRwgRy4ppcEdHQCf6xX",
        "language": "413",
        "customLabel": "",
        "code": "{\n  \"success\": \"false\",\n  \"errors\": {\n    \"code\": \"413\",\n    \"message\": \"Destination ID Unknown\"\n  }\n}"
      },
      {
        "id": "XHYEh2SJ0RNubb5yckaXf",
        "language": "428",
        "code": "{\n  \"success\": \"false\",\n  \"errors\": {\n    \"code\": \"428\",\n    \"message\": \"Token ID doesn't match\"\n  }\n}",
        "customLabel": ""
      },
      {
        "id": "KCTtECnB_kTISzJV8cn5A",
        "language": "500",
        "code": "{\n  \"success\": \"false\",\n  \"errors\": {\n    \"code\": \"500\",\n    \"message\": \"internal Server Error\"\n  }\n}",
        "customLabel": ""
      },
      {
        "id": "saW_E_OrnI7-zIHaQbr4D",
        "language": "502",
        "code": "{\n  \"success\": \"false\",\n  \"errors\": {\n    \"code\": \"502\",\n    \"message\": \"Bad Gateway\"\n  }\n}",
        "customLabel": ""
      },
      {
        "id": "zMestYvki8JqoSIxcerTx",
        "language": "503",
        "code": "{\n  \"success\": \"false\",\n  \"errors\": {\n    \"code\": \"503\",\n    \"message\": \"Service Unavailable\"\n  }\n}",
        "customLabel": ""
      },
      {
        "id": "j51WnrxiKFNKjTjNdj6h_",
        "language": "504",
        "code": "{\n  \"success\": \"false\",\n  \"errors\": {\n    \"code\": \"504\",\n    \"message\": \"Gateway Timeout\"\n  }\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "j51WnrxiKFNKjTjNdj6h_"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "share_public",
        "kind": "required",
        "type": "string",
        "description": "Public keys are accessible in your PayDocker account under integration menu.",
        "children": []
      },
      {
        "name": "read_event",
        "kind": "required",
        "type": "string",
        "description": "A condition to allow execution of the action that is connected to the token. The condition would be \"token.withdrawn_created\".",
        "children": []
      },
      {
        "name": "source_id",
        "kind": "required",
        "type": "string",
        "description": "Your PayDocker Account ID assigned upon account creation (e.g. PDR1). It is case sensitive.",
        "children": []
      },
      {
        "name": "destination_id",
        "kind": "required",
        "type": "string",
        "description": "Property ID (e.g. ID 001) generated in your platform. It represents the token recipient.",
        "children": []
      },
      {
        "name": "token_id",
        "kind": "required",
        "type": "string",
        "description": "The unique identifier associated with the token that the user is requesting a modification for. (e.g. 2908926013012565)",
        "children": []
      },
      {
        "name": "transaction_id",
        "kind": "required",
        "type": "string",
        "description": "A unique identifier comprising of 20 digits generated by PayDocker upon a successful modification of token.",
        "children": []
      },
      {
        "name": "withdrawn_amount",
        "kind": "required",
        "type": "string",
        "description": "The sum subtracted by the partner from the currency balance, subjected to the maximum balance amount in the currency account. \n\nThe amount value supports up to twelve digits (e.g. a value of 9,999,999,999.99) divided by decimal.",
        "children": []
      },
      {
        "name": "token_balance",
        "kind": "required",
        "type": "string",
        "description": "The sum that is available in the token. ",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

