Mint self-serve test-mode funds onto a programme float
/v1/simulated-depositsRequires an API client bearer token.
Self-serve TEST-MODE programme funding: mints test money onto the named programme's float via the ledger's issuance path, lazily creating the float on first use. Live-mode funding stays operator-only — this route is 403 in live mode regardless of caller role. Requires an Idempotency-Key header.
Parameters
Header parameters
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | required | Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409. |
Request body
+ show properties− hide properties
Example
curl -X POST https://api.rigid.fi/v1/simulated-deposits \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"program_id": "uuid",
"amount": {
"amount": "string",
"currency": "EUR"
}
}'Responses
200Result of the deposit.
+ show properties− hide properties
+ show properties− hide properties
400Validation error — including the tenant's test-mode issuance ceiling being exhausted (code `issuance_ceiling_reached`), or a missing/blank Idempotency-Key header
401Authentication required
403Live mode, or caller is not a programme admin for this programme
409Idempotency-Key reused with a different payload, or the ledger module is definitely not enabled
500Internal server error
503This programme's module configuration has not been received yet (code `config_cold`) — retry