Clientes
Tomadores e destinatários da sua empresa.
Listar customers
Permissão necessária customers:read
Parâmetros
pagequery · integerper_pagequery · integersearchquery · stringtax_numberquery · stringRespostas HTTP
200Sucesso
Ver campos da resposta
dataarrayobrigatóriodata[].company_namestringdata[].tax_numbernullabledata[].ienullabledata[].ie_indicatornullabledata[].imnullabledata[].contact_person_namestringdata[].contact_person_emailstringO acervo importado pode conter string vazia quando não havia email válido.
data[].contact_person_mobilenullabledata[].addressnullabledata[].idintegerobrigatóriodata[].revisionstringobrigatóriodata[].customer_codestringmetaobjectobrigatóriometa.pageintegerobrigatóriometa.per_pageintegerobrigatóriometa.totalintegerobrigatóriometa.last_pageintegerobrigatóriodefaultErro seguro; 401/403/404/409/415/422/429/500/503. 429 inclui Retry-After.
Ver campos da resposta
errorobjectobrigatórioerror.codestringobrigatórioerror.messagestringobrigatórioerrorsobjectcurl 'https://api.nf3.app/api/v1/customers' \
-H 'Authorization: Bearer AQUI_VAI_A_CHAVE' \
-H 'Accept: application/json'Substitua os placeholders no seu servidor. Nenhuma requisição é executada aqui.
Criar customers
Permissão necessária customers:write
Parâmetros
Idempotency-Keyheader · stringobrigatórioUUID obrigatório em POST/PATCH. Mesmo owner/ambiente/chave com operação ou conteúdo diferente retorna 409.
Corpo da requisição application/json · 16 campos
company_namestringobrigatóriotax_numberstringobrigatórioCPF/CNPJ com dígitos verificadores; imutável após criação.
ienullableie_indicatorintegerobrigatórioValores: 1, 2, 9
imnullablecontact_person_namestringobrigatóriocontact_person_emailstringobrigatóriocontact_person_mobilenullableaddressobjectaddress.streetstringobrigatórioaddress.numberstringobrigatórioaddress.complementnullableaddress.districtstringobrigatórioaddress.zipstringobrigatórioaddress.city_codeintegerobrigatórioaddress.country_codeintegerobrigatórioValores: 1058
Respostas HTTP
201Sucesso
Ver campos da resposta
dataobjectobrigatóriodata.company_namestringdata.tax_numbernullabledata.ienullabledata.ie_indicatornullabledata.imnullabledata.contact_person_namestringdata.contact_person_emailstringO acervo importado pode conter string vazia quando não havia email válido.
data.contact_person_mobilenullabledata.addressnullabledata.idintegerobrigatóriodata.revisionstringobrigatóriodata.customer_codestringdefaultErro seguro; 401/403/404/409/415/422/429/500/503. 429 inclui Retry-After.
Ver campos da resposta
errorobjectobrigatórioerror.codestringobrigatórioerror.messagestringobrigatórioerrorsobjectcurl 'https://api.nf3.app/api/v1/customers' \
-X POST \
-H 'Authorization: Bearer AQUI_VAI_A_CHAVE' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: AQUI_VAI_O_UUID' \
--data '{
"company_name": "AQUI_VAI_O_VALOR",
"tax_number": "AQUI_VAI_O_VALOR",
"ie_indicator": 1,
"contact_person_name": "AQUI_VAI_O_VALOR",
"contact_person_email": "[email protected]"
}'Substitua os placeholders no seu servidor. Nenhuma requisição é executada aqui.
Exemplo de estrutura: substitua IDs, valores e UUIDs pelos dados conferidos da sua operação. O portal não executa este código.
Consultar customers
Permissão necessária customers:read
Parâmetros
idpath · integerobrigatórioRespostas HTTP
200Sucesso
Ver campos da resposta
dataobjectobrigatóriodata.company_namestringdata.tax_numbernullabledata.ienullabledata.ie_indicatornullabledata.imnullabledata.contact_person_namestringdata.contact_person_emailstringO acervo importado pode conter string vazia quando não havia email válido.
data.contact_person_mobilenullabledata.addressnullabledata.idintegerobrigatóriodata.revisionstringobrigatóriodata.customer_codestringdefaultErro seguro; 401/403/404/409/415/422/429/500/503. 429 inclui Retry-After.
Ver campos da resposta
errorobjectobrigatórioerror.codestringobrigatórioerror.messagestringobrigatórioerrorsobjectcurl 'https://api.nf3.app/api/v1/customers/{id}' \
-H 'Authorization: Bearer AQUI_VAI_A_CHAVE' \
-H 'Accept: application/json'Substitua os placeholders no seu servidor. Nenhuma requisição é executada aqui.
Atualizar customers
Permissão necessária customers:write
Parâmetros
idpath · integerobrigatórioIdempotency-Keyheader · stringobrigatórioUUID obrigatório em POST/PATCH. Mesmo owner/ambiente/chave com operação ou conteúdo diferente retorna 409.
Corpo da requisição application/json · 17 campos
company_namestringtax_numberstringCPF/CNPJ com dígitos verificadores; imutável após criação.
ienullableie_indicatorintegerValores: 1, 2, 9
imnullablecontact_person_namestringcontact_person_emailstringcontact_person_mobilenullableaddressobjectaddress.streetstringobrigatórioaddress.numberstringobrigatórioaddress.complementnullableaddress.districtstringobrigatórioaddress.zipstringobrigatórioaddress.city_codeintegerobrigatórioaddress.country_codeintegerobrigatórioValores: 1058
revisionstringobrigatórioRespostas HTTP
200Sucesso
Ver campos da resposta
dataobjectobrigatóriodata.company_namestringdata.tax_numbernullabledata.ienullabledata.ie_indicatornullabledata.imnullabledata.contact_person_namestringdata.contact_person_emailstringO acervo importado pode conter string vazia quando não havia email válido.
data.contact_person_mobilenullabledata.addressnullabledata.idintegerobrigatóriodata.revisionstringobrigatóriodata.customer_codestringdefaultErro seguro; 401/403/404/409/415/422/429/500/503. 429 inclui Retry-After.
Ver campos da resposta
errorobjectobrigatórioerror.codestringobrigatórioerror.messagestringobrigatórioerrorsobjectcurl 'https://api.nf3.app/api/v1/customers/{id}' \
-X PATCH \
-H 'Authorization: Bearer AQUI_VAI_A_CHAVE' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: AQUI_VAI_O_UUID' \
--data '{
"revision": "AQUI_VAI_O_VALOR"
}'Substitua os placeholders no seu servidor. Nenhuma requisição é executada aqui.
Exemplo de estrutura: substitua IDs, valores e UUIDs pelos dados conferidos da sua operação. O portal não executa este código.