---
title: Update a beneficiary payment.
slug: fx-api/update-a-beneficiary-payment
docTags: 
createdAt: 2025-05-30T02:39:22.452Z
---

{
  "id": "S849kLMoVSql6xSX7OA4w",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id}",
    "servers": [
      {
        "url": "https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id}",
        "description": "Monoova Global server"
      }
    ],
    "name": "Update a beneficiary payment.",
    "description": "This updates a beneficiary payment for a transaction where the payments are not yet confirmed.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "integer",
          "description": "Transaction ID"
        },
        {
          "kind": "required",
          "name": "payment_id",
          "type": "integer",
          "description": "Payment ID"
        }
      ],
      "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": "payment",
              "kind": "optional",
              "type": "object",
              "description": "",
              "modelRef": "#/components/schemas/PaymentRequest",
              "customType": "PaymentRequest",
              "schema": []
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "A payment.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "payment",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/Payment",
                "customType": "Payment",
                "schema": []
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "8ak2_TbHOCu3JEXtBqjfw",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "c-HL7YYer9So5AyoaS-gF",
          "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: 'PATCH',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "UjaUi02sBzAz24RMbY8yi",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Rz06YJg0R3WL53hZt6WVh",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "8ak2_TbHOCu3JEXtBqjfw"
    },
    "results": {
      "languages": [
        {
          "id": "ErUgdZEO8kRb3cWngTl7a",
          "language": "200",
          "code": "// A payment.\n{\n  \"payment\": {}\n}"
        }
      ],
      "selectedLanguageId": "ErUgdZEO8kRb3cWngTl7a"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}