v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Reverse Redeemed Points

Lets you reverse a set of points that are redeemed in a transaction. For example, you can use this API to reverse points redeemed for a transaction if the transaction is returned.

post/points/reverse

Request body

redemptionIdstring required

Unique ID of the points redemption to be reversed. This redemption Id will be available in the response of the points redeem API.

pointsToBeReversednumber float

Number of points to be reversed.

Response

200

orgIdinteger
customerIdinteger
reversalIdstring
redemptionIdstring
pointsToBeReversedinteger
pointsReversedinteger

Example response

{
  "orgId": 100458,
  "identifier": {
    "type": "mobile",
    "value": "919879787"
  },
  "customerId": 556875097,
  "reversalId": "zwU7b0",
  "redemptionId": "bdHzg3",
  "pointsToBeReversed": 2,
  "pointsReversed": 2,
  "pointsReversedDetails": {
    "available": 2
  }
}