Update resource
curl --request PATCH \
--url https://api.quivo.co/v2/orders/{orderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
},
"comment": "<string>",
"trackingEnabled": true,
"allowPartial": true,
"customAttributes": "{\"attr1\":\"val1\"}"
}
'import requests
url = "https://api.quivo.co/v2/orders/{orderId}"
payload = {
"address": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
},
"comment": "<string>",
"trackingEnabled": True,
"allowPartial": True,
"customAttributes": "{\"attr1\":\"val1\"}"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>',
latitude: 123,
longitude: 123
},
comment: '<string>',
trackingEnabled: true,
allowPartial: true,
customAttributes: '{"attr1":"val1"}'
})
};
fetch('https://api.quivo.co/v2/orders/{orderId}', 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/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => [
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>',
'latitude' => 123,
'longitude' => 123
],
'comment' => '<string>',
'trackingEnabled' => true,
'allowPartial' => true,
'customAttributes' => '{"attr1":"val1"}'
]),
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/orders/{orderId}"
payload := strings.NewReader("{\n \"address\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"comment\": \"<string>\",\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.quivo.co/v2/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"comment\": \"<string>\",\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"comment\": \"<string>\",\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.orders
Update resource
Update an existing order by its ID.
PATCH
/
orders
/
{orderId}
Update resource
curl --request PATCH \
--url https://api.quivo.co/v2/orders/{orderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
},
"comment": "<string>",
"trackingEnabled": true,
"allowPartial": true,
"customAttributes": "{\"attr1\":\"val1\"}"
}
'import requests
url = "https://api.quivo.co/v2/orders/{orderId}"
payload = {
"address": {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
},
"comment": "<string>",
"trackingEnabled": True,
"allowPartial": True,
"customAttributes": "{\"attr1\":\"val1\"}"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>',
latitude: 123,
longitude: 123
},
comment: '<string>',
trackingEnabled: true,
allowPartial: true,
customAttributes: '{"attr1":"val1"}'
})
};
fetch('https://api.quivo.co/v2/orders/{orderId}', 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/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'address' => [
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>',
'latitude' => 123,
'longitude' => 123
],
'comment' => '<string>',
'trackingEnabled' => true,
'allowPartial' => true,
'customAttributes' => '{"attr1":"val1"}'
]),
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/orders/{orderId}"
payload := strings.NewReader("{\n \"address\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"comment\": \"<string>\",\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.quivo.co/v2/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"comment\": \"<string>\",\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": {\n \"name\": \"<string>\",\n \"company\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\",\n \"street\": \"<string>\",\n \"street2\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"countryIso2\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123\n },\n \"comment\": \"<string>\",\n \"trackingEnabled\": true,\n \"allowPartial\": true,\n \"customAttributes\": \"{\\\"attr1\\\":\\\"val1\\\"}\"\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.Authorizations
Access token from POST /v2/oauth2/token, requested with an API credential. See https://api-docs.quivo.co/api-reference/authentication.
Body
application/json
Partial resource data to update at /orders/{orderId}
Request payload for partially updating an existing order. Contains only the fields to be modified, such as delivery dates, shipping preferences, or order metadata.
Response
Bad request - the request payload is invalid, missing required fields, or contains invalid data.