curl --location --request POST 'https://demo.preprod.crego.ai/flow/api/invoices/' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"ref_id": "string",
"invoice_number": "string",
"total_amount": 0,
"tax_amount": 0,
"invoice_date": "2019-08-24",
"due_date": "2019-08-24",
"program": "9d904916-95ab-4cd6-a597-6e333dcf718f",
"seller": "23114950-7589-4733-93df-bd447b3d8b32",
"buyer": "720848cf-de0c-4355-87e9-070272f1053c",
"anchor": "26d61dc1-ac8f-449d-af9f-07ef205adb1e",
"purchase_order": "94a9570d-82e2-4a81-b165-8cff67d9c735",
"tags": [
"string"
],
"refs": {},
"narration": "string"
}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ref_id": "string",
"invoice_number": "string",
"total_amount": 0,
"financed_amount": 0,
"available_amount": 0,
"tax_amount": 0,
"invoice_date": "2019-08-24",
"due_date": "2019-08-24",
"program": "9d904916-95ab-4cd6-a597-6e333dcf718f",
"seller": "23114950-7589-4733-93df-bd447b3d8b32",
"buyer": "720848cf-de0c-4355-87e9-070272f1053c",
"anchor": "26d61dc1-ac8f-449d-af9f-07ef205adb1e",
"purchase_order": "94a9570d-82e2-4a81-b165-8cff67d9c735",
"status": "draft",
"verified_at": "2019-08-24T14:15:22.123Z",
"verified_by": "8c493be0-efe2-4a3e-bdbd-7af0eab50aa2",
"tags": [
"string"
],
"refs": {},
"narration": "string",
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}