Groups
Post a CREDIT or DEBIT adjustment to a group
Post a CREDIT or DEBIT journal entry that manually adds to or removes from a group's balance.
post/v1/groups/{group_id}/balances/adjust
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/groups/{group_id}/balances/adjust
- 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": "Team bonus allocation",
"expires_at": "2027-12-31T23:59:59Z",
"expires_in": "90d",
"idempotency_key": "adjust-group-123",
"matures_at": "2027-12-31T23:59:59Z",
"matures_in": "7d",
"program_id": "8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01",
"type": "CREDIT"
}Response
Adjustment applied
Example response
{
"amount": "100.00",
"asset_id": "a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02",
"bucket": "AVAILABLE",
"journal_entry_id": "657a0312-1aaa-4ba7-842b-edfbb39edf14",
"message": "Group balance adjusted successfully",
"program_id": "8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01",
"type": "CREDIT"
}Changes
No recorded changes to this operation across all 1 revision of this API.