Create recurring invoice
documentedCreate a new recurring invoice schedule.
POST /api/rinvRecurring Invoicesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$subdomain}}.hiveage.com/api/rinv/" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u "{{HIVEAGE_API_KEY}}:" \
-d '{"recurring_invoice": {"connection_id": {{$connection_id}},"recurring_method": "{{$recurring_method}}","start_date": "{{$start_date}}","profile_name": "{{$profile_name}}","profile_no": "{{$profile_no}}","occurrences": {{$occurrences}},"interval": {{$interval}},"interval_unit": "{{$interval_unit}}","due_date_options": {{$due_date_options}},"summary": "{{$summary}}","note": "{{$note}}","payment_options": {{$payment_options}},"allow_partial_payments": {{$allow_partial_payments}},"send_receipts_automatically": {{$send_receipts_automatically}},"po_number": "{{$po_number}}","send_reminders": {{$send_reminders}},"taxes_attributes": [{"name": "{{$tax_name}}","key": {{$tax_key}},"combined_amount_percent": "{{$tax_percent}}","percentage": {{$tax_percentage}}}],"discounts_attributes": [{"name": "{{$discount_name}}","key": {{$discount_key}},"combined_amount_percent": "{{$discount_percent}}","percentage": {{$discount_percentage}}}],"shipping_amounts_attributes": [{"name": "{{$shipping_name}}","key": {{$shipping_key}},"combined_amount_percent": "{{$shipping_percent}}","percentage": {{$shipping_percentage}}}],"items_attributes": [{"date": "{{$item_date}}","description": "{{$item_description}}","price": "{{$item_price}}","quantity": "{{$item_quantity}}","unit": "{{$item_unit}}","sort_order": {{$item_sort_order}}}],"expenses_attributes": [],"tasks_attributes": [],"trips_attributes": []}}'