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.
نظرة سريعة
- المصادقة
- رمز موظّف أو جلسة
- تتطلب صلاحية
-
prm_managers_depositDeposit to manager wallet - حد المعدل
t_mutate- مفتاح عدم التكرار
request_id
المعاملات
| المعامل | الوصف |
|---|---|
idمطلوب
path · integer
|
Manager id. May not be the caller themselves. |
amountمطلوب
body · number
|
Major units, a bare JSON number. |
request_idمطلوب
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. |
الأخطاء
| الرمز | متى تُرجَع |
|---|---|
ERR_CONFLICT409
|
the request_id is already held by a different ledger line |