Groups
Release group balance
Moves group balance from HELD to AVAILABLE. Allowed on archived assets so existing reservations can be unwound.
post/v1/groups/{group_id}/balances/release
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/groups/{group_id}/balances/release
- Auth: HTTP bearer
Path parameters
group_idstring uuid required
The group'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": "100.00",
"asset_id": "a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02",
"bucket": "AVAILABLE",
"description": "Order #123",
"earned_from": "2027-01-01T00:00:00Z",
"earned_to": "2027-12-31T23:59:59Z",
"idempotency_key": "order-1001-completed",
"lot_ids": [
"4a6c8e02-b1d3-4f57-9c80-e2a4b6d8f012"
],
"program_id": "8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01",
"reference_id": "auth_12345"
}Response
Balance released
Example response
{
"amount_processed": "100.00",
"asset_id": "a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02",
"balance": {
"available": "1400.00",
"deferred": "0.00",
"held": "200.00"
},
"journal_entry_id": "657a0312-1aaa-4ba7-842b-edfbb39edf14",
"lots_processed": [
{
"amount": "50.00",
"id": "4a6c8e02-b1d3-4f57-9c80-e2a4b6d8f012"
}
],
"message": "Processed 100.00",
"program_id": "8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01",
"reference_id": "auth_12345"
}Changes
No recorded changes to this operation across all 1 revision of this API.