change api generator to before_create callback
generate bitcoin address before create
add statuses for invoices