---
title: Get a specific invoice for the customer
slug: reference/get-a-specific-invoice-for-the-customer
createdAt: 2024-09-30T17:03:00.667Z
---

{
  "id": "hRDhRJkUs-yhvrtoGlryC",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/customer-portal/invoice",
    "servers": [
      {
        "url": "https://app.amberflo.io/customer-portal/invoice"
      }
    ],
    "name": "Get a specific invoice for the customer",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "productId",
          "type": "string",
          "description": "Product ID as defined in account pricing. Change from default only if you have multiple products.",
          "default": "1"
        },
        {
          "kind": "optional",
          "name": "fromCache",
          "type": "boolean",
          "description": "<p>Setting this param to false will cause the service to return cached invoice data (usually a couple of hours lag). This call has better performance than the default. Default to false.</p>"
        },
        {
          "kind": "optional",
          "name": "withPaymentStatus",
          "type": "boolean",
          "description": "Setting this param to false will cause the service to not fetch the payment status as part of the invoice. Recommended if you don't need the invoice payment status or if the invoice is still in a open state. Default to true."
        },
        {
          "kind": "optional",
          "name": "latest",
          "type": "boolean",
          "description": "<p>If set to true, the service will try to fetch the latest invoice for the given product and customer, otherwise this service will expect a full invoice key (i.e. the product plan id and the invoice start date) Default to false.</p>"
        },
        {
          "kind": "optional",
          "name": "productPlanId",
          "type": "string",
          "description": "<p>The product plan id. If <code>latest</code> is false, this parameter is mandatory, otherwise it is ignored.</p>"
        },
        {
          "kind": "optional",
          "name": "year",
          "type": "integer",
          "description": "<p>The invoice start date (year). If <code>latest</code> is false, this parameter is mandatory, otherwise it is ignored.</p>"
        },
        {
          "kind": "optional",
          "name": "month",
          "type": "integer",
          "description": "<p>The invoice start date (month). If <code>latest</code> is false, this parameter is mandatory, otherwise it is ignored.</p>"
        },
        {
          "kind": "optional",
          "name": "day",
          "type": "integer",
          "description": "<p>The invoice start date (day). If <code>latest</code> is false, this parameter is mandatory, otherwise it is ignored.</p>"
        },
        {
          "kind": "required",
          "name": "sessionToken",
          "type": "string",
          "description": "<p>A required session token used to authenticate API calls made on behalf of a customer. This token is obtained from the <code>Create a session</code> endpoint and must be included with every request to authorize access.</p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "api_key",
          "name": "x-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful response",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "billing-customer-product-invoice-response",
            "schema": [
              {
                "name": "appliedCommitments",
                "kind": "optional",
                "type": "array",
                "description": "A list of commitment related fees (one per commitment + obligation).",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "commitmentId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "feeAmount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "feeInBaseCurrency",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "feeInCredits",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "obligationId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "obligationName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  }
                ]
              },
              {
                "name": "appliedInvoiceBasedFees",
                "kind": "optional",
                "type": "array",
                "description": "A list of usage based fees.",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "feeAmount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "feeId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "feeInBaseCurrency",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "feeInCredits",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "feeName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  }
                ]
              },
              {
                "name": "appliedPromotions",
                "kind": "optional",
                "type": "array",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "canBeUsedForPayAsYouGo",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  },
                  {
                    "name": "dimensions",
                    "kind": "optional",
                    "type": "map",
                    "example": "",
                    "customType": "map<string, string>",
                    "schema": []
                  },
                  {
                    "name": "discount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountInBaseCurrency",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountInCredits",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "entityTd",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "granularity",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "maxDiscountInBaseCurrency",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "maxDiscountPossible",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "promotionAppliedTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "promotionId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "promotionName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "promotionType",
                    "kind": "optional",
                    "type": "string",
                    "description": "PLAN_FREE_TIER, AUTOMATIC_PROMOTION, DISCOUNT, COUPON",
                    "example": ""
                  }
                ]
              },
              {
                "name": "availablePayAsYouGoMoney",
                "kind": "optional",
                "type": "number",
                "description": "Indicates how much pay-as-you-go money is available for paying this invoice via: Current cycle discounts and the credits wallet.",
                "example": ""
              },
              {
                "name": "availablePayAsYouGoMoneyInBaseCurrency",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "availablePayAsYouGoMoneyInCredits",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "availablePrepaidLeft",
                "kind": "optional",
                "type": "number",
                "description": "Indicates how many credits are available for paying this invoice.",
                "example": ""
              },
              {
                "name": "availablePrepaidLeftBaseCurrency",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "availablePrepaidLeftInCredits",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "creditUnit",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "active",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  },
                  {
                    "name": "description",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "lastUpdateTimeInMillis",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "ratioToCurrency",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "shortName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  }
                ]
              },
              {
                "name": "externalSystemStatus",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "gracePeriodInHours",
                "kind": "optional",
                "type": "integer",
                "example": 0
              },
              {
                "name": "invoiceBillInBaseCurrency",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "commitmentsFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountableBasePrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountableFixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "endTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "fixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "invoiceBasedFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "itemPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepaid",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableCommitmentsFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableFixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableNotDiscountableFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "startTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "totalDiscount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPrepayablePrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforeCommitments",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforeDiscount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforePrepaid",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  }
                ]
              },
              {
                "name": "invoiceBillInCredits",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "commitmentsFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountableBasePrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountableFixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "endTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "fixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "invoiceBasedFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "itemPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepaid",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableCommitmentsFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableFixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableNotDiscountableFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "startTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "totalDiscount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPrepayablePrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforeCommitments",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforeDiscount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforePrepaid",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  }
                ]
              },
              {
                "name": "invoiceEndTimeInSeconds",
                "kind": "optional",
                "type": "integer",
                "example": 0
              },
              {
                "name": "invoiceKey",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "accountId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "customerId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "day",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "month",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "productId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "productPlanId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "year",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  }
                ]
              },
              {
                "name": "invoicePriceStatus",
                "kind": "optional",
                "type": "string",
                "description": "OPEN, GRACE_PERIOD, PRICE_LOCKED",
                "example": ""
              },
              {
                "name": "invoiceStartTimeInSeconds",
                "kind": "optional",
                "type": "integer",
                "example": 0
              },
              {
                "name": "invoiceUri",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "paymentCreatedInSeconds",
                "kind": "optional",
                "type": "integer",
                "example": 0
              },
              {
                "name": "paymentCurrencyInfo",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "basePlanCurrency",
                    "kind": "optional",
                    "type": "object",
                    "example": "",
                    "schema": [
                      {
                        "name": "currencyCode",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      }
                    ]
                  },
                  {
                    "name": "exchangeRate",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "paymentCurrency",
                    "kind": "optional",
                    "type": "object",
                    "example": "",
                    "schema": [
                      {
                        "name": "currencyCode",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      }
                    ]
                  }
                ]
              },
              {
                "name": "paymentStatus",
                "kind": "optional",
                "type": "string<PRE_PAYMENT | REQUIRES_ACTION | PENDING | FAILED | SETTLED | NOT_NEEDED | UNKNOWN>",
                "example": ""
              },
              {
                "name": "planBillingPeriod",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "interval",
                    "kind": "optional",
                    "type": "string<DAY | MONTH | YEAR>",
                    "example": ""
                  },
                  {
                    "name": "intervalsCount",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  }
                ]
              },
              {
                "name": "planName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "productItemInvoices",
                "kind": "optional",
                "type": "array",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "key",
                    "kind": "optional",
                    "type": "object",
                    "example": "",
                    "schema": [
                      {
                        "name": "accountId",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "customerId",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "day",
                        "kind": "optional",
                        "type": "integer",
                        "example": 0
                      },
                      {
                        "name": "month",
                        "kind": "optional",
                        "type": "integer",
                        "example": 0
                      },
                      {
                        "name": "productId",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "productItemKey",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "productPlanId",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "year",
                        "kind": "optional",
                        "type": "integer",
                        "example": 0
                      }
                    ]
                  },
                  {
                    "name": "meterApiName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "productItemId",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "productItemName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "productItemVariants",
                    "kind": "optional",
                    "type": "array",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "hourlyBillInfos",
                        "kind": "optional",
                        "type": "array",
                        "example": "",
                        "itemType": "object",
                        "customType": "object[]",
                        "schema": [
                          {
                            "name": "endTimeInSeconds",
                            "kind": "optional",
                            "type": "integer",
                            "example": 0
                          },
                          {
                            "name": "meterUnits",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "meteredUnitsPerTier",
                            "kind": "optional",
                            "type": "map",
                            "example": "",
                            "customType": "map<string, number>",
                            "schema": []
                          },
                          {
                            "name": "price",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "priceInBaseCurrency",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "priceInCredits",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "startTimeInSeconds",
                            "kind": "optional",
                            "type": "integer",
                            "example": 0
                          }
                        ]
                      },
                      {
                        "name": "itemDimensions",
                        "kind": "optional",
                        "type": "map",
                        "example": "",
                        "customType": "map<string, string>",
                        "schema": []
                      },
                      {
                        "name": "key",
                        "kind": "optional",
                        "type": "string",
                        "example": ""
                      },
                      {
                        "name": "lateArrivalMeters",
                        "kind": "optional",
                        "type": "number",
                        "example": ""
                      },
                      {
                        "name": "totalBill",
                        "kind": "optional",
                        "type": "object",
                        "example": "",
                        "schema": [
                          {
                            "name": "endTimeInSeconds",
                            "kind": "optional",
                            "type": "integer",
                            "example": 0
                          },
                          {
                            "name": "meterUnits",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "meteredUnitsPerTier",
                            "kind": "optional",
                            "type": "map",
                            "example": "",
                            "customType": "map<string, number>",
                            "schema": []
                          },
                          {
                            "name": "price",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "priceInBaseCurrency",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "priceInCredits",
                            "kind": "optional",
                            "type": "number",
                            "example": ""
                          },
                          {
                            "name": "startTimeInSeconds",
                            "kind": "optional",
                            "type": "integer",
                            "example": 0
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "productPlanName",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "totalBill",
                    "kind": "optional",
                    "type": "object",
                    "example": "",
                    "schema": [
                      {
                        "name": "endTimeInSeconds",
                        "kind": "optional",
                        "type": "integer",
                        "example": 0
                      },
                      {
                        "name": "meterUnits",
                        "kind": "optional",
                        "type": "number",
                        "example": ""
                      },
                      {
                        "name": "meteredUnitsPerTier",
                        "kind": "optional",
                        "type": "map",
                        "example": "",
                        "customType": "map<string, number>",
                        "schema": []
                      },
                      {
                        "name": "price",
                        "kind": "optional",
                        "type": "number",
                        "example": ""
                      },
                      {
                        "name": "priceInBaseCurrency",
                        "kind": "optional",
                        "type": "number",
                        "example": ""
                      },
                      {
                        "name": "priceInCredits",
                        "kind": "optional",
                        "type": "number",
                        "example": ""
                      },
                      {
                        "name": "startTimeInSeconds",
                        "kind": "optional",
                        "type": "integer",
                        "example": 0
                      }
                    ]
                  }
                ]
              },
              {
                "name": "productPlanFees",
                "kind": "optional",
                "type": "array",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "cost",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "costInBaseCurrency",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "costInCredits",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "description",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "discountable",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  },
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "isOneTimeFee",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  },
                  {
                    "name": "isProrated",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "prepayable",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  },
                  {
                    "name": "prorateToDay",
                    "kind": "optional",
                    "type": "boolean",
                    "example": ""
                  }
                ]
              },
              {
                "name": "totalBill",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "commitmentsFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountableBasePrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "discountableFixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "endTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "fixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "invoiceBasedFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "itemPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepaid",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableCommitmentsFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableFixPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "prepayableNotDiscountableFees",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "startTimeInSeconds",
                    "kind": "optional",
                    "type": "integer",
                    "example": 0
                  },
                  {
                    "name": "totalDiscount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPrepayablePrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPrice",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforeCommitments",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforeDiscount",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  },
                  {
                    "name": "totalPriceBeforePrepaid",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/billing-customer-product-invoice-response",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "noDk5Ocw1EA_9eWllKOW6",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://app.amberflo.io/customer-portal/invoice?productId=1&sessionToken=string' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "Z5VlIGIHF6cDInrzNWfvd",
          "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/customer-portal/invoice?productId=1&sessionToken=string\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "NX8k1SYr_5L9K0TLAEkG9",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/customer-portal/invoice?productId=1&sessionToken=string\")\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": "UbRI9EfdW2IUpYoBChxTJ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/customer-portal/invoice?productId=1&sessionToken=string\"\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": "noDk5Ocw1EA_9eWllKOW6"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Successful response\n{\n  \"appliedCommitments\": [\n    {\n      \"commitmentId\": \"\",\n      \"feeAmount\": 0,\n      \"feeInBaseCurrency\": 0,\n      \"feeInCredits\": 0,\n      \"obligationId\": \"\",\n      \"obligationName\": \"\"\n    }\n  ],\n  \"appliedInvoiceBasedFees\": [\n    {\n      \"feeAmount\": 0,\n      \"feeId\": \"\",\n      \"feeInBaseCurrency\": 0,\n      \"feeInCredits\": 0,\n      \"feeName\": \"\"\n    }\n  ],\n  \"appliedPromotions\": [\n    {\n      \"canBeUsedForPayAsYouGo\": false,\n      \"dimensions\": \"\",\n      \"discount\": 0,\n      \"discountInBaseCurrency\": 0,\n      \"discountInCredits\": 0,\n      \"entityTd\": \"\",\n      \"granularity\": \"\",\n      \"maxDiscountInBaseCurrency\": 0,\n      \"maxDiscountPossible\": 0,\n      \"promotionAppliedTimeInSeconds\": 0,\n      \"promotionId\": \"\",\n      \"promotionName\": \"\",\n      \"promotionType\": \"\"\n    }\n  ],\n  \"availablePayAsYouGoMoney\": 0,\n  \"availablePayAsYouGoMoneyInBaseCurrency\": 0,\n  \"availablePayAsYouGoMoneyInCredits\": 0,\n  \"availablePrepaidLeft\": 0,\n  \"availablePrepaidLeftBaseCurrency\": 0,\n  \"availablePrepaidLeftInCredits\": 0,\n  \"creditUnit\": {\n    \"active\": false,\n    \"description\": \"\",\n    \"id\": \"\",\n    \"lastUpdateTimeInMillis\": 0,\n    \"name\": \"\",\n    \"ratioToCurrency\": 0,\n    \"shortName\": \"\"\n  },\n  \"externalSystemStatus\": \"\",\n  \"gracePeriodInHours\": 0,\n  \"invoiceBillInBaseCurrency\": {\n    \"commitmentsFees\": 0,\n    \"discountableBasePrice\": 0,\n    \"discountableFixPrice\": 0,\n    \"endTimeInSeconds\": 0,\n    \"fixPrice\": 0,\n    \"invoiceBasedFees\": 0,\n    \"itemPrice\": 0,\n    \"prepaid\": 0,\n    \"prepayableCommitmentsFees\": 0,\n    \"prepayableFixPrice\": 0,\n    \"prepayableNotDiscountableFees\": 0,\n    \"startTimeInSeconds\": 0,\n    \"totalDiscount\": 0,\n    \"totalPrepayablePrice\": 0,\n    \"totalPrice\": 0,\n    \"totalPriceBeforeCommitments\": 0,\n    \"totalPriceBeforeDiscount\": 0,\n    \"totalPriceBeforePrepaid\": 0\n  },\n  \"invoiceBillInCredits\": {\n    \"commitmentsFees\": 0,\n    \"discountableBasePrice\": 0,\n    \"discountableFixPrice\": 0,\n    \"endTimeInSeconds\": 0,\n    \"fixPrice\": 0,\n    \"invoiceBasedFees\": 0,\n    \"itemPrice\": 0,\n    \"prepaid\": 0,\n    \"prepayableCommitmentsFees\": 0,\n    \"prepayableFixPrice\": 0,\n    \"prepayableNotDiscountableFees\": 0,\n    \"startTimeInSeconds\": 0,\n    \"totalDiscount\": 0,\n    \"totalPrepayablePrice\": 0,\n    \"totalPrice\": 0,\n    \"totalPriceBeforeCommitments\": 0,\n    \"totalPriceBeforeDiscount\": 0,\n    \"totalPriceBeforePrepaid\": 0\n  },\n  \"invoiceEndTimeInSeconds\": 0,\n  \"invoiceKey\": {\n    \"accountId\": \"\",\n    \"customerId\": \"\",\n    \"day\": 0,\n    \"month\": 0,\n    \"productId\": \"\",\n    \"productPlanId\": \"\",\n    \"year\": 0\n  },\n  \"invoicePriceStatus\": \"\",\n  \"invoiceStartTimeInSeconds\": 0,\n  \"invoiceUri\": \"\",\n  \"paymentCreatedInSeconds\": 0,\n  \"paymentCurrencyInfo\": {\n    \"basePlanCurrency\": {\n      \"currencyCode\": \"\"\n    },\n    \"exchangeRate\": 0,\n    \"paymentCurrency\": {\n      \"currencyCode\": \"\"\n    }\n  },\n  \"paymentStatus\": \"\",\n  \"planBillingPeriod\": {\n    \"interval\": \"\",\n    \"intervalsCount\": 0\n  },\n  \"planName\": \"\",\n  \"productItemInvoices\": [\n    {\n      \"key\": {\n        \"accountId\": \"\",\n        \"customerId\": \"\",\n        \"day\": 0,\n        \"month\": 0,\n        \"productId\": \"\",\n        \"productItemKey\": \"\",\n        \"productPlanId\": \"\",\n        \"year\": 0\n      },\n      \"meterApiName\": \"\",\n      \"productItemId\": \"\",\n      \"productItemName\": \"\",\n      \"productItemVariants\": [\n        {\n          \"hourlyBillInfos\": [\n            {\n              \"endTimeInSeconds\": 0,\n              \"meterUnits\": 0,\n              \"meteredUnitsPerTier\": \"\",\n              \"price\": 0,\n              \"priceInBaseCurrency\": 0,\n              \"priceInCredits\": 0,\n              \"startTimeInSeconds\": 0\n            }\n          ],\n          \"itemDimensions\": \"\",\n          \"key\": \"\",\n          \"lateArrivalMeters\": 0,\n          \"totalBill\": {\n            \"endTimeInSeconds\": 0,\n            \"meterUnits\": 0,\n            \"meteredUnitsPerTier\": \"\",\n            \"price\": 0,\n            \"priceInBaseCurrency\": 0,\n            \"priceInCredits\": 0,\n            \"startTimeInSeconds\": 0\n          }\n        }\n      ],\n      \"productPlanName\": \"\",\n      \"totalBill\": {\n        \"endTimeInSeconds\": 0,\n        \"meterUnits\": 0,\n        \"meteredUnitsPerTier\": \"\",\n        \"price\": 0,\n        \"priceInBaseCurrency\": 0,\n        \"priceInCredits\": 0,\n        \"startTimeInSeconds\": 0\n      }\n    }\n  ],\n  \"productPlanFees\": [\n    {\n      \"cost\": 0,\n      \"costInBaseCurrency\": 0,\n      \"costInCredits\": 0,\n      \"description\": \"\",\n      \"discountable\": false,\n      \"id\": \"\",\n      \"isOneTimeFee\": false,\n      \"isProrated\": false,\n      \"name\": \"\",\n      \"prepayable\": false,\n      \"prorateToDay\": false\n    }\n  ],\n  \"totalBill\": {\n    \"commitmentsFees\": 0,\n    \"discountableBasePrice\": 0,\n    \"discountableFixPrice\": 0,\n    \"endTimeInSeconds\": 0,\n    \"fixPrice\": 0,\n    \"invoiceBasedFees\": 0,\n    \"itemPrice\": 0,\n    \"prepaid\": 0,\n    \"prepayableCommitmentsFees\": 0,\n    \"prepayableFixPrice\": 0,\n    \"prepayableNotDiscountableFees\": 0,\n    \"startTimeInSeconds\": 0,\n    \"totalDiscount\": 0,\n    \"totalPrepayablePrice\": 0,\n    \"totalPrice\": 0,\n    \"totalPriceBeforeCommitments\": 0,\n    \"totalPriceBeforeDiscount\": 0,\n    \"totalPriceBeforePrepaid\": 0\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": "",
      "id": "K1UOECcg4rMhMIOolIwJF"
    }
  ]
}