Skip to main content

Arguments

accountNumber : String! required

The account number for the Octoplus-enrolled account.

points : Int! required

The number of Octopoints to exchange for a reward.

Returns

ClaimShoptopusVoucher

Claim a Shoptopus Voucher using Octopoints.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can redeem loyalty points

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

mutation ClaimShoptopusVoucher( $accountNumber: String!, $points: Int! ) { claimShoptopusVoucher( accountNumber: $accountNumber, points: $points ) { code } }

Variables

{ "accountNumber": "A-BCB42D92", "points": 84 }

Response

{ "data": { "claimShoptopusVoucher": { "code": "clear-decade-hundred-letter-fire" } } }