curl --request POST \
--url https://api.fint.app/api/v1/invoice \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"contactId": 123,
"description": "<string>",
"date": "<string>",
"totalAmount": 123,
"expirationDate": "<string>",
"externalReference": "<string>",
"newContact": {
"externalReference": "<string>",
"name": "<string>",
"lastName": "<string>",
"documentType": "DNI",
"documentNumber": "<string>",
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"address": "<string>",
"country": "<string>",
"metadata": {},
"payerContact": {
"name": "<string>",
"lastName": "<string>",
"documentType": "DNI",
"documentNumber": "<string>",
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"address": "<string>",
"country": "<string>"
},
"tagGroup": {
"name": "<string>"
},
"tags": [
{
"name": "<string>"
}
],
"sendPortalInvite": true
},
"sendEmail": true,
"items": [
{
"itemId": 123,
"quantity": 1
}
]
}'