Create transaction
hello_club_create_transactionWRITE: create a financial transaction for a member (a charge, or a credit when is_credit is true), e.g. an invoice line or a manual adjustment. This changes the member's amount owing / account credit in the club's books and, with notify_by_email, emails the member. Not idempotent: calling twice creates two transactions. Confirm member, amount and type with the user first. POST /transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Transaction date (default: now). | |
| type | Yes | Transaction type (use 'other' for a manual charge). | |
| amount | Yes | Amount in the club's currency, a positive number (tax inclusive). | |
| details | Yes | Description shown on the invoice. | |
| due_date | No | Payment due date. | |
| is_credit | No | True = a credit to the member instead of a charge (default false). | |
| member_id | Yes | Member the transaction is for. | |
| notify_by_email | No | Email the member about this transaction (default false). |