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

{
  "id": "hdf8UWjVnOg9i6rZXSLT7",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/payments/stripe/payment-intents/batch",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/stripe/payment-intents/batch"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "array",
          "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": "array",
            "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": "xT0RedpueaRDHMlzIBDjc",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/payments/stripe/payment-intents/batch \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '[\n     {}\n     ]'"
        },
        {
          "id": "TfqkWOFcdRcmvmikKdFVo",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify([\n   {}\n]);\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/payments/stripe/payment-intents/batch\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "tWMeZ13FYcMqgczSCU_vQ",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/stripe/payment-intents/batch\")\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\"\nrequest.body = JSON.dump([\n   {}\n])\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "D-6PotWX_Em-N2I3rufgy",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/stripe/payment-intents/batch\"\n\npayload = json.dumps([\n   {}\n])\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": "xT0RedpueaRDHMlzIBDjc"
    },
    "results": {
      "languages": [
        {
          "id": "DABcVMdAggcOKR_j3MWAN",
          "language": "200",
          "code": "// Successful request\n[\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  }\n]"
        }
      ],
      "selectedLanguageId": "DABcVMdAggcOKR_j3MWAN"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}