---
title: Query the account details
slug: amberflo-api/query-the-account-details
docTags: 
createdAt: 2024-11-07T15:10:16.978Z
---

{
  "id": "2R3NP8SMNBsapj3aEzWLv",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/payments/account/settings",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/account/settings"
      }
    ],
    "name": "Query the account details",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "payment.pricing.AccountDetails.out",
            "schema": [
              {
                "name": "baseCurrency",
                "kind": "optional",
                "type": "string",
                "description": "The base or local currency for the account.",
                "example": "USD"
              }
            ],
            "modelRef": "#/components/schemas/payment.pricing.AccountDetails.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "bkO40-D4dR4cFEVZ5pnGZ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://app.amberflo.io/payments/account/settings \\\n     --header 'accept: application/json'"
        },
        {
          "id": "3_u91gHvxLqkfh-195t86",
          "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://app.amberflo.io/payments/account/settings\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "9GYe2u6MTId4xBSSSlff5",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/account/settings\")\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": "QQo9pp2F9AkYhG7fF42Ev",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/account/settings\"\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": "bkO40-D4dR4cFEVZ5pnGZ"
    },
    "results": {
      "languages": [
        {
          "id": "tlb8Gx-FSv6uOf3f_KdlK",
          "language": "200",
          "code": "// Successful request\n{\n  \"baseCurrency\": \"USD\"\n}"
        }
      ],
      "selectedLanguageId": "tlb8Gx-FSv6uOf3f_KdlK"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}