ResourcesReward Rules
Retrieve a reward rule
Retrieve one store-owned reward rule.
Authorization
bearerAuth storeAuth AuthorizationBearer <token>
Provide your SellApp API key as a bearer token.
In: header
X-STORE<token>
Select the SellApp store for this API request.
In: header
Path Parameters
rewardRule*integer
The rewardRule path parameter.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://sell.app/api/v2/reward-rules/0"{
"data": {
"id": 0,
"name": "string",
"description": "string",
"is_active": true,
"trigger_type": "PURCHASE_COUNT",
"trigger_threshold": 1,
"fire_once_per_customer": true,
"outputs": [
{
"id": 0,
"type": "WALLET_CREDIT",
"sort_order": 0,
"payload": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}