---
title: Confirm that the payments are fully allocated to a transaction.
slug: fx-api/confirm-that-the-payments-are-fully-allocated-to-a-transaction
docTags: 
createdAt: 2025-05-30T02:39:22.452Z
---

{
  "id": "Tc0bo8JjxOl7cR0W8uZMp",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://sand-api.monoova.com/global/v1/transactions/{id}/confirm_payments",
    "servers": [
      {
        "url": "https://sand-api.monoova.com/global/v1/transactions/{id}/confirm_payments",
        "description": "Monoova Global server"
      }
    ],
    "name": "Confirm that the payments are fully allocated to a transaction.",
    "description": "<p>This confirms that all payments have been added to the transaction and the counter currency amount has been fully allocated to payments. Payments can no longer be edited after this, and the transaction receipt_amount and fees are now finalised.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "integer",
          "description": "Transaction ID"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "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": "4MHoSOyuNFagW2XwKgZ0K",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://sand-api.monoova.com/global/v1/transactions/{id}/confirm_payments \\\n     --header 'accept: application/json'"
        },
        {
          "id": "0Em49jLMTpXtmUSmbRlRW",
          "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/transactions/{id}/confirm_payments\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "nGo6qenYQU3tAOnMpJlVK",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://sand-api.monoova.com/global/v1/transactions/{id}/confirm_payments\")\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": "VUe2s9TaVEN6BFkG4SE3U",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://sand-api.monoova.com/global/v1/transactions/{id}/confirm_payments\"\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": "4MHoSOyuNFagW2XwKgZ0K"
    },
    "results": {
      "languages": [
        {
          "id": "VnxnySOyX2gK77vEopzyX",
          "language": "200",
          "code": "// A transaction.\n{\n  \"transaction\": {}\n}"
        }
      ],
      "selectedLanguageId": "VnxnySOyX2gK77vEopzyX"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}