Retrieve an end-customer quote
curl --request GET \
--url https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}import requests
url = "https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}', 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://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"intent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bookId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bookVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotencyKey": "<string>",
"requestCorrelationId": "<string>",
"inputs": {
"offeringId": "<string>",
"factors": {}
},
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
},
"receipt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteIntentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bookVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"computation": {
"currency": "<string>",
"lineItems": [
{
"label": "<string>",
"amountMinor": 123,
"ruleId": "<string>"
}
],
"totalMinor": 1,
"paymentTerms": {
"depositBasisPoints": 5000,
"depositMinor": 1,
"balanceDueMinor": 1
},
"conditions": [
"<string>"
],
"derivation": [
{
"sequence": 1,
"ruleId": "<string>",
"ruleType": "<string>",
"reason": "<string>",
"deltaMinor": 123,
"runningTotalMinor": 1
}
]
},
"missingInputs": [
"<string>"
],
"failure": {
"code": "<string>",
"message": "<string>"
},
"idempotencyKey": "<string>",
"requestCorrelationId": "<string>",
"latencyMs": 1,
"createdAt": "2023-11-07T05:31:56Z"
}
},
"requestId": "<string>"
}{
"error": {
"code": "quote_not_found",
"message": "The Quote Intent does not exist in this scope.",
"requestId": "req_9f8e7d6c"
}
}Public quotes
Retrieve an end-customer quote
Anonymous retrieval restricted to Quotes created through the hosted
end-customer surface (source hosted with an end-customer actor).
Member and API-key quotes return 404 on this route.
GET
/
v1
/
public_quotes
/
{quoteIntentId}
Retrieve an end-customer quote
curl --request GET \
--url https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}import requests
url = "https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}', 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://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-kordless-instance.com/v1/public_quotes/{quoteIntentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"intent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bookId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bookVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotencyKey": "<string>",
"requestCorrelationId": "<string>",
"inputs": {
"offeringId": "<string>",
"factors": {}
},
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
},
"receipt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteIntentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bookVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"computation": {
"currency": "<string>",
"lineItems": [
{
"label": "<string>",
"amountMinor": 123,
"ruleId": "<string>"
}
],
"totalMinor": 1,
"paymentTerms": {
"depositBasisPoints": 5000,
"depositMinor": 1,
"balanceDueMinor": 1
},
"conditions": [
"<string>"
],
"derivation": [
{
"sequence": 1,
"ruleId": "<string>",
"ruleType": "<string>",
"reason": "<string>",
"deltaMinor": 123,
"runningTotalMinor": 1
}
]
},
"missingInputs": [
"<string>"
],
"failure": {
"code": "<string>",
"message": "<string>"
},
"idempotencyKey": "<string>",
"requestCorrelationId": "<string>",
"latencyMs": 1,
"createdAt": "2023-11-07T05:31:56Z"
}
},
"requestId": "<string>"
}{
"error": {
"code": "quote_not_found",
"message": "The Quote Intent does not exist in this scope.",
"requestId": "req_9f8e7d6c"
}
}⌘I