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

# Reversing (Billed) Rated Unit Events

`reverseEvent` is similar to `deductEvent`, but differs in that it must refer to an Event that has been previously recorded. `reverseEvent` may not be used to add a negative number of Rated Units to an Account; it may only be used to reverse a previously recorded Event.

`reverseEvent` may only be applied to Events for which the customer has not yet been billed. Therefore, Subscribe will not construct a Credit or process a refund for the item.

## Reverse Rated Unit Events

```

 $rateplan = new RatePlan;
 $event = new Event;
  
 $event->setMerchantEventId('rating_124');
 $event->setMerchantAutoBillId('ab_715');
  
 $response = $rateplan->reverseEvent(array($event));
```

**Parent topic:**[Working with Rate Plans](../topics/ProgGuide_RatePlans)


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