- Introdução
- Consumindo a API
- Características da API
- Mensagens de Erro
- Material de Apoio
- Authentication
- Address Parsing
- Billing/DailySummary
- Content Classification
- Content Compare
- Content Extraction
- Content Extraction Async
- Content Extraction Distance
- Content Fullreader
- Enrichment
- Facematch
- Generative Content Extraction
- Image Properties
- Image Reporting - Continuous Improvement
- Invoice Extraction
- License Plate Recognition
- Liveness Detection
- Liveness Streaming
- MultiAddress Parsing
- MultiPage Content Extraction
- Payment Card Extraction
- Vio Extraction
Invoice Extraction [multipart/form-data]
Obsolete
POST
https://mostqiapi.com/process-invoice/extraction
notas fiscaisnfeocriocrnfsecte
Last modified:2025-01-24 20:43:11
INFO
Request
Header Params
Authorization
string
required
Example:
Bearer {{bearer_token}}
Body Params multipart/form-data
file
file
optional
Binário do arquivo a ser processado.
fileUrl
string
optional
Url pública do arquivo a ser processado.
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mostqiapi.com/process-invoice/extraction' \
--header 'Authorization: Bearer ' \
--form 'file=@""' \
--form 'fileUrl=""'
Responses
🟢200OK
application/json
Body
result
array [object {3}] | null
optional
score
number <float> | null
optional
tags
array[string] | null
optional
extractions
array [object {3}] | null
optional
requestId
string
required
elapsedMilliseconds
integer
required
status
object
required
message
string | null
required
code
string
required
errors
array [object {2}] | null
required
Example
{
"result": [
{
"score": 1,
"tags": [
"id=bra-fiscal-document-1",
"language=pt-BR",
"std-type=fiscal-document",
"type=documento-fiscal"
],
"extractions": [
{
"source": "official",
"fields": [
{
"name": "autenticidade_nota",
"value": "1",
"score": 1
},
{
"name": "chave_acesso",
"value": "00000000000000000000000000000000000000000000",
"score": 1
},
{
"name": "chave_verificacao",
"value": "1XXX.2XXX.3XXX.4XXXX",
"score": 1
},
{
"name": "codigo_servico",
"value": "99.99",
"score": 1
},
{
"name": "cpf_cnpj",
"value": "99999999999999",
"score": 1
},
{
"name": "cpf_cnpj_prestador",
"value": "99999999999900",
"score": 1
},
{
"name": "data_emissao",
"value": "2020-08-07",
"score": 1
},
{
"name": "data_emissao_rps",
"value": null,
"score": 0
},
{
"name": "download",
"value": "PD94bWwg....",
"score": 1
},
{
"name": "download_mimetype",
"value": "application/xml",
"score": 1
},
{
"name": "email",
"value": "",
"score": 1
},
{
"name": "email_prestador",
"value": "contato@companyname.com",
"score": 1
},
{
"name": "endereco_bairro",
"value": "XXXXXXXXXXX",
"score": 1
},
{
"name": "endereco_bairro_prestador",
"value": "XXXXXXXXXXX",
"score": 1
},
{
"name": "endereco_cep",
"value": "99999-000",
"score": 1
},
{
"name": "endereco_cep_prestador",
"value": "99999-000",
"score": 1
},
{
"name": "endereco_complemento",
"value": "CONJ 9999",
"score": 1
},
{
"name": "endereco_complemento_prestador",
"value": null,
"score": 0
},
{
"name": "endereco_logradouro",
"value": "XXXXXXXXXXX",
"score": 1
},
{
"name": "endereco_logradouro_prestador",
"value": "XXXXXXXXXXX",
"score": 1
},
{
"name": "endereco_municipio",
"value": "XXXXX XXXXXX",
"score": 1
},
{
"name": "endereco_municipio_prestador",
"value": "XXXXX XXXXXX",
"score": 1
},
{
"name": "endereco_numero",
"value": "100",
"score": 1
},
{
"name": "endereco_numero_prestador",
"value": "999",
"score": 1
},
{
"name": "endereco_pais",
"value": "Brasil",
"score": 1
},
{
"name": "endereco_pais_prestador",
"value": "Brasil",
"score": 1
},
{
"name": "endereco_uf",
"value": "XX",
"score": 1
},
{
"name": "endereco_uf_prestador",
"value": "XX",
"score": 1
},
{
"name": "exigibilidade_iss",
"value": "1",
"score": 1
},
{
"name": "inscricao_estadual",
"value": null,
"score": 0
},
{
"name": "inscricao_estadual_prestador",
"value": "99999",
"score": 1
},
{
"name": "iss_retido",
"value": "2",
"score": 1
},
{
"name": "local_prestacao_servico",
"value": "9999999",
"score": 1
},
{
"name": "nome",
"value": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"score": 1
},
{
"name": "nome_fantasia_prestador",
"value": null,
"score": 0
},
{
"name": "nome_prestador",
"value": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"score": 1
},
{
"name": "numero_nota_fiscal",
"value": "9999",
"score": 1
},
{
"name": "numero_rps",
"value": null,
"score": 0
},
{
"name": "outras_informacoes",
"value": null,
"score": 0
},
{
"name": "regime",
"value": "XXXXX",
"score": 1
},
{
"name": "serie",
"value": "XXXXX",
"score": 1
},
{
"name": "situacao",
"value": "",
"score": 1
},
{
"name": "situacao_data",
"value": "",
"score": 1
},
{
"name": "situacao_motivo",
"value": "",
"score": 1
},
{
"name": "situacao_tipo",
"value": "autorizada",
"score": 1
},
{
"name": "telefone",
"value": null,
"score": 1
},
{
"name": "telefone_prestador",
"value": "(99)999999999",
"score": 1
},
{
"name": "url",
"value": "https://www.prefeitura.uf.gov.br/documentos.action?senha=xxxx.xxxx.xxxx.xxxx",
"score": 1
},
{
"name": "valor_base_calculo",
"value": "1000.0",
"score": 1
},
{
"name": "valor_cofins",
"value": null,
"score": 0
},
{
"name": "valor_csll",
"value": null,
"score": 0
},
{
"name": "valor_deducoes",
"value": null,
"score": 0
},
{
"name": "valor_inss",
"value": null,
"score": 0
},
{
"name": "valor_irrf",
"value": null,
"score": 1
},
{
"name": "valor_iss",
"value": "50.00",
"score": 1
},
{
"name": "valor_liquido",
"value": "1000.0",
"score": 1
},
{
"name": "valor_pis",
"value": null,
"score": 0
}
],
"tables": [
{
"name": "tabela_servico",
"score": 1,
"headers": [
{
"name": "descricao_item",
"score": 1
},
{
"name": "codigo_servico_item",
"score": 1
},
{
"name": "aliquota_iss_item",
"score": 1
},
{
"name": "valor_unitario",
"score": 1
},
{
"name": "quantidade_item",
"score": 1
},
{
"name": "valor_servico",
"score": 1
}
],
"values": [
[
{
"name": "descricao_item",
"value": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"score": 1
},
{
"name": "codigo_servico_item",
"value": "99.00",
"score": 1
},
{
"name": "aliquota_iss_item",
"value": "0.025",
"score": 1
},
{
"name": "valor_unitario",
"value": "1000.0",
"score": 1
},
{
"name": "quantidade_item",
"value": "1.0",
"score": 1
},
{
"name": "valor_servico",
"value": "1000.0",
"score": 1
}
]
]
}
]
},
{
"source": "iocr",
"fields": [
{
"name": "chave_verificacao",
"value": "1XXX.2XXX.3XXX.4XXXX",
"score": 1
},
{
"name": "cpf_cnpj",
"value": "99999999999999",
"score": 1
},
{
"name": "cpf_cnpj_prestador",
"value": "99999999999990",
"score": 1
},
{
"name": "data_emissao",
"value": "2020-08-07",
"score": 1
},
{
"name": "endereco",
"value": "XXXXXXXXXXX",
"score": 1
},
{
"name": "endereco_prestador",
"value": "XXXXXXXXXXX",
"score": 1
},
{
"name": "inscricao_municipal_prestador",
"value": "0000000000000000000000000",
"score": 1
},
{
"name": "municipio",
"value": "XXXXXX XXXXX",
"score": 1
},
{
"name": "municipio_prestador",
"value": "XXXXXXX XXXX",
"score": 1
},
{
"name": "nome",
"value": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"score": 1
},
{
"name": "nome_prestador",
"value": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"score": 1
},
{
"name": "telefone_prestador",
"value": "+5599999999999",
"score": 1
},
{
"name": "valor_liquido",
"value": "1000.00",
"score": 1
},
{
"name": "valor_total_nota",
"value": "1000.00",
"score": 1
}
],
"tables": []
}
]
}
],
"requestId": "XXXXXXXXXXXXXXXXXXXXXX",
"elapsedMilliseconds": 5526,
"status": {
"message": "Success",
"code": "S100",
"errors": null
}
}
🟠400R101 A specified parameter is wrong
🟠401R117 Invalid authorization data
🟠400R130 Unsupported file format
🔴500E100 The request could not be processed
Modified at 2025-01-24 20:43:11