Actions7
- User Actions
- Wallet Actions
- Workflow Actions
- Model Actions
Wallet → Deduct Credits
AI-generatedSummary
Deduct credits from a specified user's PantheraHive wallet after a workflow runs.
Inputs
- User ID (required) — The PantheraHive user ID whose credits to deduct.
- Credits to Deduct (required) — Number of credits to deduct from the user's wallet; must be at least 1.
- Workflow ID — Optional workflow ID that triggered this deduction for audit trail purposes.
- Reason — Optional human-readable reason for the credit deduction.
Output shape
a list with a single JSON object containing the API response from the credit deduction request
Returns the API response JSON for the deduct operation. Throws error if User ID is missing or credits to deduct is less than 1.
Examples
Example 1: Deduct 5 credits from a user's wallet due to workflow usage
Provide User ID, set Credits to Deduct to 5, optionally add Workflow ID and Reason for audit.