Authorization: Bearer ********************
{
"amount_cents": 79979,
"company_id": "uuid da empresa",
"borrower": {
"document_number": "12312312312",
"name": "John Doe",
"email": "johndoe@example.com",
"state_tax_number": "12345678",
"phone_number": "99999999999",
"type": "NATURAL",
"address": {
"postal_code": "0000000",
"district": "Logradouro",
"district_type": "Rua",
"city": "São Paulo",
"city_code": "3550308",
"state": "SP",
"neighborhood": "Bairro",
"number": "60",
"additional_information": "Andar 7"
}
},
"service_code": "17.02",
"additional_information": "Serviço prestado em 02/2025",
"tax_class": "REF...",
"taxes": [
{
"kind": "iss",
"rate": 0.2
},
{
"kind": "cofins",
"rate": 0.4
},
{
"kind": "iss",
"rate": 0.2
}
]
}
curl --location --request POST 'https://connect.setfin.com.br/v1/product_invoices' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount_cents": 79979,
"company_id": "uuid da empresa",
"borrower": {
"document_number": "12312312312",
"name": "John Doe",
"email": "johndoe@example.com",
"state_tax_number": "12345678",
"phone_number": "99999999999",
"type": "NATURAL",
"address": {
"postal_code": "0000000",
"district": "Logradouro",
"district_type": "Rua",
"city": "São Paulo",
"city_code": "3550308",
"state": "SP",
"neighborhood": "Bairro",
"number": "60",
"additional_information": "Andar 7"
}
},
"service_code": "17.02",
"additional_information": "Serviço prestado em 02/2025",
"tax_class": "REF...",
"taxes": [
{
"kind": "iss",
"rate": 0.2
},
{
"kind": "cofins",
"rate": 0.4
},
{
"kind": "iss",
"rate": 0.2
}
]
}'
{
"id": "string",
"number": "0",
"reference_id": "string",
"company_id": "string",
"borrower_id": "string",
"borrower": {
"document_number": "service",
"name": "string",
"email": "string",
"state_tax_number": "string",
"phone_number": "string",
"type": "LEGAL",
"address": {
"postal_code": "string",
"district": "string",
"district_type": "string",
"city": "string",
"city_code": "string",
"state": "string",
"neighborhood": "string",
"number": "string",
"additional_information": "string"
}
},
"status": "ISSUED",
"invoice_order_id": "string",
"finality": "string",
"cancelled_at": "string",
"issued_at": "string",
"invoice_payment_id": "string",
"reason": "string",
"reference_number": "string"
}