Skip to main content

Arguments

accountNumber : String

Account number for the Octoplus-enrolled account.

offerSlug : String

Slug of the offer being queried.

rewardId : Int

Id for the reward being queried.

Allowed Viewers

Customer Partner User Third party

Query Complexity

1

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query OctoplusRewards( $accountNumber: String, $offerSlug: String, $rewardId: Int ) { octoplusRewards( accountNumber: $accountNumber, offerSlug: $offerSlug, rewardId: $rewardId ) { accountNumber claimedAt id offer { ...OctoplusOfferTypeFragment } status vouchers { ... on OctoplusVoucherType { ...OctoplusVoucherTypeFragment } ... on ShoptopusVoucherType { ...ShoptopusVoucherTypeFragment } } } }

Variables

{ "accountNumber": "A-BE644426", "offerSlug": "call-almost-professional-time-shake", "rewardId": 69872262 }

Response

{ "data": { "octoplusRewards": [ { "accountNumber": "A-2D085A4F", "claimedAt": "1971-05-24T19:20:24.851912+00:00", "id": 80398481, "offer": OctoplusOfferType, "status": "PENDING", "vouchers": OctoplusVoucherType } ] } }