---
title: Retrieve a beneficiary payment for a transaction.
slug: fx-api/retrieve-a-beneficiary-payment-for-a-transaction
docTags: 
createdAt: 2025-05-30T02:39:22.452Z
---

{
  "id": "jcBWBALmCOXJNJV89YVCw",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "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": "Retrieve a beneficiary payment for a transaction.",
    "description": "",
    "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": [],
      "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": "wiwsLRqMMr1DZ1EcGjqx4",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://sand-api.monoova.com/global/v1/transactions/{id}/payments/{payment_id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "Pq1ENozYf1Ti1Wvn8CJT4",
          "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: 'GET',\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": "k5923OlgknL30lpH6fSYs",
          "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::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "pJ0RW_SGYNAmjESkVRN0Y",
          "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(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "wiwsLRqMMr1DZ1EcGjqx4"
    },
    "results": {
      "languages": [
        {
          "id": "r7E6PtD6PPYAy5Cm9IV0S",
          "language": "200",
          "code": "// A payment.\n{\n  \"payment\": {}\n}"
        }
      ],
      "selectedLanguageId": "r7E6PtD6PPYAy5Cm9IV0S"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}