POST
/nfse/servicoRegister a service
Registers a service to simplify issuance. The response includes an ID to reuse in the invoice JSON. Notes: - Registering a service is optional. All service data can be sent in the issuance payload.
Production: https://api.otentecnologia.com.brSandbox: https://api.sandbox.otentecnologia.com.br
Parameters
This route has no path or query parameters.
Request
cURL
curl -X POST 'https://api.otentecnologia.com.br/nfse/servico' \
-H 'x-api-key: $OTEN_API_KEY' \
-H 'Content-Type: application/json'Responses
201Created
JSON
{
"message": "Cadastro efetuado com sucesso",
"data": {
"id": "0000000000000000000"
}
}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"
}
}