Removes a client comment from a return. Only its own author may do so.
curl --request DELETE \
--url https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}', 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/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"returnShipmentId": 123,
"warehouseId": 123,
"returnShipmentIdentifier": "<string>",
"sellerId": 123,
"receivedDate": "2023-11-07T05:31:56Z",
"trackingNumber": "<string>",
"trackingLink": "<string>",
"carrierSlug": "<string>",
"orderId": 123,
"fulfillmentOrderId": 123,
"returnAnnouncementId": 123,
"shipFrom": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"returnShipmentReference": "<string>",
"customerExamined": true,
"positions": [
{
"returnShipmentPositionId": 123,
"sellerSku": "<string>",
"warehouseSku": "<string>",
"name": "<string>",
"quantity": 123,
"lot": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"serialNumbers": [
"<string>"
],
"classCode": "<string>",
"classDescription": "<string>",
"reasonCode": "<string>",
"reasonDescription": "<string>",
"resolutionCode": "<string>",
"resolutionDescription": "<string>",
"positionIdentifier": "<string>",
"storageCode": "<string>",
"storageBlocked": true
}
],
"groupedPositions": [
{
"sellerSku": "<string>",
"warehouseSku": "<string>",
"name": "<string>",
"quantity": 123,
"lot": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"serialNumbers": [
"<string>"
],
"classCode": "<string>",
"classDescription": "<string>",
"reasonCode": "<string>",
"reasonDescription": "<string>",
"resolutionCode": "<string>",
"resolutionDescription": "<string>"
}
],
"comments": [
{
"returnShipmentCommentId": 123,
"text": "<string>",
"addedByClient": true,
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"userId": "<string>",
"username": "<string>",
"userEmail": "<string>",
"fileKey": "<string>",
"url": {
"link": "<string>"
},
"returnShipmentImages": [
{
"text": "<string>",
"fileKey": "<string>",
"url": {
"link": "<string>"
}
}
]
}
],
"piiDataRemoved": true
}returns
Removes a client comment from a return. Only its own author may do so.
DELETE
/
returns
/
{returnShipmentId}
/
comments
/
{returnShipmentCommentId}
Removes a client comment from a return. Only its own author may do so.
curl --request DELETE \
--url https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}', 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/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/v2/returns/{returnShipmentId}/comments/{returnShipmentCommentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"returnShipmentId": 123,
"warehouseId": 123,
"returnShipmentIdentifier": "<string>",
"sellerId": 123,
"receivedDate": "2023-11-07T05:31:56Z",
"trackingNumber": "<string>",
"trackingLink": "<string>",
"carrierSlug": "<string>",
"orderId": 123,
"fulfillmentOrderId": 123,
"returnAnnouncementId": 123,
"shipFrom": {
"name1": "<string>",
"name2": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>"
},
"returnShipmentReference": "<string>",
"customerExamined": true,
"positions": [
{
"returnShipmentPositionId": 123,
"sellerSku": "<string>",
"warehouseSku": "<string>",
"name": "<string>",
"quantity": 123,
"lot": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"serialNumbers": [
"<string>"
],
"classCode": "<string>",
"classDescription": "<string>",
"reasonCode": "<string>",
"reasonDescription": "<string>",
"resolutionCode": "<string>",
"resolutionDescription": "<string>",
"positionIdentifier": "<string>",
"storageCode": "<string>",
"storageBlocked": true
}
],
"groupedPositions": [
{
"sellerSku": "<string>",
"warehouseSku": "<string>",
"name": "<string>",
"quantity": 123,
"lot": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"serialNumbers": [
"<string>"
],
"classCode": "<string>",
"classDescription": "<string>",
"reasonCode": "<string>",
"reasonDescription": "<string>",
"resolutionCode": "<string>",
"resolutionDescription": "<string>"
}
],
"comments": [
{
"returnShipmentCommentId": 123,
"text": "<string>",
"addedByClient": true,
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"userId": "<string>",
"username": "<string>",
"userEmail": "<string>",
"fileKey": "<string>",
"url": {
"link": "<string>"
},
"returnShipmentImages": [
{
"text": "<string>",
"fileKey": "<string>",
"url": {
"link": "<string>"
}
}
]
}
],
"piiDataRemoved": true
}Authorizations
Access token from POST /v2/oauth2/token, requested with an API credential. See https://api-docs.quivo.co/api-reference/authentication.
Response
200 - application/json
successful operation
Complete return shipment information with all details. Contains return identifiers, original order reference, return reason, status, and processing information.