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

# Reverse Reward Transaction

> Endpoint to reverse a reward transaction

<Note>The `x-api-key` header value to be used on this API is your **partner API key**, which can be generated through the dashboard.</Note>

<ParamField path="id" type="integer" required>
  The Benji Platform ID of the reward transaction
</ParamField>

### Return values

<ResponseField name="reward_transaction" type="object">
  A reward\_transaction object property

  <Expandable title="properties" defaultOpen="true">
    <ResponseField name="reward_transaction_id" type="integer">Benji Platform reward transaction identifier</ResponseField>

    <ResponseField name="transaction_status" type="string">
      String representing one of the transaction status values:

      <Expandable title="possible transaction status values" type="enum">
        * **REVERSED (1)** : Indicating a transaction was successfully reversed <br />
        * **FAILED (2)** : Indicating a transaction failed to reverse since it has already been completed  <br />
        * **PENDING (3)** : Indicating a transaction is pending and has not been reversed yet  <br />
        * **INITIATED (4)** : Indicating a transaction was initiated but not yet reversed  <br />
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
      "code": "ok",
      "data": {
          "reward_transaction_id": 1,
          "transaction_status": "REVERSED"
       
      }
  }
  ```

  ```json 400 theme={null}
  {
    "error": "invalid_token",
    "message": "Invalid token"
  }
  ```

  ```json 401 theme={null}
  {
    "error": "unauthorized_request",
    "message": "Token is not authorized to make this request"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "transaction_does_not_exist",
    "message": "The transaction does not exist"
  }
  ```
</ResponseExample>

<Tip>Note that you will only receive data that you as a loyalty partner or merchant partner are allowed to see based on the permissions in the access token you provide to the API.</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.