---
title: /payments/stripe/payment-intents
slug: amberflo-api/aS2q-paymentsstripepayment-intents
docTags: 
createdAt: 2024-11-07T15:10:16.975Z
---

{
  "id": "TK6hgwAkphhwUZU9paJhx",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/payments/stripe/payment-intents",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/stripe/payment-intents"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "payment.billing.CustomerProductInvoiceKey.in",
          "schema": [
            {
              "name": "accountId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "customerId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "productId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "productPlanId",
              "kind": "optional",
              "type": "string",
              "example": ""
            },
            {
              "name": "year",
              "kind": "optional",
              "type": "integer<int32>",
              "example": 0
            },
            {
              "name": "month",
              "kind": "optional",
              "type": "integer<int32>",
              "example": 0
            },
            {
              "name": "day",
              "kind": "optional",
              "type": "integer<int32>",
              "example": 0
            }
          ],
          "modelRef": "#/components/schemas/payment.billing.CustomerProductInvoiceKey.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.stripe.StripePaymentIntent.out",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "owner",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "amount",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "customerId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "stripeCustomerId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "stripePaymentId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "stripePaymentStatus",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "internalStatus",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "createdTimeInSecondsInStripe",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "createdTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "lastUpdateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "currency",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "paymentMethodId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "stripeErrorMessage",
                "kind": "optional",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/payment.stripe.StripePaymentIntent.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "iPJzD56mM-DbPiyc7IHgu",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/payments/stripe/payment-intents \\\n     --header 'accept: application/json'"
        },
        {
          "id": "CB0HZ-KIP4beOzdo8jM4Y",
          "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/stripe/payment-intents\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "m3Dk7vvqCHH50VNkFGZZ7",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/stripe/payment-intents\")\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": "KwajFJj3AjpH5ThKUlAuc",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/stripe/payment-intents\"\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": "iPJzD56mM-DbPiyc7IHgu"
    },
    "results": {
      "languages": [
        {
          "id": "aHwIp0AEmOw_-wct5n5cj",
          "language": "200",
          "code": "// Successful request\n{\n  \"id\": \"\",\n  \"owner\": \"\",\n  \"description\": \"\",\n  \"amount\": 0,\n  \"customerId\": \"\",\n  \"stripeCustomerId\": \"\",\n  \"stripePaymentId\": \"\",\n  \"stripePaymentStatus\": \"\",\n  \"internalStatus\": \"\",\n  \"createdTimeInSecondsInStripe\": \"\",\n  \"createdTimeInMillis\": \"\",\n  \"lastUpdateTimeInMillis\": \"\",\n  \"currency\": \"\",\n  \"paymentMethodId\": \"\",\n  \"stripeErrorMessage\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "aHwIp0AEmOw_-wct5n5cj"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}