curl --request GET \
--url https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{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://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}",
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://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}"
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://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}")
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{
"deliveryId": "123e4567-e89b-12d3-a456-426614174000",
"orderId": "ORDER-12345",
"orderDisplayId": "ORD-12345",
"merchant": {
"id": "MERCHANT-001",
"name": "Restaurante Exemplo"
},
"customerName": "João Silva",
"events": [
{
"type": "PENDING",
"datetime": "2024-01-15T10:30:00.000Z"
},
{
"type": "ACCEPTED",
"datetime": "2024-01-15T10:35:00.000Z"
}
],
"vehicle": {
"type": [
"MOTORBIKE_BAG"
],
"container": "NORMAL"
},
"deliveryPrice": {
"value": 8.5,
"currency": "BRL"
},
"times": {
"deliveryEtaDate": "2024-01-15T11:30:00.000Z",
"maxDeliveryTime": "2024-01-15T12:00:00.000Z",
"isDeliveryFinished": false
},
"deliveryPerson": {
"id": "DELIVERY-001",
"name": "Entregador Exemplo"
}
}{
"title": "Erro inesperado.",
"status": 400
}{
"title": "Não autorizado",
"status": 401
}{
"title": "Pedido não encontrado.",
"status": 404
}Detalhes da entrega
Retorna informações detalhadas sobre uma entrega específica.
curl --request GET \
--url https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{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://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}",
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://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}"
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://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://opendelivery.gohusky.net/logistic/v1/logistics/delivery/{orderId}")
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{
"deliveryId": "123e4567-e89b-12d3-a456-426614174000",
"orderId": "ORDER-12345",
"orderDisplayId": "ORD-12345",
"merchant": {
"id": "MERCHANT-001",
"name": "Restaurante Exemplo"
},
"customerName": "João Silva",
"events": [
{
"type": "PENDING",
"datetime": "2024-01-15T10:30:00.000Z"
},
{
"type": "ACCEPTED",
"datetime": "2024-01-15T10:35:00.000Z"
}
],
"vehicle": {
"type": [
"MOTORBIKE_BAG"
],
"container": "NORMAL"
},
"deliveryPrice": {
"value": 8.5,
"currency": "BRL"
},
"times": {
"deliveryEtaDate": "2024-01-15T11:30:00.000Z",
"maxDeliveryTime": "2024-01-15T12:00:00.000Z",
"isDeliveryFinished": false
},
"deliveryPerson": {
"id": "DELIVERY-001",
"name": "Entregador Exemplo"
}
}{
"title": "Erro inesperado.",
"status": 400
}{
"title": "Não autorizado",
"status": 401
}{
"title": "Pedido não encontrado.",
"status": 404
}- Dados do pedido e merchant
- Status e eventos da entrega
- Informações do veículo e entregador
- Preços e tempos
- Problemas reportados (se houver)
Authorizations
Token de acesso OAuth 2.0 obtido através do endpoint /oauth/token.
Use o formato: Authorization: Bearer {access_token}
O token deve ser incluído em todas as requisições aos endpoints protegidos.
Path Parameters
Identificador único do pedido
Response
Detalhes da entrega retornados com sucesso
Identificador único da entrega
"123e4567-e89b-12d3-a456-426614174000"
Identificador único do pedido
"ORDER-12345"
Identificador de exibição do pedido
"ORD-12345"
Show child attributes
Show child attributes
Nome do cliente
"João Silva"
Lista de eventos da entrega
Show child attributes
Show child attributes
Lista de problemas reportados
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
IDs de pedidos combinados
["ORDER-123", "ORDER-124"]
URL externa para rastreamento
"https://tracking.example.com/ORDER-12345"
Was this page helpful?

