curl --request PUT \
--url https://api.quivo.co/orders/{orderId}/address \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
}
'import requests
url = "https://api.quivo.co/orders/{orderId}/address"
payload = {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>',
latitude: 123,
longitude: 123
})
};
fetch('https://api.quivo.co/orders/{orderId}/address', 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/orders/{orderId}/address",
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([
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>',
'latitude' => 123,
'longitude' => 123
]),
CURLOPT_HTTPHEADER => [
"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/orders/{orderId}/address"
payload := strings.NewReader("{\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}")
req, _ := http.NewRequest("PUT", url, payload)
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/orders/{orderId}/address")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/orders/{orderId}/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\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}"
response = http.request(request)
puts response.read_bodyThis response has no body data.Update order
Update the delivery address for an existing order.
curl --request PUT \
--url https://api.quivo.co/orders/{orderId}/address \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
}
'import requests
url = "https://api.quivo.co/orders/{orderId}/address"
payload = {
"name": "<string>",
"company": "<string>",
"phone": "<string>",
"email": "<string>",
"street": "<string>",
"street2": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"countryIso2": "<string>",
"latitude": 123,
"longitude": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company: '<string>',
phone: '<string>',
email: '<string>',
street: '<string>',
street2: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
countryIso2: '<string>',
latitude: 123,
longitude: 123
})
};
fetch('https://api.quivo.co/orders/{orderId}/address', 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/orders/{orderId}/address",
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([
'name' => '<string>',
'company' => '<string>',
'phone' => '<string>',
'email' => '<string>',
'street' => '<string>',
'street2' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'countryIso2' => '<string>',
'latitude' => 123,
'longitude' => 123
]),
CURLOPT_HTTPHEADER => [
"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/orders/{orderId}/address"
payload := strings.NewReader("{\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}")
req, _ := http.NewRequest("PUT", url, payload)
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/orders/{orderId}/address")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/orders/{orderId}/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\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}"
response = http.request(request)
puts response.read_bodyThis response has no body data.Path Parameters
The unique identifier for an order.
Query Parameters
The address type. Must be one of: DELIVERY, INVOICE, DELIVERY_AND_INVOICE.
DELIVERY, INVOICE, DELIVERY_AND_INVOICE Body
Complete resource data to update at /orders/{orderId}/address
Request payload for updating the delivery address of an existing order. Contains the new address information and optional address type specification.
The first and lastname of the recipient.
Either name or company is required.
Name of the company.
Either name or company is required.
Phone number.
E-Mail address.
Street (or Address Line 1).
This field is optional only when latitude and longitude coordinates are provided.
Street (or Address Line 2).
This field is optional.
ZIP Code.
The ZIP code is optional for some countries, but required for most. It is optional when latitude and longitude coordinates are provided.
City.
This field is optional only when latitude and longitude coordinates are provided.
State.
This is not required for most countries, but required in some (eg: United States).
Country Code.
This field is optional only when latitude and longitude coordinates are provided.
Latitude coordinate for the delivery address. Optional, used for location-based services. For invoice address, it'll be ignored if provided.
Longitude coordinate for the delivery address. Optional, Used for location-based services. For invoice address, it'll be ignored if provided.