---
title: /payments/account-settings
slug: amberflo-api/jK2s-paymentsaccount-settings
docTags: 
createdAt: 2024-11-07T15:10:16.978Z
---

{
  "id": "aHgwMVd3ohtrwv-GRzBHa",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/payments/account-settings",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/account-settings"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "payment.payment.AccountPaymentSetting.in",
          "schema": [
            {
              "name": "accountId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "billingSystem",
              "kind": "optional",
              "type": "string",
              "description": "",
              "modelRef": "#/components/schemas/payment.pricing.BillingSystem.in",
              "customType": "payment.pricing.BillingSystem.in",
              "schema": []
            },
            {
              "name": "gracePeriod",
              "kind": "optional",
              "type": "integer<int32>",
              "example": 0
            },
            {
              "name": "sendPaymentAutomatically",
              "kind": "optional",
              "type": "boolean",
              "example": ""
            },
            {
              "name": "emailInvoiceToCustomer",
              "kind": "optional",
              "type": "boolean",
              "example": ""
            },
            {
              "name": "paymentAccountId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "awsRoleArn",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "awsProductId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "awsProductCode",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "awsExternalId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "awsDimension",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "isTestMode",
              "kind": "optional",
              "type": "boolean",
              "example": ""
            },
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "id",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "createTimeInMillis",
              "kind": "optional",
              "type": "integer<int64>",
              "example": 0
            },
            {
              "name": "lastUpdateTimeInMillis",
              "kind": "optional",
              "type": "integer<int64>",
              "example": 0
            }
          ],
          "modelRef": "#/components/schemas/payment.payment.AccountPaymentSetting.in",
          "isExpanded": true
        }
      ],
      "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.payment.AccountPaymentSetting.out",
            "schema": [
              {
                "name": "accountId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "billingSystem",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/payment.pricing.BillingSystem.out",
                "customType": "payment.pricing.BillingSystem.out",
                "schema": []
              },
              {
                "name": "gracePeriod",
                "kind": "optional",
                "type": "integer<int32>",
                "example": 0
              },
              {
                "name": "sendPaymentAutomatically",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              },
              {
                "name": "emailInvoiceToCustomer",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              },
              {
                "name": "paymentAccountId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "awsRoleArn",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "awsProductId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "awsProductCode",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "awsExternalId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "awsDimension",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "isTestMode",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "createTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "lastUpdateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              }
            ],
            "modelRef": "#/components/schemas/payment.payment.AccountPaymentSetting.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "9WFfYJjiSH_4a4XUKPapq",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/payments/account-settings \\\n     --header 'accept: application/json'"
        },
        {
          "id": "IM1n7hjuKsqR9ajbrTwdu",
          "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://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": "E5iisOsjeO302Az5DSA1-",
          "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::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "TK5qs8m7eEL_uDcPd6FOF",
          "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(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "9WFfYJjiSH_4a4XUKPapq"
    },
    "results": {
      "languages": [
        {
          "id": "qsZbJ_3PfjdMaZDKhLxgZ",
          "language": "200",
          "code": "// Successful request\n{\n  \"accountId\": \"\",\n  \"billingSystem\": \"\",\n  \"gracePeriod\": \"\",\n  \"sendPaymentAutomatically\": false,\n  \"emailInvoiceToCustomer\": false,\n  \"paymentAccountId\": \"\",\n  \"awsRoleArn\": \"\",\n  \"awsProductId\": \"\",\n  \"awsProductCode\": \"\",\n  \"awsExternalId\": \"\",\n  \"awsDimension\": \"\",\n  \"isTestMode\": false,\n  \"name\": \"\",\n  \"id\": \"\",\n  \"createTimeInMillis\": \"\",\n  \"lastUpdateTimeInMillis\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "qsZbJ_3PfjdMaZDKhLxgZ"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}