apikey: ********************{
"id": "gen_random_uuid()",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"invoice_number": "string",
"issue_date": "2019-08-24",
"due_date": "2019-08-24",
"total_amount": 0,
"status": "pending",
"billing_address_id": "8e8c171a-db37-4819-9621-58c64d04ab7d",
"billing_method_id": "3e663062-bfd7-4124-b83d-51e363de1315",
"created_at": "now()",
"updated_at": "string",
"created_by": "users.get_auth_profile_id()",
"updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe"
}curl --location --request POST '/invoices' \
--header 'apikey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "gen_random_uuid()",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"invoice_number": "string",
"issue_date": "2019-08-24",
"due_date": "2019-08-24",
"total_amount": 0,
"status": "pending",
"billing_address_id": "8e8c171a-db37-4819-9621-58c64d04ab7d",
"billing_method_id": "3e663062-bfd7-4124-b83d-51e363de1315",
"created_at": "now()",
"updated_at": "string",
"created_by": "users.get_auth_profile_id()",
"updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe"
}'{}