admin

Credits the identity ledger behind a key. Idempotent by `reason`.

post/admin/keys/{id}/credit

Request

  • Base URL: https://api.mapmap.ai
  • URL: https://api.mapmap.ai/admin/keys/{id}/credit
  • Auth: HTTP bearer

Path parameters

idstring required

Key id

Request body

penceinteger required

Amount to credit, in pence (>= 1).

reasonstring required

Idempotency reason, e.g. stripe:cs_…. Repeating a reason is a no-op returning the balance the original credit produced.

Response

New (or unchanged, when the reason was replayed) balance

balance_penceinteger required

Balance after this credit, in pence.

duplicateboolean required

true when the reason had already been applied (idempotent replay; nothing changed).

identity_idstring required

Identity whose ledger was credited.

Changes

No recorded changes to this operation across all 1 revision of this API.