Update contact
curl --request PUT \
--url https://api.quivo.co/v2/contacts/{sellerId}/{contactId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"notificationSubscriptions": [
{
"type": "<string>",
"category": "<string>"
}
],
"notificationCategories": []
}
'import requests
url = "https://api.quivo.co/v2/contacts/{sellerId}/{contactId}"
payload = {
"email": "<string>",
"notificationSubscriptions": [
{
"type": "<string>",
"category": "<string>"
}
],
"notificationCategories": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
notificationSubscriptions: [{type: '<string>', category: '<string>'}],
notificationCategories: []
})
};
fetch('https://api.quivo.co/v2/contacts/{sellerId}/{contactId}', 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://api.quivo.co/v2/contacts/{sellerId}/{contactId}",
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>',
'notificationSubscriptions' => [
[
'type' => '<string>',
'category' => '<string>'
]
],
'notificationCategories' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.quivo.co/v2/contacts/{sellerId}/{contactId}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"notificationSubscriptions\": [\n {\n \"type\": \"<string>\",\n \"category\": \"<string>\"\n }\n ],\n \"notificationCategories\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.quivo.co/v2/contacts/{sellerId}/{contactId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"notificationSubscriptions\": [\n {\n \"type\": \"<string>\",\n \"category\": \"<string>\"\n }\n ],\n \"notificationCategories\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/contacts/{sellerId}/{contactId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"notificationSubscriptions\": [\n {\n \"type\": \"<string>\",\n \"category\": \"<string>\"\n }\n ],\n \"notificationCategories\": []\n}"
response = http.request(request)
puts response.read_body{
"email": "<string>",
"subscriptionType": "ALL",
"notificationSubscriptions": [
{
"type": "<string>",
"category": "<string>"
}
],
"id": 123
}contacts
Update contact
Update an existing contact for the specified seller. Non-admin users can only update their own contact and can only use their own email address (case-insensitive); otherwise the request is rejected with 403.
PUT
/
contacts
/
{sellerId}
/
{contactId}
Update contact
curl --request PUT \
--url https://api.quivo.co/v2/contacts/{sellerId}/{contactId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"notificationSubscriptions": [
{
"type": "<string>",
"category": "<string>"
}
],
"notificationCategories": []
}
'import requests
url = "https://api.quivo.co/v2/contacts/{sellerId}/{contactId}"
payload = {
"email": "<string>",
"notificationSubscriptions": [
{
"type": "<string>",
"category": "<string>"
}
],
"notificationCategories": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
notificationSubscriptions: [{type: '<string>', category: '<string>'}],
notificationCategories: []
})
};
fetch('https://api.quivo.co/v2/contacts/{sellerId}/{contactId}', 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://api.quivo.co/v2/contacts/{sellerId}/{contactId}",
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>',
'notificationSubscriptions' => [
[
'type' => '<string>',
'category' => '<string>'
]
],
'notificationCategories' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.quivo.co/v2/contacts/{sellerId}/{contactId}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"notificationSubscriptions\": [\n {\n \"type\": \"<string>\",\n \"category\": \"<string>\"\n }\n ],\n \"notificationCategories\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.quivo.co/v2/contacts/{sellerId}/{contactId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"notificationSubscriptions\": [\n {\n \"type\": \"<string>\",\n \"category\": \"<string>\"\n }\n ],\n \"notificationCategories\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/contacts/{sellerId}/{contactId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"notificationSubscriptions\": [\n {\n \"type\": \"<string>\",\n \"category\": \"<string>\"\n }\n ],\n \"notificationCategories\": []\n}"
response = http.request(request)
puts response.read_body{
"email": "<string>",
"subscriptionType": "ALL",
"notificationSubscriptions": [
{
"type": "<string>",
"category": "<string>"
}
],
"id": 123
}Authorizations
Access token from POST /v2/oauth2/token, requested with an API credential. See https://api-docs.quivo.co/api-reference/authentication.
Path Parameters
Body
application/json
Complete resource data to update at /contacts/{sellerId}/{contactId}
Request payload for creating a new contact associated with a seller. Contains contact information including name, email, phone, and address details.
Response
Returns the updated contact with current contact details.
Contact information associated with a seller. Contains name, email, phone, address, and relationship details.