Oten Tecnologia
Oten Fiscal
Documentation
GET/nfse/sincronizar/status/{protocol}

Check an NFS-e sync request

Returns the status of an NFS-e synchronization request by protocol.

Production: https://api.otentecnologia.com.brSandbox: https://api.sandbox.otentecnologia.com.br

Parameters

protocol
path · required
ID generated by the API when the synchronization request was submitted

Request

cURL
curl -X GET 'https://api.otentecnologia.com.br/nfse/sincronizar/status/{protocol}' \
  -H 'x-api-key: $OTEN_API_KEY' \
  -H 'Content-Type: application/json'

Responses

200OK
JSON
[
  {
    "date": "2024-07-05T10:30:10-03:00",
    "nfse": {
      "id": "5eb6caf7cbb4e809d616c3a1"
    },
    "response": "Sincronização de NFS-e concluída.",
    "status": "CONCLUIDO"
  }
]
400Bad Request
401Unauthorized
JSON
{
  "error": {
    "message": "O token informado é inválido. Para o ambiente de produção, Acesse https://www.otentecnologia.com.br/, e gere o seu TOKEN de acesso"
  }
}
404Not Found
JSON
{
  "error": {
    "message": "Não localizamos qualquer solicitação de sincronização com os parâmetros informados",
    "data": {
      "protocol": "8a06b7f2-d86f-42e7-a015-c10bdd70a302"
    }
  }
}