curl --request POST \
--url https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline \
--header 'Content-Type: application/json' \
--data '
{
"details": "<string>"
}
'import requests
url = "https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline"
payload = { "details": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({details: '<string>'})
};
fetch('https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline', 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.cf.ovrsea.com/v1/quote-requests/{id}/decline",
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([
'details' => '<string>'
]),
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.cf.ovrsea.com/v1/quote-requests/{id}/decline"
payload := strings.NewReader("{\n \"details\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline")
.header("Content-Type", "application/json")
.body("{\n \"details\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"details\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"status": "accepted",
"created_at": "2021-09-20T10:02:09+01:00",
"updated_at": "2021-09-20T10:02:09+01:00",
"service": "chartering",
"freight_mode": "air",
"load_type": "fcl",
"truck_service": "ftl",
"truck_details": {
"body_type": "box",
"capacity": "mega",
"category": "crane_truck",
"special_equipments": [
"crane"
]
},
"incoterm": "exw",
"cargo_ready_date": "2023-12-25",
"desired_delivery_date": "2023-12-25",
"route": {
"pickup_location_id": "<string>",
"origin_port_id": "<string>",
"destination_port_id": "<string>",
"delivery_location_id": "<string>"
},
"cargo": {
"total_weight": {
"value": 350.25,
"unit": "kg"
},
"total_volume": {
"value": 10.25,
"unit": "m3"
},
"containers": [
{
"container_type": "twenty_foot_standard",
"foodgrade": true,
"is_hazardous": true,
"hazardous_description": "UN1993"
}
],
"loads": [
{
"count": 3,
"type": "pallet",
"pallet_size": "120x80",
"loading_meters": 123,
"weight": {
"value": 350.25,
"unit": "kg"
},
"total_weight": {
"value": 350.25,
"unit": "kg"
},
"total_volume": {
"value": 10.25,
"unit": "m3"
},
"length": {
"value": 10.25,
"unit": "cm"
},
"width": {
"value": 10.25,
"unit": "cm"
},
"height": {
"value": 10.25,
"unit": "cm"
},
"is_hazardous": true,
"hazardous_description": "UN1993",
"is_refrigerated": true,
"contains_lithium": true,
"contains_magnets": true,
"is_stackable": true
}
]
},
"goods_description": "<string>",
"transported_goods": {
"is_stackable": true,
"is_hazardous": false,
"hazardous_description": "UN1993",
"contains_lithium": false,
"lithium_packaging_type": "alone",
"contains_magnets": false,
"needs_controlled_temperature": false,
"temperature_range_description": "5-25°C"
},
"specific_instructions": "<string>",
"cargo_value": {
"amount": 150357.99,
"currency": "USD"
},
"insurance_type": "not_insured",
"urgent": true
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}Decline a quote request
Preview: Declines an open quote request and its sent quotes with a customer reason. The submitted reason, details and better_price_obtained feedback fields are write-only and are not returned on the quote request.
curl --request POST \
--url https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline \
--header 'Content-Type: application/json' \
--data '
{
"details": "<string>"
}
'import requests
url = "https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline"
payload = { "details": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({details: '<string>'})
};
fetch('https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline', 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.cf.ovrsea.com/v1/quote-requests/{id}/decline",
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([
'details' => '<string>'
]),
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.cf.ovrsea.com/v1/quote-requests/{id}/decline"
payload := strings.NewReader("{\n \"details\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline")
.header("Content-Type", "application/json")
.body("{\n \"details\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cf.ovrsea.com/v1/quote-requests/{id}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"details\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"status": "accepted",
"created_at": "2021-09-20T10:02:09+01:00",
"updated_at": "2021-09-20T10:02:09+01:00",
"service": "chartering",
"freight_mode": "air",
"load_type": "fcl",
"truck_service": "ftl",
"truck_details": {
"body_type": "box",
"capacity": "mega",
"category": "crane_truck",
"special_equipments": [
"crane"
]
},
"incoterm": "exw",
"cargo_ready_date": "2023-12-25",
"desired_delivery_date": "2023-12-25",
"route": {
"pickup_location_id": "<string>",
"origin_port_id": "<string>",
"destination_port_id": "<string>",
"delivery_location_id": "<string>"
},
"cargo": {
"total_weight": {
"value": 350.25,
"unit": "kg"
},
"total_volume": {
"value": 10.25,
"unit": "m3"
},
"containers": [
{
"container_type": "twenty_foot_standard",
"foodgrade": true,
"is_hazardous": true,
"hazardous_description": "UN1993"
}
],
"loads": [
{
"count": 3,
"type": "pallet",
"pallet_size": "120x80",
"loading_meters": 123,
"weight": {
"value": 350.25,
"unit": "kg"
},
"total_weight": {
"value": 350.25,
"unit": "kg"
},
"total_volume": {
"value": 10.25,
"unit": "m3"
},
"length": {
"value": 10.25,
"unit": "cm"
},
"width": {
"value": 10.25,
"unit": "cm"
},
"height": {
"value": 10.25,
"unit": "cm"
},
"is_hazardous": true,
"hazardous_description": "UN1993",
"is_refrigerated": true,
"contains_lithium": true,
"contains_magnets": true,
"is_stackable": true
}
]
},
"goods_description": "<string>",
"transported_goods": {
"is_stackable": true,
"is_hazardous": false,
"hazardous_description": "UN1993",
"contains_lithium": false,
"lithium_packaging_type": "alone",
"contains_magnets": false,
"needs_controlled_temperature": false,
"temperature_range_description": "5-25°C"
},
"specific_instructions": "<string>",
"cargo_value": {
"amount": 150357.99,
"currency": "USD"
},
"insurance_type": "not_insured",
"urgent": true
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"retry_after_seconds": 123
}Body
Preview: Write-only decline reason and optional feedback details (not returned on the quote request).
Preview: Write-only decline reason and optional feedback details (not returned on the quote request).
Response
Preview: The declined quote request.
Preview: Quote request visible to the customer.
Preview: Quote-request lifecycle status, with one public value for each platform status.
draft: the request is being prepared. Leaving draft or cancelling the request changes this value.
awaiting_quote: the request has no customer-visible quote yet. A sent quote, acceptance or cancellation changes this value.
quote_sent: at least one customer-visible quote was sent. Acceptance or cancellation changes this value; for a request that remains open, further quotes keep it, while all visible quotes being declined or expiring can change it.
accepted: a quote was accepted or the request became a shipment. Cancelling that shipment changes this value to cancelled.
declined: every customer-visible quote was declined. A newly sent customer-visible quote changes this value to quote_sent, and cancellation changes it to cancelled.
expired: every customer-visible quote expired. A newly sent customer-visible quote changes this value to quote_sent, and cancellation changes it to cancelled.
cancelled: the request was cancelled. Clearing its cancellation lets the platform recalculate the request or shipment status.
Further values may be added. Clients should handle an unknown value as an unrecognized status.
accepted, awaiting_quote, cancelled, declined, draft, expired, quote_sent 