Revert credits
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.
ID of the child organization to revert credits from.
Number of minutes to revert.
curl -X POST 'https://backend.omnidim.io/api/v1/reseller/credits/revert' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "from_organization_id": 4002, "minutes": 5 }'
{ "success": true, "message": "Credits reverted successfully", "new_from_balance": 13, "new_to_balance": 60.263 }
Authorization
BearerAuth Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
Transfer credits to a child
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.
Credit transfer logs
Paginated history of all credit transfers and reverts for the reseller account. Returns reverse-chronological order by default. Date filters are inclusive.
