cURL
curl --request PATCH \
--url https://api.goevery.co/v1/orders/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"status": "CONFIRMED",
"sellingPriceCents": 1490000
},
"updateMask": [
"status",
"sellingPriceCents"
]
}
'import requests
url = "https://api.goevery.co/v1/orders/{id}"
payload = {
"order": {
"status": "CONFIRMED",
"sellingPriceCents": 1490000
},
"updateMask": ["status", "sellingPriceCents"]
}
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({
order: {status: 'CONFIRMED', sellingPriceCents: 1490000},
updateMask: ['status', 'sellingPriceCents']
})
};
fetch('https://api.goevery.co/v1/orders/{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/orders/{id}",
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([
'order' => [
'status' => 'CONFIRMED',
'sellingPriceCents' => 1490000
],
'updateMask' => [
'status',
'sellingPriceCents'
]
]),
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.goevery.co/v1/orders/{id}"
payload := strings.NewReader("{\n \"order\": {\n \"status\": \"CONFIRMED\",\n \"sellingPriceCents\": 1490000\n },\n \"updateMask\": [\n \"status\",\n \"sellingPriceCents\"\n ]\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.goevery.co/v1/orders/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"status\": \"CONFIRMED\",\n \"sellingPriceCents\": 1490000\n },\n \"updateMask\": [\n \"status\",\n \"sellingPriceCents\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goevery.co/v1/orders/{id}")
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 \"order\": {\n \"status\": \"CONFIRMED\",\n \"sellingPriceCents\": 1490000\n },\n \"updateMask\": [\n \"status\",\n \"sellingPriceCents\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"name": "orders/669a8cba6af86466a42de2fe",
"createTime": "2024-07-17T21:32:52.478Z",
"updateTime": "2024-07-17T21:32:52.478Z",
"status": "NEW",
"recipient": {
"firstName": "Valentina",
"lastName": "Rodríguez López",
"email": "valentina@gmail.com",
"phoneNumber": "+573193210329",
"address": {
"regionCode": "CO",
"administrativeArea": "Antioquia",
"locality": "Abejorral",
"addressLines": [
"Calle 123",
"Apto 2"
],
"organization": "Happeett"
},
"location": "locations/CO-11001000",
"documentType": "CC",
"document": "1040777098"
},
"contentDescription": "Shoes",
"notes": "1 Pair of Reebok Nano, Size 8, Color Black",
"sellingPriceCents": 1430000,
"cashOnDeliveryRequestCents": 8900000,
"customerReliability": "RELIABLE",
"customerBehavior": {
"totalShipments": 10,
"deliveredShipments": 8,
"returnedShipments": 2,
"reliability": "RELIABLE"
},
"fulfiller": "every",
"shipment": "shipments/669986bb4ae1239d5a92cdff",
"referenceId": "4012",
"referenceGid": "93240958723",
"referenceUrl": "https://mystore.com/order/1234567890",
"paymentMethods": [
"Cash On Delivery (COD)",
"Credit Card"
]
}Shipping
Update Order
PATCH
/
v1
/
orders
/
{id}
cURL
curl --request PATCH \
--url https://api.goevery.co/v1/orders/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"status": "CONFIRMED",
"sellingPriceCents": 1490000
},
"updateMask": [
"status",
"sellingPriceCents"
]
}
'import requests
url = "https://api.goevery.co/v1/orders/{id}"
payload = {
"order": {
"status": "CONFIRMED",
"sellingPriceCents": 1490000
},
"updateMask": ["status", "sellingPriceCents"]
}
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({
order: {status: 'CONFIRMED', sellingPriceCents: 1490000},
updateMask: ['status', 'sellingPriceCents']
})
};
fetch('https://api.goevery.co/v1/orders/{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/orders/{id}",
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([
'order' => [
'status' => 'CONFIRMED',
'sellingPriceCents' => 1490000
],
'updateMask' => [
'status',
'sellingPriceCents'
]
]),
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.goevery.co/v1/orders/{id}"
payload := strings.NewReader("{\n \"order\": {\n \"status\": \"CONFIRMED\",\n \"sellingPriceCents\": 1490000\n },\n \"updateMask\": [\n \"status\",\n \"sellingPriceCents\"\n ]\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.goevery.co/v1/orders/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"status\": \"CONFIRMED\",\n \"sellingPriceCents\": 1490000\n },\n \"updateMask\": [\n \"status\",\n \"sellingPriceCents\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goevery.co/v1/orders/{id}")
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 \"order\": {\n \"status\": \"CONFIRMED\",\n \"sellingPriceCents\": 1490000\n },\n \"updateMask\": [\n \"status\",\n \"sellingPriceCents\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"name": "orders/669a8cba6af86466a42de2fe",
"createTime": "2024-07-17T21:32:52.478Z",
"updateTime": "2024-07-17T21:32:52.478Z",
"status": "NEW",
"recipient": {
"firstName": "Valentina",
"lastName": "Rodríguez López",
"email": "valentina@gmail.com",
"phoneNumber": "+573193210329",
"address": {
"regionCode": "CO",
"administrativeArea": "Antioquia",
"locality": "Abejorral",
"addressLines": [
"Calle 123",
"Apto 2"
],
"organization": "Happeett"
},
"location": "locations/CO-11001000",
"documentType": "CC",
"document": "1040777098"
},
"contentDescription": "Shoes",
"notes": "1 Pair of Reebok Nano, Size 8, Color Black",
"sellingPriceCents": 1430000,
"cashOnDeliveryRequestCents": 8900000,
"customerReliability": "RELIABLE",
"customerBehavior": {
"totalShipments": 10,
"deliveredShipments": 8,
"returnedShipments": 2,
"reliability": "RELIABLE"
},
"fulfiller": "every",
"shipment": "shipments/669986bb4ae1239d5a92cdff",
"referenceId": "4012",
"referenceGid": "93240958723",
"referenceUrl": "https://mystore.com/order/1234567890",
"paymentMethods": [
"Cash On Delivery (COD)",
"Credit Card"
]
}Authorizations
Body
application/json
Response
200 - application/json
Successfully updated a order.