This API is called by external partners to signal that the user has accepted the terms of service for the offer. The partner calls this API after offers.fetchPartnerEligibility returns eligible and receives the activation code for the offer.
HTTP request
POST https://fiwholesaleadaptor.googleapis.com/v1/offers:redeemOffer
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"offerType": enum ( |
Fields | |
---|---|
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. |
eid |
Required. The EID of the eSIM on the device used to validate offer eligibility. |
imei |
Required. The device identifier used to validate offer eligibility. |
email |
Required. The email address of the end user. |
Response body
Response for OfferService.RedeemOffer.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "activationCode": string } |
Fields | |
---|---|
activationCode |
Profile activation code used to reference the profile in SM-DP+ server for profile downloading. In the case of certain partners, this is a static string in the form of |