List top-up packs

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Lists the top-up credit amounts you can buy for your workspace, with their prices. Top-up credits are extra message and integration credits on top of your plan.

Message credits come in packs of 50 and integration credits in packs of 1,000. You can buy up to 8 packs of each type in one purchase, and every pack costs the same. Send the credits values you want to Create top-up checkout or Buy top-up with saved card.

Any member of the workspace can list the packs, but only the workspace owner can buy them. The workspace needs a paid plan other than Enterprise. Listing doesn't check whether the plan is past due, but buying does. A workspace whose plan is paid through the App Store or Google Play can't buy top-ups, and one billed through Wix can buy them only where Base44 has turned on Wix top-ups. A read-only token is refused, and workspace API keys aren't accepted.

<Note>Top-ups are only available to accounts Base44 has enrolled in top-up credits. Other accounts get a 403.</Note>

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>

get/api/billing/topup/presets

Request

  • Base URL
    https://app.base44.com
  • URL
    https://app.base44.com/api/billing/topup/presets
  • Auth
    HTTP bearer

Response

The amounts you can buy and their prices.

currency'usd' | 'ils' required

Currency of every price, and the currency you pay in. ils when the workspace's plan is billed in shekels, usd otherwise.

Example response

{
  "presets": {
    "message_credits": [
      {
        "credits": 0,
        "total_cents": 0
      },
      {
        "credits": 50,
        "total_cents": 1500
      },
      {
        "credits": 100,
        "total_cents": 3000
      }
    ],
    "integration_credits": [
      {
        "credits": 0,
        "total_cents": 0
      },
      {
        "credits": 1000,
        "total_cents": 1500
      },
      {
        "credits": 2000,
        "total_cents": 3000
      }
    ]
  },
  "currency": "usd"
}

Changes