balanced / balanced-api

Balanced API specification.
220 stars 72 forks source link

Generate Invoice from existing Credit / Debit transactions #605

Open snconnolly opened 10 years ago

snconnolly commented 10 years ago

The ability to generate invoices for debit or credit transactions to and from users to keep for our own records.

matthewfl commented 10 years ago

@snconnolly have you seen the new order resource in rev1.1. It will allow you to keep track of all transactions and the flow of funds with respect to a transaction.

mjallday commented 10 years ago

Orders do sound like would provide suitable functionality if it's for keeping track of purchases placed by a many buyers for a single merchant but if it's for tracking a single buyer purchasing from many merchants then you need many Orders which is less useful.

An Order which supports many merchants would be more suitable here I think but that may not be an ideal solution. It sounds like @snconnolly wants a way to take an arbitrary group of transactions for a customer and create a grouping construct that ties them together.

This could probably be hacked together now via the meta field but that's not handy if you want to atomically annotate them and perform automated rollups on them (for example state and amount would be useful e.g. sum(all succeeded txns) * 0.05 to get the fee).