---
title: "Burn program balance"
method: POST
path: "/v1/programs/{program_id}/assets/{asset_id}/burn"
tags: ["Programs"]
---

# Burn program balance

`POST /v1/programs/{program_id}/assets/{asset_id}/burn`

## Request

- Base URL: `https://api.scrip.dev`
- URL: `https://api.scrip.dev/v1/programs/{program_id}/assets/{asset_id}/burn`
- Auth: HTTP bearer

Remove funds from a program's wallet for a PREFUNDED asset.

## Path parameters

- `program_id` string, uuid, required
- `asset_id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- BurnProgramRequest: Removes an amount of an asset from a program wallet.
  - `amount` string, required: Decimal amount to remove from the wallet
  - `description` string: Reason for this burn

## Response `200`

Burn successful

- WalletOperationResponse: The result of funding or burning a program wallet: the journal entry and the available balance after.
  - `available` string: Wallet balance after the operation
  - `journal_entry_id` string, uuid: Ledger journal entry created by this operation
  - `message` string: Confirmation message

## Other responses

- `400`: Invalid request or non-PREFUNDED asset (code: validation_error)
- `401`: The API key is missing or not valid. See [Authentication](https://docs.scrip.dev/authentication).
- `403`: The caller is not allowed to do this.
- `404`: Program or asset not found (code: program_not_found | asset_not_found)
- `409`: Program is archived (code: program_archived)
- `422`: Insufficient program balance (code: insufficient_funds)
- `429`: Too many requests. Wait the number of seconds in the `Retry-After` header, then retry. See [Limits and durations](https://docs.scrip.dev/limits#rate-limits).
- `500`: Something failed on Scrip's side. Retry the request, and quote `request_id` if it keeps failing. [Errors](https://docs.scrip.dev/errors) lists every code, and the [API introduction](https://docs.scrip.dev/api-reference/introduction) describes the error format.

---

[API](https://skmtc.dev/scrip/apis/scrip-api.md) · [All operations](https://skmtc.dev/scrip/apis/scrip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrip/apis/scrip-api/revisions/c52d35da8d97?raw)
