curl --request PATCH \
--url https://api.crevio.co/v1/checkout_configuration \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"success_url": "<string>",
"collect_tax": true,
"allow_discount_codes": true,
"show_tax_id_input": true,
"show_phone_number_input": true,
"collect_call_consent": true,
"collect_shipping_address": true,
"allow_multiple_quantity": true,
"allowed_countries": [
"<string>"
]
}
'import requests
url = "https://api.crevio.co/v1/checkout_configuration"
payload = {
"success_url": "<string>",
"collect_tax": True,
"allow_discount_codes": True,
"show_tax_id_input": True,
"show_phone_number_input": True,
"collect_call_consent": True,
"collect_shipping_address": True,
"allow_multiple_quantity": True,
"allowed_countries": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
success_url: '<string>',
collect_tax: true,
allow_discount_codes: true,
show_tax_id_input: true,
show_phone_number_input: true,
collect_call_consent: true,
collect_shipping_address: true,
allow_multiple_quantity: true,
allowed_countries: ['<string>']
})
};
fetch('https://api.crevio.co/v1/checkout_configuration', 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.crevio.co/v1/checkout_configuration",
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([
'success_url' => '<string>',
'collect_tax' => true,
'allow_discount_codes' => true,
'show_tax_id_input' => true,
'show_phone_number_input' => true,
'collect_call_consent' => true,
'collect_shipping_address' => true,
'allow_multiple_quantity' => true,
'allowed_countries' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.crevio.co/v1/checkout_configuration"
payload := strings.NewReader("{\n \"success_url\": \"<string>\",\n \"collect_tax\": true,\n \"allow_discount_codes\": true,\n \"show_tax_id_input\": true,\n \"show_phone_number_input\": true,\n \"collect_call_consent\": true,\n \"collect_shipping_address\": true,\n \"allow_multiple_quantity\": true,\n \"allowed_countries\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.crevio.co/v1/checkout_configuration")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"success_url\": \"<string>\",\n \"collect_tax\": true,\n \"allow_discount_codes\": true,\n \"show_tax_id_input\": true,\n \"show_phone_number_input\": true,\n \"collect_call_consent\": true,\n \"collect_shipping_address\": true,\n \"allow_multiple_quantity\": true,\n \"allowed_countries\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.crevio.co/v1/checkout_configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"success_url\": \"<string>\",\n \"collect_tax\": true,\n \"allow_discount_codes\": true,\n \"show_tax_id_input\": true,\n \"show_phone_number_input\": true,\n \"collect_call_consent\": true,\n \"collect_shipping_address\": true,\n \"allow_multiple_quantity\": true,\n \"allowed_countries\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "<string>",
"allowed_countries": [
"<string>"
],
"collect_tax": true,
"tax_behavior": "unspecified",
"tax_code": "<string>",
"allow_discount_codes": true,
"show_tax_id_input": true,
"show_phone_number_input": true,
"collect_call_consent": true,
"collect_shipping_address": true,
"allow_multiple_quantity": true,
"success_url": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "bad_request",
"message": "The request was malformed or contained invalid parameters"
}
}{
"error": {
"type": "invalid_request_error",
"code": "authentication_required",
"message": "You did not provide an API key."
}
}{
"error": {
"type": "invalid_request_error",
"code": "forbidden",
"message": "You do not have permission to perform this action"
}
}{
"error": {
"type": "validation_error",
"code": "validation_failed",
"message": "Email is required",
"errors": {
"email": [
"can't be blank"
]
}
}
}{
"error": {
"type": "invalid_request_error",
"code": "rate_limit_exceeded",
"message": "Too many requests. Please retry later."
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "An unexpected error occurred"
}
}Update checkout configuration
Partially updates the account-wide checkout settings; only the fields sent change. allowed_countries is an allow-list of ISO 3166-1 alpha-2 codes (["US", "CA"] lets only US and Canadian buyers through) — send [] to lift the restriction, never the full list of countries. success_url must be a full https:// URL; send null or "" to restore the default thank-you page. Saving expires every open checkout session and re-syncs the account’s Stripe Tax settings.
curl --request PATCH \
--url https://api.crevio.co/v1/checkout_configuration \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"success_url": "<string>",
"collect_tax": true,
"allow_discount_codes": true,
"show_tax_id_input": true,
"show_phone_number_input": true,
"collect_call_consent": true,
"collect_shipping_address": true,
"allow_multiple_quantity": true,
"allowed_countries": [
"<string>"
]
}
'import requests
url = "https://api.crevio.co/v1/checkout_configuration"
payload = {
"success_url": "<string>",
"collect_tax": True,
"allow_discount_codes": True,
"show_tax_id_input": True,
"show_phone_number_input": True,
"collect_call_consent": True,
"collect_shipping_address": True,
"allow_multiple_quantity": True,
"allowed_countries": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
success_url: '<string>',
collect_tax: true,
allow_discount_codes: true,
show_tax_id_input: true,
show_phone_number_input: true,
collect_call_consent: true,
collect_shipping_address: true,
allow_multiple_quantity: true,
allowed_countries: ['<string>']
})
};
fetch('https://api.crevio.co/v1/checkout_configuration', 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.crevio.co/v1/checkout_configuration",
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([
'success_url' => '<string>',
'collect_tax' => true,
'allow_discount_codes' => true,
'show_tax_id_input' => true,
'show_phone_number_input' => true,
'collect_call_consent' => true,
'collect_shipping_address' => true,
'allow_multiple_quantity' => true,
'allowed_countries' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.crevio.co/v1/checkout_configuration"
payload := strings.NewReader("{\n \"success_url\": \"<string>\",\n \"collect_tax\": true,\n \"allow_discount_codes\": true,\n \"show_tax_id_input\": true,\n \"show_phone_number_input\": true,\n \"collect_call_consent\": true,\n \"collect_shipping_address\": true,\n \"allow_multiple_quantity\": true,\n \"allowed_countries\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.crevio.co/v1/checkout_configuration")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"success_url\": \"<string>\",\n \"collect_tax\": true,\n \"allow_discount_codes\": true,\n \"show_tax_id_input\": true,\n \"show_phone_number_input\": true,\n \"collect_call_consent\": true,\n \"collect_shipping_address\": true,\n \"allow_multiple_quantity\": true,\n \"allowed_countries\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.crevio.co/v1/checkout_configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"success_url\": \"<string>\",\n \"collect_tax\": true,\n \"allow_discount_codes\": true,\n \"show_tax_id_input\": true,\n \"show_phone_number_input\": true,\n \"collect_call_consent\": true,\n \"collect_shipping_address\": true,\n \"allow_multiple_quantity\": true,\n \"allowed_countries\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "<string>",
"allowed_countries": [
"<string>"
],
"collect_tax": true,
"tax_behavior": "unspecified",
"tax_code": "<string>",
"allow_discount_codes": true,
"show_tax_id_input": true,
"show_phone_number_input": true,
"collect_call_consent": true,
"collect_shipping_address": true,
"allow_multiple_quantity": true,
"success_url": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "bad_request",
"message": "The request was malformed or contained invalid parameters"
}
}{
"error": {
"type": "invalid_request_error",
"code": "authentication_required",
"message": "You did not provide an API key."
}
}{
"error": {
"type": "invalid_request_error",
"code": "forbidden",
"message": "You do not have permission to perform this action"
}
}{
"error": {
"type": "validation_error",
"code": "validation_failed",
"message": "Email is required",
"errors": {
"email": [
"can't be blank"
]
}
}
}{
"error": {
"type": "invalid_request_error",
"code": "rate_limit_exceeded",
"message": "Too many requests. Please retry later."
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "An unexpected error occurred"
}
}Authorizations
API key in the format: Bearer {api_token}
Body
Full https:// URL buyers land on after paying. Pass null or "" to restore the default thank-you page.
Collect tax at checkout via Stripe Tax.
Whether prices include tax (inclusive) or tax is added on top (exclusive).
unspecified, inclusive, exclusive Allow-list of ISO 3166-1 alpha-2 country codes (e.g. ["DE", "AT"]); buyers outside it are blocked at checkout. Case-insensitive. Pass [] to allow every country.
Response
Checkout configuration updated
ISO 3166-1 alpha-2 allow-list; empty means every country can check out.
unspecified, inclusive, exclusive Was this page helpful?

