---
title: /payments/account-settings/appkeys/stripe
slug: amberflo-api/paymentsaccount-settingsappkeysstripe
docTags: 
createdAt: 2024-11-07T15:10:16.977Z
---

{
  "id": "u1y-FOOvhhqp6fXPULx9C",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/payments/account-settings/appkeys/stripe",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/account-settings/appkeys/stripe"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "payment.payment.StripeCode.in",
          "schema": [
            {
              "name": "code",
              "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": ""
            }
          ],
          "modelRef": "#/components/schemas/payment.payment.StripeCode.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": "NhSO7WHu2FXQDpR9g3GWI",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/payments/account-settings/appkeys/stripe \\\n     --header 'accept: application/json'"
        },
        {
          "id": "_bF5MNk1PkiWR-q-U6XNw",
          "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/appkeys/stripe\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "_lGygLez_a8_dN9RxIntW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/account-settings/appkeys/stripe\")\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": "bB886_UK1AGNUeDpgZGwa",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/account-settings/appkeys/stripe\"\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": "NhSO7WHu2FXQDpR9g3GWI"
    },
    "results": {
      "languages": [
        {
          "id": "m2bsl-3tZtcvpv8C4URZA",
          "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": "m2bsl-3tZtcvpv8C4URZA"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}