Atualizar Email do Contato
curl --request PUT \
--url https://production.api.noodle.cx/external/contacts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"contact_id": "<string>",
"tax_id": "<string>"
}
'import requests
url = "https://production.api.noodle.cx/external/contacts"
payload = {
"email": "<string>",
"contact_id": "<string>",
"tax_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', contact_id: '<string>', tax_id: '<string>'})
};
fetch('https://production.api.noodle.cx/external/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.api.noodle.cx/external/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'contact_id' => '<string>',
'tax_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.api.noodle.cx/external/contacts"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"tax_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://production.api.noodle.cx/external/contacts")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"tax_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"tax_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"tax_id": "<string>",
"name": "<string>",
"email": "<string>",
"id": "<string>",
"tax_id_manager": "<string>",
"has_bank_account": false,
"accounts": [
{
"id": "<string>",
"bank_name": "<string>",
"bank_code": "<string>",
"bank_ispb": "<string>",
"agency": "<string>",
"account_number": "<string>",
"account_type": "<string>",
"pix_key": "<string>",
"pix_key_type": "<string>",
"tax_id": "<string>",
"tax_id_manager": "<string>",
"contact_id": "<string>",
"is_favorite": false
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Contatos
Atualizar Email do Contato
Use este endpoint para atualizar o email de um contato existente.
PUT
/
contacts
Atualizar Email do Contato
curl --request PUT \
--url https://production.api.noodle.cx/external/contacts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"contact_id": "<string>",
"tax_id": "<string>"
}
'import requests
url = "https://production.api.noodle.cx/external/contacts"
payload = {
"email": "<string>",
"contact_id": "<string>",
"tax_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', contact_id: '<string>', tax_id: '<string>'})
};
fetch('https://production.api.noodle.cx/external/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.api.noodle.cx/external/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'contact_id' => '<string>',
'tax_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.api.noodle.cx/external/contacts"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"tax_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://production.api.noodle.cx/external/contacts")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"tax_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"tax_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"tax_id": "<string>",
"name": "<string>",
"email": "<string>",
"id": "<string>",
"tax_id_manager": "<string>",
"has_bank_account": false,
"accounts": [
{
"id": "<string>",
"bank_name": "<string>",
"bank_code": "<string>",
"bank_ispb": "<string>",
"agency": "<string>",
"account_number": "<string>",
"account_type": "<string>",
"pix_key": "<string>",
"pix_key_type": "<string>",
"tax_id": "<string>",
"tax_id_manager": "<string>",
"contact_id": "<string>",
"is_favorite": false
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Response
Successful Response
Representa os dados de um contato na agenda.
Atributos:
- id (str, opcional): Identificador único do contato.
- tax_id (str): CPF ou CNPJ do contato.
- tax_id_manager (str, opcional): CPF ou CNPJ do gestor que cadastrou o contato.
- name (str): Nome do contato.
- email (str): Endereço de e-mail do contato.
- has_bank_account (bool, opcional): Indica se o contato possui conta bancária cadastrada.
- accounts (list[ContactAccountModel], opcional): Lista de contas bancárias associadas ao contato.
CPF ou CNPJ do contato.
Nome do contato.
Endereço de e-mail do contato.
Identificador único do contato.
CPF ou CNPJ do gestor que cadastrou o contato.
Indica se o contato possui conta bancária cadastrada.
Lista de contas bancárias associadas ao contato.
Show child attributes
Show child attributes