Programs
Burn program balance
Remove funds from a program's wallet for a PREFUNDED asset.
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
Path parameters
program_idstring uuid required
The program's id.
asset_idstring uuid required
The asset's id.
Headers
Idempotency-Keystring
A key you choose to make this request safe to retry: 1 to 255 printable ASCII characters. Send the same key with the same request to get the first response again, marked Idempotent-Replayed: true. Routes that return a secret once, and claim links, do not replay a response. Event ingest uses the key as the event's identity.
Request body
Example request
{
"amount": "500.00",
"description": "Reduce Q1 budget"
}Response
Burn successful
Example response
{
"available": "10000.00",
"journal_entry_id": "657a0312-1aaa-4ba7-842b-edfbb39edf14",
"message": "Program funded successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.