curl --request POST \
--url https://api.service.getjusto.com/v3/admin/deliveries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"storeId": "<string>",
"fromAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": true,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"toAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": true,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"fromName": "<string>",
"toName": "<string>",
"fromPhone": "<string>",
"toPhone": "<string>",
"instructions": "<string>",
"isCash": true,
"amountToPay": 123,
"cashAmount": 123,
"isRoundTrip": true,
"tipAmount": 123,
"toExpectedDate": "2023-11-07T05:31:56Z",
"deliveryPriority": 123,
"sendNotificationToReceiver": true,
"useCarForDelivery": true,
"confirmation": true,
"externalId": "<string>"
}
'import requests
url = "https://api.service.getjusto.com/v3/admin/deliveries"
payload = {
"storeId": "<string>",
"fromAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": True,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"toAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": True,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"fromName": "<string>",
"toName": "<string>",
"fromPhone": "<string>",
"toPhone": "<string>",
"instructions": "<string>",
"isCash": True,
"amountToPay": 123,
"cashAmount": 123,
"isRoundTrip": True,
"tipAmount": 123,
"toExpectedDate": "2023-11-07T05:31:56Z",
"deliveryPriority": 123,
"sendNotificationToReceiver": True,
"useCarForDelivery": True,
"confirmation": True,
"externalId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
storeId: '<string>',
fromAddress: {
streetAddress: '<string>',
countryCode: 'CL',
extendedAddress: '<string>',
location: {lat: 123, lng: 123},
acceptsNoLine2: true,
comment: '<string>',
locality: '<string>',
region: '<string>',
postalCode: '<string>'
},
toAddress: {
streetAddress: '<string>',
countryCode: 'CL',
extendedAddress: '<string>',
location: {lat: 123, lng: 123},
acceptsNoLine2: true,
comment: '<string>',
locality: '<string>',
region: '<string>',
postalCode: '<string>'
},
fromName: '<string>',
toName: '<string>',
fromPhone: '<string>',
toPhone: '<string>',
instructions: '<string>',
isCash: true,
amountToPay: 123,
cashAmount: 123,
isRoundTrip: true,
tipAmount: 123,
toExpectedDate: '2023-11-07T05:31:56Z',
deliveryPriority: 123,
sendNotificationToReceiver: true,
useCarForDelivery: true,
confirmation: true,
externalId: '<string>'
})
};
fetch('https://api.service.getjusto.com/v3/admin/deliveries', 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.service.getjusto.com/v3/admin/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'storeId' => '<string>',
'fromAddress' => [
'streetAddress' => '<string>',
'countryCode' => 'CL',
'extendedAddress' => '<string>',
'location' => [
'lat' => 123,
'lng' => 123
],
'acceptsNoLine2' => true,
'comment' => '<string>',
'locality' => '<string>',
'region' => '<string>',
'postalCode' => '<string>'
],
'toAddress' => [
'streetAddress' => '<string>',
'countryCode' => 'CL',
'extendedAddress' => '<string>',
'location' => [
'lat' => 123,
'lng' => 123
],
'acceptsNoLine2' => true,
'comment' => '<string>',
'locality' => '<string>',
'region' => '<string>',
'postalCode' => '<string>'
],
'fromName' => '<string>',
'toName' => '<string>',
'fromPhone' => '<string>',
'toPhone' => '<string>',
'instructions' => '<string>',
'isCash' => true,
'amountToPay' => 123,
'cashAmount' => 123,
'isRoundTrip' => true,
'tipAmount' => 123,
'toExpectedDate' => '2023-11-07T05:31:56Z',
'deliveryPriority' => 123,
'sendNotificationToReceiver' => true,
'useCarForDelivery' => true,
'confirmation' => true,
'externalId' => '<string>'
]),
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.service.getjusto.com/v3/admin/deliveries"
payload := strings.NewReader("{\n \"storeId\": \"<string>\",\n \"fromAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"toAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"fromName\": \"<string>\",\n \"toName\": \"<string>\",\n \"fromPhone\": \"<string>\",\n \"toPhone\": \"<string>\",\n \"instructions\": \"<string>\",\n \"isCash\": true,\n \"amountToPay\": 123,\n \"cashAmount\": 123,\n \"isRoundTrip\": true,\n \"tipAmount\": 123,\n \"toExpectedDate\": \"2023-11-07T05:31:56Z\",\n \"deliveryPriority\": 123,\n \"sendNotificationToReceiver\": true,\n \"useCarForDelivery\": true,\n \"confirmation\": true,\n \"externalId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.service.getjusto.com/v3/admin/deliveries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"storeId\": \"<string>\",\n \"fromAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"toAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"fromName\": \"<string>\",\n \"toName\": \"<string>\",\n \"fromPhone\": \"<string>\",\n \"toPhone\": \"<string>\",\n \"instructions\": \"<string>\",\n \"isCash\": true,\n \"amountToPay\": 123,\n \"cashAmount\": 123,\n \"isRoundTrip\": true,\n \"tipAmount\": 123,\n \"toExpectedDate\": \"2023-11-07T05:31:56Z\",\n \"deliveryPriority\": 123,\n \"sendNotificationToReceiver\": true,\n \"useCarForDelivery\": true,\n \"confirmation\": true,\n \"externalId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.service.getjusto.com/v3/admin/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"storeId\": \"<string>\",\n \"fromAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"toAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"fromName\": \"<string>\",\n \"toName\": \"<string>\",\n \"fromPhone\": \"<string>\",\n \"toPhone\": \"<string>\",\n \"instructions\": \"<string>\",\n \"isCash\": true,\n \"amountToPay\": 123,\n \"cashAmount\": 123,\n \"isRoundTrip\": true,\n \"tipAmount\": 123,\n \"toExpectedDate\": \"2023-11-07T05:31:56Z\",\n \"deliveryPriority\": 123,\n \"sendNotificationToReceiver\": true,\n \"useCarForDelivery\": true,\n \"confirmation\": true,\n \"externalId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"_id": "<string>",
"websiteId": "<string>",
"storeId": "<string>",
"orderId": "<string>",
"partner": "<string>",
"specialCode": "<string>",
"externalId": "<string>",
"price": 123,
"priceWithoutTax": 123,
"isCash": true,
"isRoundTrip": true,
"instructions": "<string>",
"fromName": "<string>",
"toName": "<string>",
"fromPlaceId": "<string>",
"toPlaceId": "<string>",
"fromAddressLine2": "<string>",
"toAddressLine2": "<string>",
"fromLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"placeId": "<string>",
"streetAddress": "<string>",
"extendedAddress": "<string>",
"contactPhone": "<string>",
"contactName": "<string>",
"lat": 123,
"lng": 123
},
"toLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"placeId": "<string>",
"streetAddress": "<string>",
"extendedAddress": "<string>",
"contactPhone": "<string>",
"contactName": "<string>",
"lat": 123,
"lng": 123
},
"driverPassword": "<string>",
"trackingURL": "<string>",
"createdAt": "2020-01-01T00:00:00.000Z",
"forDate": "2020-01-01T00:00:00.000Z",
"canceledAt": "2020-01-01T00:00:00.000Z",
"completedAt": "2020-01-01T00:00:00.000Z"
}
}{
"success": "false",
"error": {
"error": "error",
"message": "The request has an error"
}
}Create delivery without order
Crea una entrega sin pedido para la marca autorizada. Esta operación solicita un despacho de Justo Delivery sin crear ni asociar un pedido de Justo Ecommerce, útil para ventas tomadas por teléfono, WhatsApp, POS, backoffice o integraciones externas. Requiere origen, destino, local y datos de contacto. Si la cotización cambió, puede requerir confirmation=true.
curl --request POST \
--url https://api.service.getjusto.com/v3/admin/deliveries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"storeId": "<string>",
"fromAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": true,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"toAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": true,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"fromName": "<string>",
"toName": "<string>",
"fromPhone": "<string>",
"toPhone": "<string>",
"instructions": "<string>",
"isCash": true,
"amountToPay": 123,
"cashAmount": 123,
"isRoundTrip": true,
"tipAmount": 123,
"toExpectedDate": "2023-11-07T05:31:56Z",
"deliveryPriority": 123,
"sendNotificationToReceiver": true,
"useCarForDelivery": true,
"confirmation": true,
"externalId": "<string>"
}
'import requests
url = "https://api.service.getjusto.com/v3/admin/deliveries"
payload = {
"storeId": "<string>",
"fromAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": True,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"toAddress": {
"streetAddress": "<string>",
"countryCode": "CL",
"extendedAddress": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"acceptsNoLine2": True,
"comment": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>"
},
"fromName": "<string>",
"toName": "<string>",
"fromPhone": "<string>",
"toPhone": "<string>",
"instructions": "<string>",
"isCash": True,
"amountToPay": 123,
"cashAmount": 123,
"isRoundTrip": True,
"tipAmount": 123,
"toExpectedDate": "2023-11-07T05:31:56Z",
"deliveryPriority": 123,
"sendNotificationToReceiver": True,
"useCarForDelivery": True,
"confirmation": True,
"externalId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
storeId: '<string>',
fromAddress: {
streetAddress: '<string>',
countryCode: 'CL',
extendedAddress: '<string>',
location: {lat: 123, lng: 123},
acceptsNoLine2: true,
comment: '<string>',
locality: '<string>',
region: '<string>',
postalCode: '<string>'
},
toAddress: {
streetAddress: '<string>',
countryCode: 'CL',
extendedAddress: '<string>',
location: {lat: 123, lng: 123},
acceptsNoLine2: true,
comment: '<string>',
locality: '<string>',
region: '<string>',
postalCode: '<string>'
},
fromName: '<string>',
toName: '<string>',
fromPhone: '<string>',
toPhone: '<string>',
instructions: '<string>',
isCash: true,
amountToPay: 123,
cashAmount: 123,
isRoundTrip: true,
tipAmount: 123,
toExpectedDate: '2023-11-07T05:31:56Z',
deliveryPriority: 123,
sendNotificationToReceiver: true,
useCarForDelivery: true,
confirmation: true,
externalId: '<string>'
})
};
fetch('https://api.service.getjusto.com/v3/admin/deliveries', 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.service.getjusto.com/v3/admin/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'storeId' => '<string>',
'fromAddress' => [
'streetAddress' => '<string>',
'countryCode' => 'CL',
'extendedAddress' => '<string>',
'location' => [
'lat' => 123,
'lng' => 123
],
'acceptsNoLine2' => true,
'comment' => '<string>',
'locality' => '<string>',
'region' => '<string>',
'postalCode' => '<string>'
],
'toAddress' => [
'streetAddress' => '<string>',
'countryCode' => 'CL',
'extendedAddress' => '<string>',
'location' => [
'lat' => 123,
'lng' => 123
],
'acceptsNoLine2' => true,
'comment' => '<string>',
'locality' => '<string>',
'region' => '<string>',
'postalCode' => '<string>'
],
'fromName' => '<string>',
'toName' => '<string>',
'fromPhone' => '<string>',
'toPhone' => '<string>',
'instructions' => '<string>',
'isCash' => true,
'amountToPay' => 123,
'cashAmount' => 123,
'isRoundTrip' => true,
'tipAmount' => 123,
'toExpectedDate' => '2023-11-07T05:31:56Z',
'deliveryPriority' => 123,
'sendNotificationToReceiver' => true,
'useCarForDelivery' => true,
'confirmation' => true,
'externalId' => '<string>'
]),
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.service.getjusto.com/v3/admin/deliveries"
payload := strings.NewReader("{\n \"storeId\": \"<string>\",\n \"fromAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"toAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"fromName\": \"<string>\",\n \"toName\": \"<string>\",\n \"fromPhone\": \"<string>\",\n \"toPhone\": \"<string>\",\n \"instructions\": \"<string>\",\n \"isCash\": true,\n \"amountToPay\": 123,\n \"cashAmount\": 123,\n \"isRoundTrip\": true,\n \"tipAmount\": 123,\n \"toExpectedDate\": \"2023-11-07T05:31:56Z\",\n \"deliveryPriority\": 123,\n \"sendNotificationToReceiver\": true,\n \"useCarForDelivery\": true,\n \"confirmation\": true,\n \"externalId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.service.getjusto.com/v3/admin/deliveries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"storeId\": \"<string>\",\n \"fromAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"toAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"fromName\": \"<string>\",\n \"toName\": \"<string>\",\n \"fromPhone\": \"<string>\",\n \"toPhone\": \"<string>\",\n \"instructions\": \"<string>\",\n \"isCash\": true,\n \"amountToPay\": 123,\n \"cashAmount\": 123,\n \"isRoundTrip\": true,\n \"tipAmount\": 123,\n \"toExpectedDate\": \"2023-11-07T05:31:56Z\",\n \"deliveryPriority\": 123,\n \"sendNotificationToReceiver\": true,\n \"useCarForDelivery\": true,\n \"confirmation\": true,\n \"externalId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.service.getjusto.com/v3/admin/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"storeId\": \"<string>\",\n \"fromAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"toAddress\": {\n \"streetAddress\": \"<string>\",\n \"countryCode\": \"CL\",\n \"extendedAddress\": \"<string>\",\n \"location\": {\n \"lat\": 123,\n \"lng\": 123\n },\n \"acceptsNoLine2\": true,\n \"comment\": \"<string>\",\n \"locality\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\"\n },\n \"fromName\": \"<string>\",\n \"toName\": \"<string>\",\n \"fromPhone\": \"<string>\",\n \"toPhone\": \"<string>\",\n \"instructions\": \"<string>\",\n \"isCash\": true,\n \"amountToPay\": 123,\n \"cashAmount\": 123,\n \"isRoundTrip\": true,\n \"tipAmount\": 123,\n \"toExpectedDate\": \"2023-11-07T05:31:56Z\",\n \"deliveryPriority\": 123,\n \"sendNotificationToReceiver\": true,\n \"useCarForDelivery\": true,\n \"confirmation\": true,\n \"externalId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"_id": "<string>",
"websiteId": "<string>",
"storeId": "<string>",
"orderId": "<string>",
"partner": "<string>",
"specialCode": "<string>",
"externalId": "<string>",
"price": 123,
"priceWithoutTax": 123,
"isCash": true,
"isRoundTrip": true,
"instructions": "<string>",
"fromName": "<string>",
"toName": "<string>",
"fromPlaceId": "<string>",
"toPlaceId": "<string>",
"fromAddressLine2": "<string>",
"toAddressLine2": "<string>",
"fromLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"placeId": "<string>",
"streetAddress": "<string>",
"extendedAddress": "<string>",
"contactPhone": "<string>",
"contactName": "<string>",
"lat": 123,
"lng": 123
},
"toLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"placeId": "<string>",
"streetAddress": "<string>",
"extendedAddress": "<string>",
"contactPhone": "<string>",
"contactName": "<string>",
"lat": 123,
"lng": 123
},
"driverPassword": "<string>",
"trackingURL": "<string>",
"createdAt": "2020-01-01T00:00:00.000Z",
"forDate": "2020-01-01T00:00:00.000Z",
"canceledAt": "2020-01-01T00:00:00.000Z",
"completedAt": "2020-01-01T00:00:00.000Z"
}
}{
"success": "false",
"error": {
"error": "error",
"message": "The request has an error"
}
}storeId debe pertenecer a la marca autorizada. Debes enviar al menos un teléfono de contacto en fromPhone o toPhone para que la operación pueda coordinar la entrega.
En Justo Admin MCP esta operación requiere confirmación explícita del usuario porque crea una entrega real.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- Option 1
- Option 2
ID Justo del local solicitante.
Dirección de origen o destino provista por la app externa. API la resuelve internamente a placeId.
Show child attributes
Show child attributes
Dirección de origen o destino provista por la app externa. API la resuelve internamente a placeId.
Show child attributes
Show child attributes
Nombre de contacto de origen.
Nombre de contacto de destino.
Teléfono de origen. Debe venir fromPhone o toPhone.
Teléfono de destino. Debe venir fromPhone o toPhone.
Instrucciones para el repartidor.
Si es true, el repartidor debe cobrar efectivo.
Monto que debe cobrar el repartidor si isCash es true.
Efectivo estimado que entregará el cliente.
Si es true, el repartidor vuelve al origen.
Propina para el repartidor.
Fecha esperada de entrega.
Prioridad logística. 2 alta, 3 normal, 4 baja.
Si es true, envía notificación al receptor.
Si es true, solicita vehículo tipo auto.
Confirma creación cuando el precio requiere confirmación explícita.
Identificador externo para idempotencia o conciliación.