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

> Take back unused minutes from a child organization to the reseller balance. The refund is calculated at the child's current rate, so you don't pass one. This matches exactly what was originally charged. Use the calculate endpoint first to preview the refund.



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

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

Take back unused minutes from a child organization to the
reseller balance. The refund is calculated at the child's
current rate, so you don't pass one. This matches exactly
what was originally charged. Use the calculate endpoint
first to preview the refund.

```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
```

**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
}'
```
