POST
/
invoice
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
    }
  ]
}'
{
  "invoiceId": 123,
  "contactId": 123
}

Authorizations

x-api-key
string
header
required

Body

application/json
date
string
required
expirationDate
string
required
contactId
number
description
string
totalAmount
number

Monto total de la factura, si se envia items el monto va a ser ignorado

externalReference
string
newContact
object
sendEmail
boolean
default:true

Envía email a los pagadores del contacto con acceso al portal para que page la factura.

items
object[] | null

Solo se pueden usar items de type "subscription" y de frecuencia "one_time", si items esta presente el totalAmount va a ser autocalculado

Response

201
application/json
Factura creada con éxito
invoiceId
number
required
contactId
number
required