curl --request PUT \
--url https://api.quivo.co/returnLinks/{returnLinkId} \
--header 'Content-Type: application/json' \
--data '
{
"sellerId": 123,
"shippingServiceGroupId": 123,
"shipToAddress": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"defaultWeightKG": 123,
"weightInputVisible": true
}
'import requests
url = "https://api.quivo.co/returnLinks/{returnLinkId}"
payload = {
"sellerId": 123,
"shippingServiceGroupId": 123,
"shipToAddress": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"defaultWeightKG": 123,
"weightInputVisible": True
}
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({
sellerId: 123,
shippingServiceGroupId: 123,
shipToAddress: {
name1: '<string>',
name2: '<string>',
company: '<string>',
address1: '<string>',
address2: '<string>',
address3: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
phone: '<string>',
email: '<string>'
},
defaultWeightKG: 123,
weightInputVisible: true
})
};
fetch('https://api.quivo.co/returnLinks/{returnLinkId}', 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/returnLinks/{returnLinkId}",
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([
'sellerId' => 123,
'shippingServiceGroupId' => 123,
'shipToAddress' => [
'name1' => '<string>',
'name2' => '<string>',
'company' => '<string>',
'address1' => '<string>',
'address2' => '<string>',
'address3' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'phone' => '<string>',
'email' => '<string>'
],
'defaultWeightKG' => 123,
'weightInputVisible' => true
]),
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/returnLinks/{returnLinkId}"
payload := strings.NewReader("{\n \"sellerId\": 123,\n \"shippingServiceGroupId\": 123,\n \"shipToAddress\": {\n \"name1\": \"<string>\",\n \"name2\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"address3\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"defaultWeightKG\": 123,\n \"weightInputVisible\": true\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/returnLinks/{returnLinkId}")
.header("Content-Type", "application/json")
.body("{\n \"sellerId\": 123,\n \"shippingServiceGroupId\": 123,\n \"shipToAddress\": {\n \"name1\": \"<string>\",\n \"name2\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"address3\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"defaultWeightKG\": 123,\n \"weightInputVisible\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/returnLinks/{returnLinkId}")
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 \"sellerId\": 123,\n \"shippingServiceGroupId\": 123,\n \"shipToAddress\": {\n \"name1\": \"<string>\",\n \"name2\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"address3\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"defaultWeightKG\": 123,\n \"weightInputVisible\": true\n}"
response = http.request(request)
puts response.read_body{
"sellerId": 123,
"shippingServiceGroupId": 123,
"shipToAddress": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"defaultWeightKG": 123,
"weightInputVisible": true,
"id": 123,
"created": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"returnLink": "<string>",
"shippingServiceGroupName": "<string>"
}Update return link
Update an existing return link.
curl --request PUT \
--url https://api.quivo.co/returnLinks/{returnLinkId} \
--header 'Content-Type: application/json' \
--data '
{
"sellerId": 123,
"shippingServiceGroupId": 123,
"shipToAddress": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"defaultWeightKG": 123,
"weightInputVisible": true
}
'import requests
url = "https://api.quivo.co/returnLinks/{returnLinkId}"
payload = {
"sellerId": 123,
"shippingServiceGroupId": 123,
"shipToAddress": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"defaultWeightKG": 123,
"weightInputVisible": True
}
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({
sellerId: 123,
shippingServiceGroupId: 123,
shipToAddress: {
name1: '<string>',
name2: '<string>',
company: '<string>',
address1: '<string>',
address2: '<string>',
address3: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
phone: '<string>',
email: '<string>'
},
defaultWeightKG: 123,
weightInputVisible: true
})
};
fetch('https://api.quivo.co/returnLinks/{returnLinkId}', 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/returnLinks/{returnLinkId}",
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([
'sellerId' => 123,
'shippingServiceGroupId' => 123,
'shipToAddress' => [
'name1' => '<string>',
'name2' => '<string>',
'company' => '<string>',
'address1' => '<string>',
'address2' => '<string>',
'address3' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'phone' => '<string>',
'email' => '<string>'
],
'defaultWeightKG' => 123,
'weightInputVisible' => true
]),
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/returnLinks/{returnLinkId}"
payload := strings.NewReader("{\n \"sellerId\": 123,\n \"shippingServiceGroupId\": 123,\n \"shipToAddress\": {\n \"name1\": \"<string>\",\n \"name2\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"address3\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"defaultWeightKG\": 123,\n \"weightInputVisible\": true\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/returnLinks/{returnLinkId}")
.header("Content-Type", "application/json")
.body("{\n \"sellerId\": 123,\n \"shippingServiceGroupId\": 123,\n \"shipToAddress\": {\n \"name1\": \"<string>\",\n \"name2\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"address3\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"defaultWeightKG\": 123,\n \"weightInputVisible\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/returnLinks/{returnLinkId}")
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 \"sellerId\": 123,\n \"shippingServiceGroupId\": 123,\n \"shipToAddress\": {\n \"name1\": \"<string>\",\n \"name2\": \"<string>\",\n \"company\": \"<string>\",\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"address3\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"defaultWeightKG\": 123,\n \"weightInputVisible\": true\n}"
response = http.request(request)
puts response.read_body{
"sellerId": 123,
"shippingServiceGroupId": 123,
"shipToAddress": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"defaultWeightKG": 123,
"weightInputVisible": true,
"id": 123,
"created": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"returnLink": "<string>",
"shippingServiceGroupName": "<string>"
}Path Parameters
The unique identifier for a return link.
Body
Complete resource data to update at /returnLinks/{returnLinkId}
Request payload for creating a new return link. Contains return link configuration including validity period, return conditions, and associated order filters.
Seller ID.
Shipping Service Group ID.
Required shipping service group for which to create a return link.
Detailed address information
Show child attributes
Show child attributes
Default weight in KG.
Indicates if weight input should be visible.
Response
Returns the updated return link with current configuration.
Return link configuration and details. Contains link validity, return conditions, associated order filters, and usage statistics.
Seller ID.
Shipping Service Group ID.
Required shipping service group for which to create a return link.
Detailed address information
Show child attributes
Show child attributes
Default weight in KG.
Indicates if weight input should be visible.
The unique identifier for the id
Timestamp when the item was created
The deleted at timestamp
Link or URL reference
The name of the shipping service group