> ## Documentation Index
> Fetch the complete documentation index at: https://help-loyalife.xoxoday.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reversal Points

> Reverse a redemption transaction and restore the member's points balance.

Cancels a previously completed redemption and restores the member's points balance. Use this when fulfilment fails after points have already been deducted — for example, a hotel booking that couldn't be confirmed, or a gift card that was not issued.

Key behaviours to know:

* **No time limit** — reversals can be called at any time after the original redemption, there is no expiry window.
* **One reversal per transaction** — calling `ReversalPoints` a second time with the same `ExternalReference` will fail. Store the outcome of the first call.
* **`ExternalReference` is required** — this UUID is the only link back to the original `RedeemPoints` transaction. If you didn't save it, the reversal cannot be processed.

## Responses

<AccordionGroup>
  <Accordion title="200 — Success">
    | Path                       | Type    | Description                                              |
    | -------------------------- | ------- | -------------------------------------------------------- |
    | `results.IsSucessful`      | boolean | `true`                                                   |
    | `results.ErrorCode`        | string  | `000`                                                    |
    | `results.ExceptionMessage` | string  | `Success`                                                |
    | `results.ReturnObject`     | boolean | `true` when reversal is complete and points are restored |
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml POST /lbms-ingress/pg-lm/API/PG/ReversalPoints
openapi: 3.1.0
info:
  title: Loyalife LBMS API
  description: >-
    REST API for Loyalife's Loyalty Management System. Covers member management,
    OTP authentication, loyalty transactions, and points redemption.
  version: 1.0.0
  contact:
    name: Xoxoday Support
    email: support@xoxoday.com
servers:
  - url: https://loyalife-api.xoxoday.in
    description: Production
security:
  - bearerAuth: []
paths:
  /lbms-ingress/pg-lm/API/PG/ReversalPoints:
    post:
      tags:
        - Points Redemption
      summary: Reversal Points
      description: >-
        Reverse a redemption transaction and restore the member's points
        balance.
      operationId: reversalPoints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - RelationReference
                - MerchantName
                - ExternalReference
                - ProgramId
              properties:
                RelationReference:
                  type: string
                  description: >-
                    Must match the RelationReference from the original
                    RedeemPoints call.
                  example: jane.doe@example.com
                MerchantName:
                  type: string
                  description: >-
                    Must match the MerchantName from the original RedeemPoints
                    call.
                  example: Amazon
                ExternalReference:
                  type: string
                  format: uuid
                  description: >-
                    UUID returned by RedeemPoints. Identifies the redemption
                    being reversed.
                  example: 3FA85F64-5717-4562-B3FC-2C963F66AFA6
                ProgramId:
                  type: integer
                  example: 19
            example:
              RelationReference: jane.doe@example.com
              MerchantName: Amazon
              ExternalReference: 3FA85F64-5717-4562-B3FC-2C963F66AFA6
              ProgramId: 19
      responses:
        '200':
          description: Reversal successful — points restored
          content:
            application/json:
              example:
                results:
                  IsSucessful: true
                  ErrorCode: '000'
                  ExceptionMessage: Success
                  ReturnObject: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT obtained from Generate Auth Token. Pass as `Authorization: bearer
        {token}`.

````