Bulk Allocate Credits
This endpoint allows you to allocate credits to multiple organizations in a single request. Use this to efficiently distribute credits by providing an array of organization UUIDs and the corresponding credit amounts. Authentication is required via the user-token variable, and the host variable must be set to your API base URL.
Request Body Parameters
credit_allocation(required, array): An array of objects, each containing:-
organization_uuid(string): The unique identifier of the organization. -
credits(string or integer): The number of credits to allocate.
-
Example:
[
{"organization_uuid": "5c954455-b170-4432-9ad8-7bad9723c594", "credits": "3"}
]
Example Success Response
{
"status": "success",
"message": "Credits allocated successfully."
}
Example Error Response
{
"status": "error",
"message": "Invalid organization UUID or insufficient credits."
}
Usage Notes
-
Authentication: A valid
user-tokenmust be provided in the environment variables. -
Required Parameters: The
credit_allocationfield is required and must be a valid JSON array. -
Content-Type: Set to
multipart/form-data. -
URL Variables: The
hostvariable should be set to your API base URL.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
