ResourcesReward Coupon Templates

Retrieve a reward coupon template

Retrieve one store-owned reward coupon template.

GET
/v2/reward-coupon-templates/{rewardCouponTemplate}

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

rewardCouponTemplate*integer

The rewardCouponTemplate path parameter.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://sell.app/api/v2/reward-coupon-templates/0"
{
  "data": {
    "id": 0,
    "name": "string",
    "type": "PERCENTAGE",
    "discount": "string",
    "store_wide": true,
    "minimum_amount": "string",
    "maximum_discount_amount": "string",
    "expires_at": "2019-08-24T14:15:22Z",
    "expires_after_days": 1,
    "redemption_mode": "customer_locked",
    "is_active": true,
    "listing_ids": [
      0
    ],
    "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."
    ]
  }
}