An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Grant custom points to the customer. When a merchant sets up a custom points earning rule that requires customers to complete a specific action to earn points in the Member System, use this interface to grant the configured points to those customers who successfully complete the action.
Arguments
customerAccessToken ● String!non-null
The customer access token.
earnId ● String!non-null
The points earning rule ID. The ID displayed on the rule details page after configuring the custom rule in the Member System.
Return
memberUserErrors ● MemberUserError!non-null
Error message for the custom rule point grant.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Grant custom rule points
mutation {
customRulesPointGrant (
customerAccessToken: "#A01#SID0000143BNMX5+Ex9bIEkY6dzAwHwTOGkwWRBIF2/7FTbx4GTnvY+f42T7Z5dRvV/y3GSP1IqLe3Q5+gwe76CCmcsJK452Bv1/PuU1tOFvuzMKO6vyXhbhvOBgQI4wLVeC5zpgsOvWKVtp8LPrTzfR+A/4JhVVqH2k14OH5Z23TCvd0YMtCpvqR+zGLJKxtNwKcUEWGCDA",
earnId: "BAC7308764297261753346"
) {
memberUserErrors {
code
}

}
}
Response
{
"data": {
"customRulesPointGrant": {
"memberUserErrors": {
"code": "success"
}
}
}
}
Was this article helpful to you?