| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
DELETE /organizations
Deletes a sub-account (child organization) owned by the authenticated parent account. This permanently removes the sub-account, its users, and its Stripe billing subscription.
Interested in SubAccounts?SubAccounts is part of a specific plan. If you'd like to join this plan or learn more about the feature, get in touch with Panda Video support through your dashboard: https://dashboard.pandavideo.com.br/#/videos.
AuthorizationOnly parent accounts can delete their own sub-accounts. The target
organization_idmust be a sub-account whoseparent_organization_idequals the authenticated parent organization.
The sub-account must be inerrorstatusA sub-account can only be deleted when its
statusiserror. Deleting anactive,inactive, orblockedsub-account fails with400 "Subaccount must be in error status to be deleted."(To take a running sub-account out of service, set its status via Update SubAccount first.)
HTTP Method & Path
DELETE /organizations?action=delete-sub-account
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
- Security Scheme:
PandaAuth(apiKey) - Header:
Authorization: <your_api_token>(no Bearer prefix)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Panda API token (without Bearer prefix) |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Must be delete-sub-account |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string (uuid) | Yes | ID of the sub-account to delete |
Example Request Body
{
"organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917"
}Response
Success Response (200)
{
"status": "deleted",
"organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917"
}Response Schema
| Field | Type | Description |
|---|---|---|
status | string | "deleted" when the sub-account was removed |
organization_id | string (uuid) | ID of the deleted sub-account |
Irreversible side effects: deleting a sub-account cancels its Stripe customer and subscriptions and destroys all users of the sub-account organization before removing the organization itself. This cannot be undone.
Error Responses
- 400 Bad Request — one of:
- Validation error (missing/invalid
organization_id). "Organization is not a sub-account."— the target has no parent organization."You do not have permission to delete this sub-account."— the target is not owned by your organization."Subaccount must be in error status to be deleted."— the sub-account is not inerrorstatus.
- Validation error (missing/invalid
- 401 Unauthorized — Invalid or missing API token.
- 500 Internal Server Error — server error (also returned when the
organization_iddoes not exist).
Example Usage
cURL
curl -X DELETE \
'https://api-v2.pandavideo.com.br/organizations?action=delete-sub-account' \
-H 'Authorization: your_api_token_here' \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "efcb5915-df17-46b6-bfd8-e8998bc94917"
}' 400Bad Request
401Unauthorized
500Internal Server Error
