post
https://api-v2.pandavideo.com.br/user/limit/transfer_credits
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
POST /user/limit/transfer_credits
Moves credits between a parent (matriz) account and one of its sub-accounts. A single endpoint handles two operations, selected by the type field.
AuthorizationOnly parent accounts can call this endpoint. Both operations require
sub_account_idto be a sub-account owned by the authenticated parent. The caller must also have a Library provisioned.
Operations
| Operation | type | Description |
|---|---|---|
| Transfer credits | transfer | Moves credits from the parent to the sub-account |
| Redeem credits | redeem | Pulls credits from the sub-account back to the parent |
HTTP Method & Path
POST /user/limit/transfer_credits
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) |
Request Body
Content-Type: application/json
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
sub_account_id | string (uuid) | Yes | The sub-account involved in the operation | — |
credits | number | Yes | Amount of credits to move | Greater than 0 |
type | string | Yes | Operation type | Enum: transfer, redeem |
Example — transfer (parent → sub-account)
{ "sub_account_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "credits": 100, "type": "transfer" }Example — redeem (sub-account → parent)
{ "sub_account_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "credits": 50, "type": "redeem" }Response
Success Response (200)
{
"status": "success",
"message": "Credits transferred successfully",
"parent_organization_id": "parent_organization_id",
"sub_account_id": "sub_account_id",
"credits_transferred": 100,
"balance_final": {
"id": "id",
"amount": 100,
"created_at": "2026-04-15T14:24:23.921Z",
"updated_at": "2026-04-17T13:57:26.108Z",
"user_id": "user_id"
}
}| Field | Type | Description |
|---|---|---|
status | string | "success" on completion |
message | string | "Credits transferred successfully" or "Credits redeemed successfully" |
parent_organization_id | string (uuid) | Parent (matriz) organization ID |
sub_account_id | string (uuid) | Sub-account involved |
credits_transferred | number | Credits moved in this operation |
balance_final | object | The recipient's credit balance record after the operation (balance_final.amount = new balance) |
Important: the response has notypeorremaining_creditsfield. Balances are tracked per each org's root user.
Error Responses
All validation/business failures return 400 Bad Request (this endpoint does not use 404 or 422). Common messages:
"sub_account_id and credits are required""Credits amount must be greater than zero""Target account not found""Transfer not allowed - target account is not a sub-account of current organization""Target account does not have a parent organization"(redeem)'Invalid type. Must be "redeem" or "transfer"'"Insufficient credits"
Other: 401 Unauthorized (invalid token); 404 Not Found only if the caller has no Library; 500 Internal Server Error.
Example Usage
cURL
curl -X POST \
'https://api-v2.pandavideo.com.br/user/limit/transfer_credits' \
-H 'Authorization: your_api_token_here' \
-H 'Content-Type: application/json' \
-d '{ "sub_account_id": "your_sub_account_id_here", "credits": 100, "type": "transfer" }' 400Bad Request
401Unauthorized
500Internal Server Error
