# Transfer credits to a child (/docs/api-reference/reseller/transferCreditsToChild)

> Transfer minutes from the reseller balance to a child organization. Credits are deducted from your balance immediately on success. The target organization must be a direct child of your reseller. Use the calculate endpoint first to preview the cost.



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

**POST** `/reseller/credits/transfer`

Transfer minutes from the reseller balance to a child
organization. Credits are deducted from your balance
immediately on success. The target organization must be a
direct child of your reseller. Use the calculate endpoint
first to preview the cost.

```yaml
operationId: transferCreditsToChild
requestBody:
  required: true
  content:
    application/json:
      schema:
        type: object
        required:
          - to_organization_id
          - minutes
          - cost_per_min
        properties:
          to_organization_id:
            type: integer
            description: ID of the child organization to transfer credits to.
          minutes:
            type: integer
            description: Number of minutes to transfer.
          cost_per_min:
            type: number
            description: Rate per minute to charge the child organization (e.g. `0.20`).
            example: 0.2
      example:
        to_organization_id: 4002
        minutes: 20
        cost_per_min: 0.2
responses:
  '200':
    description: Transfer succeeded.
    content:
      application/json:
        schema:
          type: object
          properties:
            success:
              type: boolean
            message:
              type: string
            new_from_balance:
              type: number
              description: Reseller balance after the transfer.
            new_to_balance:
              type: number
              description: Child balance after the transfer.
          example:
            success: true
            message: Credits allocated successfully
            new_from_balance: 59.813
            new_to_balance: 14
```

**curl**

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