Sign inGet Started

Get eSIM checkout options

GET
/v1/esim/offers/{offer_id}/checkout
bird esim offers checkout-options <offer-id>
Odpowiedź200
{
  "offer_id": "eof_01krdgeqcxet5s7t44vh8rt9mg",
  "one_time": {
    "offer_revision": 1,
    "price": {
      "amount": "1.00",
      "currency_code": "EUR"
    },
    "funding": {
      "tax_amount": {
        "amount": "0.21",
        "currency_code": "EUR"
      },
      "total": {
        "amount": "1.21",
        "currency_code": "EUR"
      },
      "covered": true,
      "shortfall": {
        "amount": "0",
        "currency_code": "EUR"
      }
    }
  },
  "recurrence": {
    "available": true,
    "quote": {
      "delivery_mode": "exact_period",
      "offer_revision": 1,
      "recurrence_revision": 2,
      "price": {
        "amount": "2.00",
        "currency_code": "EUR"
      },
      "model": "calendar_month",
      "interval_count": 1,
      "funding": {
        "tax_amount": {
          "amount": "0.42",
          "currency_code": "EUR"
        },
        "total": {
          "amount": "2.42",
          "currency_code": "EUR"
        },
        "covered": false,
        "shortfall": {
          "amount": "1.21",
          "currency_code": "EUR"
        }
      }
    },
    "unavailable_reason": null
  }
}

Returns published one-time terms and automatic renewal availability for a new eSIM, including tax-inclusive totals and current funding shortfalls. Automatic renewal includes its own price and cadence when an eligible mobile network is available. Availability and funding are checked again when purchasing; this read reserves no funds or package.

Parametry

offer_idstring

The offer.

Treść odpowiedzi

offer_id
string
wymagane
one_time
object
wymagane

Published one-time price and current funding requirement. The price excludes tax; funding.total includes tax.

Pokaż atrybuty podrzędne
recurrence
object
wymagane

When available is true, quote contains the recurring terms and unavailable_reason is null. Otherwise quote is null and unavailable_reason explains why renewal is unavailable.

Pokaż atrybuty podrzędne
recurrence.available
boolean
wymagane

Whether automatic renewal is currently available for a new eSIM.

recurrence.quote
nullable object
wymagane

Published recurring terms and current funding requirement. The price excludes tax; funding.total includes tax for the first period. The first period starts when payment is funded, and cancellation stops future renewal while preserving paid packages.

Pokaż atrybuty podrzędne
recurrence.quote.funding
object
wymagane

Current funding needed for this purchase, including tax and approved credit. The quoted price excludes tax; total includes tax for this purchase. This read reserves no funds; payment checks funding again. Test purchases have zero tax and total and are always covered.

Pokaż atrybuty podrzędne
recurrence.quote.delivery_mode
string
wymagane

Relationship between the paid period and package delivery.

  • exact_period: the package covers the accepted paid interval.
  • recurring_top_up: each funded period purchases a standard package. Activation, expiry, and accumulation follow that package’s terms.

Possible values: exact_period, recurring_top_up

recurrence.quote.offer_revision
integer
wymagane

The offer revision to accept when purchasing.

recurrence.quote.recurrence_revision
integer
wymagane

The recurring configuration revision to accept when purchasing.

recurrence.quote.price
object
wymagane

Price before tax for the first period and each renewal.

Pokaż atrybuty podrzędne
recurrence.quote.model
string
wymagane

Billing cadence for recurring packages.

  • calendar_month: periods follow calendar months from the billing anchor.
  • fixed_days: each period lasts the stated number of 24-hour days.

Possible values: calendar_month, fixed_days

recurrence.quote.interval_count
integer
wymagane

The number of calendar months or fixed 24-hour days per period.

recurrence.unavailable_reason
nullable string
wymagane

Renewal is not configured, has no published price, or has no eligible mobile network. A failed lookup returns an error instead.

Possible values: not_configured, price_unavailable, no_eligible_route

Przejdź do dokumentacji, przewodników i przykładów dotyczących tego tematu.