Credit a manager wallet
POST
/api/v1/managers/{id}/wallet/deposit
prm_managers_deposit
Moves money into a reseller's wallet and posts the matching ledger entry. Idempotent on request_id through the ledger's own unique constraint.
issue_invoice defaults differently here than on the subscriber wallet. Omitting it on a manager deposit issues the document; omitting it on a subscriber deposit does not. Send it explicitly if you care either way.
At a glance
- Authentication
- Staff token or session
- Requires permission
-
prm_managers_depositDeposit to manager wallet - Rate limit
t_mutate- Idempotency key
request_id
Parameters
| Parameter | Description |
|---|---|
idrequired
path · integer
|
Manager id. May not be the caller themselves. |
amountrequired
body · number
|
Major units, a bare JSON number. |
request_idrequired
body · string
|
Idempotency key. |
reason
body · string
|
Free-text note recorded on the ledger row. |
issue_invoice
body · boolean
|
Also record the human-facing accounting document. Defaults to TRUE when omitted on the manager side, unlike the subscriber side. |
Errors
| Code | When it is returned |
|---|---|
ERR_CONFLICT409
|
the request_id is already held by a different ledger line |