cURL
curl --request GET \
--url https://api.goevery.co/v1/quotes/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goevery.co/v1/quotes/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goevery.co/v1/quotes/{id}', 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.goevery.co/v1/quotes/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goevery.co/v1/quotes/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goevery.co/v1/quotes/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goevery.co/v1/quotes/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"name": "quotes/669838849afe8a9d48db1c1e",
"createTime": "2024-07-17T21:32:52.478Z",
"updateTime": "2024-07-17T21:32:52.478Z",
"origin": "locations/CO-54003000",
"destination": "locations/CO-11001000",
"package": {
"declaredValueCents": 4500000,
"dimensions": {
"lengthCm": 10,
"widthCm": 20,
"heightCm": 15
},
"weightKg": 2,
"contentDescription": "Shoes"
},
"cashOnDeliveryRequestCents": 8900000,
"offers": [
{
"courier": "couriers/coordinadora",
"status": "SUCCESS",
"shipmentCostCents": 1430000,
"returnShipmentCostCents": 930000,
"estimatedDeliveryOperatingDays": 2
}
],
"order": "orders/66d86d4b05a7d437ac6c5379"
}Shipping
Get Quote
GET
/
v1
/
quotes
/
{id}
cURL
curl --request GET \
--url https://api.goevery.co/v1/quotes/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goevery.co/v1/quotes/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goevery.co/v1/quotes/{id}', 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.goevery.co/v1/quotes/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goevery.co/v1/quotes/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goevery.co/v1/quotes/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goevery.co/v1/quotes/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"name": "quotes/669838849afe8a9d48db1c1e",
"createTime": "2024-07-17T21:32:52.478Z",
"updateTime": "2024-07-17T21:32:52.478Z",
"origin": "locations/CO-54003000",
"destination": "locations/CO-11001000",
"package": {
"declaredValueCents": 4500000,
"dimensions": {
"lengthCm": 10,
"widthCm": 20,
"heightCm": 15
},
"weightKg": 2,
"contentDescription": "Shoes"
},
"cashOnDeliveryRequestCents": 8900000,
"offers": [
{
"courier": "couriers/coordinadora",
"status": "SUCCESS",
"shipmentCostCents": 1430000,
"returnShipmentCostCents": 930000,
"estimatedDeliveryOperatingDays": 2
}
],
"order": "orders/66d86d4b05a7d437ac6c5379"
}Authorizations
Path Parameters
Response
200 - application/json
Successfully fetched a quote.