List recurring eSIM subscriptions
/v1/esim/subscriptionsbird esim recurring-subscriptions listcurl -X GET "https://us1.platform.bird.com/v1/esim/subscriptions" \
-H "Authorization: Bearer $TOKEN" \
--url-query "limit=25"{
"data": [
{
"delivery_mode": "exact_period",
"id": "ers_01krdgeqcxet5s7t44vh8rt9mg",
"esim_id": "esm_01krdgeqcxet5s7t44vh8rt9mg",
"initial_order_id": "eor_01krdgeqcxet5s7t44vh8rt9mg",
"subscriber_id": "esub_01krdgeqcxet5s7t44vh8rt9mg",
"offer_id": "eof_01krdgeqcxet5s7t44vh8rt9mg",
"status": "pending",
"latest_order_id": "eor_01krdgeqcxet5s7t44vh8rt9mg",
"price": {
"amount": "0.00995",
"currency_code": "USD"
},
"model": "calendar_month",
"stop_reason": "canceled"
}
],
"next_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE0OjAzOjEwWlwiIiwiaSI6IjAxOTJmM2IxLTRjN2UtN2EyYi05ZDYxLThmM2E1YzJlN2I0MCJ9",
"prev_cursor": null,
"refresh_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE2OjQyOjAxWlwiIiwiaSI6IjAxOTJmM2IxLTllMDQtN2NkMy1iODE3LTJhNmY0ZDFjOGUwOSJ9"
}
Returns recurring services for assigned eSIMs in this workspace.
Queryparameters
limitintegerMaximum number of items to return per page.
starting_afterstringCursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
ending_beforestringCursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.
subscriber_idstringReturn eSIMs assigned to this subscriber.
esim_idstringFilter by esim id.
Response Payload
dataRecurring services in this workspace.
Onderliggende attributen tonen
data.delivery_modeRelationship 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
data.iddata.esim_idThe provisioned eSIM, or null while the initial purchase is pending.
data.initial_order_idThe initial purchase order, or null when recurrence was enrolled on an existing eSIM.
data.subscriber_iddata.offer_iddata.statusDelivery state of the recurring service. Check payment and renewal fields separately.
pending: enrollment or the initial purchase is still being processed.active: the service has delivered a package and remains active.needs_attention: delivery or a related credit remains unresolved. Check period history and the associated order before purchasing a replacement.ended: recurrence has ended. Previously delivered packages keep their own validity.
Possible values: pending, active, needs_attention, ended
data.billing_statusThe financial subscription state, or null while acceptance is pending.
data.current_period_startThe authoritative billing period boundary, or null while acceptance is pending.
data.current_period_endThe authoritative billing period boundary, or null while acceptance is pending.
data.cancel_at_period_endWhether future renewal is stopped at the current paid boundary.
data.latest_order_idThe order for the current billing period, or null before fulfillment starts.
data.created_atWhen the recurring service was requested.
data.priceAccepted package price before tax, in its published currency. Null before Billing accepts enrollment.
data.modelAccepted cadence, or null before Billing accepts enrollment.
data.interval_countNumber of calendar months or fixed 24-hour days in each accepted period. Null before acceptance.
data.next_renewal_atNext scheduled renewal boundary. Null when enrollment is pending or future renewals have stopped.
data.cancellation_effective_atWhen canceled recurrence ends: the paid boundary for scheduled cancellation, or the recorded cancellation time for an immediate stop. Null when renewal has not been stopped or no period was accepted. Paid packages remain available under their own validity.
data.stop_reasonFirst recorded reason future renewal stopped. Null when no reason has been recorded. Delivery outcomes are available separately in period history.
next_cursorCursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.
prev_cursorCursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.
refresh_cursorRefresh anchor, the first row of this response. Pass back as ending_before to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-null whenever data is non-empty; null only on an empty page. Distinct from prev_cursor.
Gerelateerde bronnen
Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.