---
title: Create a withdrawal from the customer's account.
slug: fx-api/create-a-withdrawal-from-the-customers-account
docTags: 
createdAt: 2025-05-30T02:39:22.452Z
---

{
  "id": "A85bRu8LIVLqKiRtM-2NV",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://sand-api.monoova.com/global/v1/withdrawals",
    "servers": [
      {
        "url": "https://sand-api.monoova.com/global/v1/withdrawals",
        "description": "Monoova Global server"
      }
    ],
    "name": "Create a withdrawal from the customer's account.",
    "description": "<p>The customer must have sufficient available funds to complete the withdrawal. - The withdrawal status will be open until confirmed, after which it\nwill be updated to settled.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "transaction",
              "kind": "optional",
              "type": "object",
              "description": "",
              "example": "",
              "schema": [
                {
                  "name": "user_id",
                  "kind": "optional",
                  "type": "integer",
                  "description": "<p>Used in the back_office scope</p>"
                },
                {
                  "name": "beneficiary_id",
                  "kind": "optional",
                  "type": "integer",
                  "description": ""
                },
                {
                  "name": "payment_reference",
                  "kind": "optional",
                  "type": "string",
                  "description": ""
                },
                {
                  "name": "transaction_reason_id",
                  "kind": "optional",
                  "type": "integer",
                  "description": ""
                },
                {
                  "name": "transaction_reason_name",
                  "kind": "optional",
                  "type": "string",
                  "description": ""
                },
                {
                  "name": "transaction_reason_other",
                  "kind": "optional",
                  "type": "string",
                  "description": "Required if using the 'Other' transaction reason"
                },
                {
                  "name": "payment_type",
                  "kind": "optional",
                  "type": "string",
                  "description": ""
                },
                {
                  "name": "amount",
                  "kind": "optional",
                  "type": "number<double>",
                  "description": "",
                  "format": "double"
                }
              ]
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "A transaction.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "transaction",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/Transaction",
                "customType": "Transaction",
                "schema": []
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "EyzDhus4ksR06OuhDoqlx",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://sand-api.monoova.com/global/v1/withdrawals \\\n     --header 'accept: application/json'"
        },
        {
          "id": "ADIRzDWIIwOyYgCQtoqui",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://sand-api.monoova.com/global/v1/withdrawals\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "P_jHaMd_aIIQ4IVKN6FQy",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://sand-api.monoova.com/global/v1/withdrawals\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "g17R2M_fiDzRoWKCWWUqZ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://sand-api.monoova.com/global/v1/withdrawals\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "EyzDhus4ksR06OuhDoqlx"
    },
    "results": {
      "languages": [
        {
          "id": "j_rGwMLMtLBl3TNwlCTRf",
          "language": "200",
          "code": "// A transaction.\n{\n  \"transaction\": {}\n}"
        }
      ],
      "selectedLanguageId": "j_rGwMLMtLBl3TNwlCTRf"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}