Skip to main content
POST
/
v1
/
order
/
invoice
Importar nota fiscal.
curl --request POST \
  --url https://api.staging.cartaosimples.com.br/integration/v1/order/invoice \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pedidoId": "00000000-0000-0000-0000-000000000000",
  "arquivoBase64": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago...",
  "nomeArquivo": "nota-fiscal.pdf"
}
'
{
  "tipo": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
  "titulo": "Requisição inválida.",
  "status": 400,
  "detalhe": "O campo 'cpf' é obrigatório.",
  "instancia": "/v1/order"
}

Authorizations

Authorization
string
header
required

Cabeçalho de autenticação Bearer no formato Bearer <token> onde <token> é seu TOKEN de autenticação

Body

application/json
pedidoId
string<uuid>
required

Identificador do pedido.

Example:

"00000000-0000-0000-0000-000000000000"

arquivoBase64
string
required

Conteúdo do arquivo da nota fiscal codificado em base64.

Minimum string length: 1
Example:

"JVBERi0xLjQKJeLjz9MKMSAwIG9iago..."

nomeArquivo
string
required

Nome do arquivo com extensão (ex: nota-fiscal.pdf).

Minimum string length: 1
Example:

"nota-fiscal.pdf"

Response

OK