Page Summary
-
The
fetchEligibilitymethod retrieves an offer with eligibility based on the providedofferTypeand optional device identifiers (imeioreid). -
The request requires an empty body and uses query parameters for specifying the offer type and device information.
-
The response body contains an
OfferEligibilityobject, detailing the offer type, whether the device is eligible, and the offer terms. -
The
OfferTermincludes details such as redemption start and end times, offer duration, monthly data allowance, throttle speed, and eligibility conditions based on IMEI prefixes. -
Authorization for this method requires either the
https://www.googleapis.com/auth/novaorhttps://www.googleapis.com/auth/cloud-platformOAuth scopes.
- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- OfferEligibility
- OfferTerm
- EligibilityConditions
- Try it!
Retrieves an offer with eligibility.
HTTP request
GET https://fiwholesaleadaptor.googleapis.com/v1/offers:fetchEligibility
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
offerType |
Required. The id of the offer to return with the device eligibility. If there is no matching offer found, a not found error will be returned. |
imei |
Optional. The device identifier used to validate offer eligibility. |
eid |
Optional. The EID of the eSIM on the device used to validate offer eligibility. |
Request body
The request body must be empty.
Response body
Response for OfferService.FetchOfferEligibility.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"offer": {
object ( |
| Fields | |
|---|---|
offer |
The offer for the |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/novahttps://www.googleapis.com/auth/cloud-platform
For more information, see the OAuth 2.0 Overview.
OfferEligibility
The offer with eligibility.
| JSON representation |
|---|
{ "offerType": enum ( |
| Fields | |
|---|---|
offerType |
The type of offer. |
isEligible |
Whether the device is eligible for the offer. |
offerTerm |
The terms for the offer. |
OfferTerm
The terms of an offer.
| JSON representation |
|---|
{
"eligibleToRedeemStartTime": string,
"eligibleToRedeemEndTime": string,
"offerDuration": string,
"monthlyDataAllowanceBytes": string,
"monthlyThrottleSpeedBps": string,
"eligibilityConditions": {
object ( |
| Fields | |
|---|---|
eligibleToRedeemStartTime |
The start and end time when the offer is eligible to be redeemed. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
eligibleToRedeemEndTime |
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
offerDuration |
How long a user can use the offer. A duration in seconds with up to nine fractional digits, ending with ' |
monthlyDataAllowanceBytes |
The montly data allowance for the offer after which the device will be throttled. |
monthlyThrottleSpeedBps |
After the monthly data allowance is exhausted, the speed of the data connection. |
eligibilityConditions |
The conditions for a device to be eligible for this offer. |
EligibilityConditions
The conditions that must be met for a device to be eligible for this offer. All populated conditions must be met for a device to be eligible.
| JSON representation |
|---|
{ "eligibleImeiPrefixes": [ string ] } |
| Fields | |
|---|---|
eligibleImeiPrefixes[] |
The eligible IMEI prefixes (TAC ranges) for the offer. If empty, all IMEIs are eligible. |