Errors
payment_required
Your account does not have enough balance or an active plan for this request.
| HTTP status | Type | Code |
|---|---|---|
| 402 | billing_error | payment_required |
What it means
The workspace is out of credit or its plan does not cover this action. Top up the balance or upgrade the plan, then retry.
How to handle it
Top up the workspace balance or change the plan in the console, then retry.
Example response
{
"detail": "Your account does not have enough balance or an active plan for this request.",
"error": {
"type": "billing_error",
"code": "payment_required",
"message": "Your account does not have enough balance or an active plan for this request.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/payment_required",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/leads/{lead_id}/call-now— Call a lead nowPOST /api/v1/instant/call-now— Call a lead in a campaign nowPOST /api/v1/agents/— Create an agentPOST /api/v1/calls/— Place a callPOST /api/v1/campaigns/— Create an empty campaignPOST /api/v1/campaigns/create-with-leads— Create a campaign with its leadsPOST /api/v1/agents/import— Import an agent from another platformPOST /api/v1/campaigns/{campaign_id}/start— Start a campaignPOST /api/v1/agents/{agent_id}/test-call— Place a test callPUT /api/v1/campaigns/{campaign_id}— Update a campaign