# Perform transaction erasure

This method enables the member to perform Transaction Erasure for transactions that meet the predefined conditions.
Note: For all date-time fields in the request and response, if the timestamp contains a timezone offset after the + symbol (for example, 2024-07-21T12:30:45+05:30), the value after + will be ignored during processing. Only the date and time portion before the + sign will be considered.

Endpoint: POST /transactionErasure
Version: 3.0.0
Security: MuseumPlaceholderAuth

## Security:

  - `MuseumPlaceholderAuth` (unknown)

## Request fields (application/json):

  - `orderId` (string, required)
    Enter the unique order ID from the loyalty member's order.
    Example: A2034354570

  - `userId` (string, required)
    Enter the unique ID of the loyalty member.
    Example: exsdf1038

## Response 200:

  - `200` (unknown)
    successful operation

## Response 200 fields (application/json):

  - `transactiondetails` (object)
    Displays the following parameters-

  - `transactiondetails.orderId` (string)
    Displays the loyalty member's unique order ID for the order they placed.
    Example: A2034354570

  - `transactiondetails.erasureDate` (string)
    Displays the date of the transaction erasure in yyyy-MM-dd'T'HH:mm:ssZ format.
    Example: 2024-08-08T07:00:12+0000

  - `transactiondetails.userId` (string)
    Displays the unique ID of the loyalty member.
    Example: user@domain.com

  - `transactiondetails.pointsUsed` (integer)
    Displays the number of points used to erase the transaction.
    Example: 100

  - `transactiondetails.orderAttribute` (object)
    Displays the following details-

  - `transactiondetails.orderAttribute.attribute_1` (string)
    Displays a description of the attributes associated with the order. The order attributes are completely configurable based on the needs of the client.
    Example: Value1

## Response 201:

  - `201` (unknown)
    successful operation

## Response 400:

  - `400` (unknown)
    AC1004 Missing Parameters | AC1012 User not found

## Response 404:

  - `404` (unknown)
    AC1005 No data found

## Response 405:

  - `405` (unknown)
    AC1002 Request Not Authorized

