---
title: "Deprecated — agent runs deduct credits server-side"
method: POST
path: "/account/credits/deduct"
tags: ["Account"]
deprecated: true
---

# Deprecated — agent runs deduct credits server-side

`POST /account/credits/deduct`

## Request

- Base URL: `https://opnplatform.com/api`
- URL: `https://opnplatform.com/api/account/credits/deduct`
- Auth: HTTP bearer

> **Deprecated.**

Not needed for agent runs: POST /api/packiq/run deducts (and refunds) credits itself.

## Request body

- object
  - `agent_id` string, required: PACKIQ agent ID (e.g. quote-analyser)
  - `cost` integer, required: Credits to deduct

## Response `200`

Credits deducted — returns new balance

## Other responses

- `402`: Insufficient credits

---

[API](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network.md) · [All operations](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network/llms.txt) · [OpenAPI document](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network/revisions/f427c0467bb2?raw)
