| Account | Amount |
|---|---|
| assets/bank/checking | {{amount}} |
| liabilities/payable/vendor | {{vendor_pay}} |
| income/service-revenue | {{revenue}} |
| Account | Amount |
|---|---|
| assets/receivables/user | {{pay_amount}} |
| liabilities/escrow/hold | {{pay_amount}} |
| assets/cash/operating | {{fee}} |
| Account | Amount |
|---|---|
| expense/payouts/vendor | {{payout}} |
| assets/cash/operating | {{payout}} |
| expense/fees/processing | {{proc_fee}} |
| 1 | await fragment.addLedgerEntry({ |
| 2 | ik: "some-ik", |
| 3 | ledgerIk: "your-ledger-ik", |
| 4 | type: "user_funds_account", |
| 5 | parameters: { |
| 6 | user_id: "user-1", |
| 7 | funding_amount: "10000", |
| 8 | }, |
| 9 | }); |
mutation AddLedgerEntry($ik: SafeString!, $entry: LedgerEntryInput!) {
addLedgerEntry(ik: $ik, entry: $entry) {
... on AddLedgerEntryResult {
entry {
created
posted
}
lines {
amount
}
}
... on Error {
code
message
}
}
}