# Revert credits (/docs/api-reference/reseller-credits/revertCreditsFromChild)

> Take unused minutes back from a client. The exact mirror of a transfer, so you do not pass a rate.

> **Reseller accounts only.** [Request access](https://omnidim.io/contact-us?reason=reseller_api&lock=1).

**POST** `/reseller/credits/revert`

Take unused minutes back from a client. The exact mirror of a
transfer, so you do not pass a rate.

The client is deducted at their own current rate, which is what they
were charged, and you are refunded at your rate, which is what it cost
you. Use the calculate endpoint first to preview both amounts.

```yaml
operationId: revertCreditsFromChild
requestBody:
  required: true
  content:
    application/json:
      schema:
        type: object
        required:
          - from_organization_id
          - minutes
        properties:
          from_organization_id:
            type: integer
            description: ID of the child organization to revert credits from.
          minutes:
            type: integer
            description: Number of minutes to revert.
      example:
        from_organization_id: 4002
        minutes: 5
responses:
  '200':
    description: Credits reverted.
    content:
      application/json:
        schema:
          type: object
          properties:
            success:
              type: boolean
            message:
              type: string
            new_from_balance:
              type: number
              description: Child balance after the revert.
            new_to_balance:
              type: number
              description: Reseller balance after the revert.
          example:
            success: true
            message: Credits reverted successfully
            new_from_balance: 13
            new_to_balance: 60.263
```

**Python SDK**

```python
from omnidimension import Client
client = Client(api_key)

# No rate: the client is deducted at their current one and you are
# refunded at yours.
response = client.reseller.revert_credits(from_organization_id=5678, minutes=40)
print(response)
```

**curl**

```bash
curl -X POST "https://backend.omnidim.io/api/v1/reseller/credits/revert" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "from_organization_id": 4002,
  "minutes": 5
}'
```