---
title: Get a prepaid offer by id
slug: amberflo-api/get-a-prepaid-offer-by-id
docTags: 
createdAt: 2024-11-07T15:10:16.976Z
---

{
  "id": "E9sryuGtJTMm5y-4m2jRQ",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/prepaid-offer",
    "servers": [
      {
        "url": "https://app.amberflo.io/payments/pricing/amberflo/account-pricing/prepaid-offer"
      }
    ],
    "name": "Get a prepaid offer by id",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "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.pricing.prepaid.PrepaidOffer.out",
            "schema": [
              {
                "name": "targetEntityId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "moneyWorthTiers",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, number>",
                "schema": []
              },
              {
                "name": "calculationStrategy",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/payment.pricing.prepaid.OfferCalculationStrategy.out",
                "customType": "payment.pricing.prepaid.OfferCalculationStrategy.out",
                "schema": []
              },
              {
                "name": "expiredAfter",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/payment.pricing.BillingPeriod.out",
                "customType": "payment.pricing.BillingPeriod.out",
                "schema": [
                  {
                    "name": "interval",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "modelRef": "#/components/schemas/payment.pricing.BillingPeriodInterval.out",
                    "customType": "payment.pricing.BillingPeriodInterval.out",
                    "schema": []
                  },
                  {
                    "name": "intervalsCount",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "example": 0
                  }
                ]
              },
              {
                "name": "lastUpdateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "lockingStatus",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/com.amberflo.service.common.LockingStatus.out",
                "customType": "com.amberflo.service.common.LockingStatus.out",
                "schema": []
              }
            ],
            "modelRef": "#/components/schemas/payment.pricing.prepaid.PrepaidOffer.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "WcNq8LjQF3upLcQdoTtS_",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/prepaid-offer \\\n     --header 'accept: application/json'"
        },
        {
          "id": "rLNT7T-EKwLF0xQeFQRcB",
          "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/payments/pricing/amberflo/account-pricing/prepaid-offer\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "iJPOK-8FQiz51WgDqhSoD",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/prepaid-offer\")\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": "exb1VZcH6JJb-ak16deBS",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/payments/pricing/amberflo/account-pricing/prepaid-offer\"\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": "WcNq8LjQF3upLcQdoTtS_"
    },
    "results": {
      "languages": [
        {
          "id": "gqNFus1ouWstJKQ_ncv7d",
          "language": "200",
          "code": "// Successful request\n{\n  \"targetEntityId\": \"\",\n  \"description\": \"\",\n  \"moneyWorthTiers\": \"\",\n  \"calculationStrategy\": \"\",\n  \"expiredAfter\": {\n    \"interval\": \"\",\n    \"intervalsCount\": \"\"\n  },\n  \"lastUpdateTimeInMillis\": \"\",\n  \"lockingStatus\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "gqNFus1ouWstJKQ_ncv7d"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}