v1

latestOpenAPI 3.0.22026-07-2645239950.4 KB

post/transactions/reject

Request body

reward_idstring

Unique ID that identifies a reward in Zinrelo. This is the ID of the reward against which the redemption transaction has to be recorded.

coupon_codestring

Pass the coupon code for which you want to reject the pending redemption.

Example request

{
  "reward_id": "reward_bc668",
  "coupon_code": "82E69FBD"
}

Response

200

successboolean

Example response

{
  "data": {
    "approved_date": "05-Jan-2024 12:50:45",
    "created_date": "05-Jan-2024 12:50:45",
    "id": "6597fb251f1bee000df19dc3",
    "last_modified_date": "05-Jan-2024 12:51:20",
    "member_id": "j.buitenhuis@alumio.com",
    "reward_info": {
      "coupon_code": "82E68FBD",
      "points": 500,
      "points_status": "redemption_cancelled",
      "reward_id": "reward_bc668",
      "reward_name": "$10 Gift Certificate Netsuite"
    },
    "status": "rejected",
    "transaction_attributes": {
      "reason": "Shopify in-cart redemption failed"
    },
    "transaction_type": "redeem"
  },
  "success": true
}