> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Update Channel-Specific Checkout Settings

PUT https://api.bigcommerce.com/stores/{store_hash}/v3/checkouts/settings/channels/{channelId}
Content-Type: application/json

Updates the checkout settings for a given channel (storefront) by channelId.

This endpoint updates every setting included in the request body. Settings you omit remain unchanged. Send `null` for a setting to remove the channel override so the channel uses the store-level value again.

Reference: https://docs.bigcommerce.com/developer/api-reference/rest/admin/management/checkouts/settings/put-channel-checkout-settings

## Authentication

- `X-Auth-Token` header (required) — ### OAuth scopes | UI Name | Permission | Parameter | |:--------|:-----------|:----------| | Checkouts | modify | `store_checkouts` | | Checkouts | read-only | `store_checkouts_read_only` | | Checkout Content | modify | `store_checkout_content` | | Checkout Content | read-only | `store_checkout_content_read_only` | ### Authentication header | Header | Argument | Description | |:-------|:---------|:------------| | `X-Auth-Token` | `access_token` | For more about API accounts that generate `access_token`s, see our [Guide to API Accounts](/developer/docs/overview/api-fundamentals/api-accounts#api-accounts). | ### Further reading For example requests and more information about authenticating BigCommerce APIs, see [Authentication and Example Requests](/developer/docs/overview/api-fundamentals/api-accounts#x-auth-token-header-example-requests). For more about BigCommerce OAuth scopes, see our [Guide to API Accounts](/developer/docs/overview/api-fundamentals/api-accounts#oauth-scopes). For a list of API status codes, see [API Status Codes](/developer/api-reference/rest/overview#rest-http-status-codes).

## Request

### Path parameters

- `channelId` (integer, required) — The ID of the channel.
- `store_hash` (string, required) — Permanent ID of the BigCommerce store.

### Body (application/json)

This endpoint expects a ChannelCheckoutsSettings.

- `checkout_type` (enum, optional, nullable) — The checkout type. `optimized` uses Optimized One-Page Checkout. `custom` loads the script at `custom_checkout_script_url`, which must be set when the type is `custom`. Setting a non-empty `custom_checkout_script_url` while the type is `optimized` returns a 422.
  - Allowed values: `optimized`, `custom`
- `guest_checkout_type` (enum, optional, nullable) — How guest shoppers can check out. `guest_checkout` allows guest checkout. `guest_checkout_account` allows guest checkout and creates a customer account when the order completes. `no_guest_checkout` requires shoppers to sign in.
  - Allowed values: `guest_checkout`, `guest_checkout_account`, `no_guest_checkout`
- `guest_checkout_for_existing_accounts` (enum, optional, nullable) — How checkout treats a guest whose email matches an existing customer account. `allow_guest` lets them continue as a guest. `require_login` makes them sign in. `encourage_login` prompts them to sign in but lets them continue as a guest. When `guest_checkout_type` is `no_guest_checkout`, the channel-level value is set to `require_login`.
  - Allowed values: `allow_guest`, `require_login`, `encourage_login`
- `custom_checkout_script_url` (string, optional, nullable) — Custom checkout script URL to replace the default checkout. Accepts an `https` URL or a `webdav:` path to a file uploaded with WebDAV. To reset a store to Optimized One-Page Checkout, pass an empty string for `custom_checkout_script_url` and `custom_order_confirmation_script_url`.
- `policy_consent` (enum, optional, nullable) — How checkout collects privacy policy consent. `none` does not show a privacy policy. `standard` shows the privacy policy. `express` requires the shopper to actively consent before placing the order.
  - Allowed values: `none`, `standard`, `express`
- `order_confirmation_contact_email` (string, optional, nullable) — The contact email address shown on the order confirmation page.
- `order_confirmation_use_custom_checkout_script` (boolean, optional, nullable) — Whether the order confirmation page loads the same script as the custom checkout. When `true`, `custom_order_confirmation_script_url` defaults to an empty string.
- `custom_order_confirmation_script_url` (string, optional, nullable) — Custom order confirmation script URL to replace the default order confirmation page. Accepts an `https` URL or a `webdav:` path. To reset a store to Optimized One-Page Checkout, pass an empty string for `custom_checkout_script_url` and `custom_order_confirmation_script_url`.
- `is_order_terms_and_conditions_enabled` (boolean, optional, nullable) — Whether shoppers must accept order terms and conditions before placing an order. When `true`, `order_terms_and_conditions_type` is required, and the matching `order_terms_and_conditions_link` or `order_terms_and_conditions_textarea` must not be empty.
- `order_terms_and_conditions_type` (enum, optional, nullable) — How the terms and conditions display at checkout. `link` links to the page at `order_terms_and_conditions_link`. `textarea` shows the text in `order_terms_and_conditions_textarea`. Returns an empty string when terms and conditions are not configured.
  - Allowed values: `link`, `textarea`, ``
- `order_terms_and_conditions_link` (string, optional, nullable) — The URL of the terms and conditions page. Used when `order_terms_and_conditions_type` is `link`.
- `order_terms_and_conditions_textarea` (string, optional, nullable) — The terms and conditions text shown at checkout. Used when `order_terms_and_conditions_type` is `textarea`.
- `custom_checkout_supports_uco_settings` (boolean, optional, nullable) — Whether the custom checkout supports Optimized One-Page Checkout settings from the control panel.
- `custom_checkout_supports_data_hydration` (boolean, optional, nullable) — Whether the custom checkout receives the checkout's initial state when it loads, instead of fetching it after load. Takes effect only when initial-state hydration for custom checkouts is enabled for the store.
- `should_redirect_to_storefront_for_auth` (boolean, optional, nullable) — Whether checkout redirects shoppers to the storefront to sign in, so a headless storefront keeps the customer session in sync. Set to `true` for Catalyst and other headless storefronts that manage customer authentication.
- `support_b2b_settings` (boolean, optional, nullable) — Whether checkout applies B2B Edition settings, such as company account rules. Returned only for stores where B2B checkout settings are enabled.
- `custom_checkout_sri_hash` (string, optional, nullable) — The Subresource Integrity (SRI) hash for the custom checkout script. Accepts a `sha256-`, `sha384-`, or `sha512-` hash, or an empty string to remove the hash.
- `custom_order_confirmation_sri_hash` (string, optional, nullable) — The Subresource Integrity (SRI) hash for the custom order confirmation script. Accepts a `sha256-`, `sha384-`, or `sha512-` hash, or an empty string to remove the hash.

## Response

### 200

Channel checkout settings updated successfully

- `data` (ChannelCheckoutsSettings, optional) — Checkout settings that override the store-level settings for one channel. Every field is nullable. A `null` value means the channel has no override and uses the store-level value. Channel settings do not include `checkout_style_override`, `checkout_style_override_sri_hash`, or `enhanced_checkout_experience`.
- `meta` (MetaOpen, optional) — Response metadata.

## Errors

### 422 Unprocessable Entity Error

Invalid channelId or invalid request

- `any`

## Types

### ChannelCheckoutsSettings

Checkout settings that override the store-level settings for one channel. Every field is nullable. A `null` value means the channel has no override and uses the store-level value. Channel settings do not include `checkout_style_override`, `checkout_style_override_sri_hash`, or `enhanced_checkout_experience`.

- `checkout_type` (enum, optional, nullable) — The checkout type. `optimized` uses Optimized One-Page Checkout. `custom` loads the script at `custom_checkout_script_url`, which must be set when the type is `custom`. Setting a non-empty `custom_checkout_script_url` while the type is `optimized` returns a 422.
  - Allowed values: `optimized`, `custom`
- `guest_checkout_type` (enum, optional, nullable) — How guest shoppers can check out. `guest_checkout` allows guest checkout. `guest_checkout_account` allows guest checkout and creates a customer account when the order completes. `no_guest_checkout` requires shoppers to sign in.
  - Allowed values: `guest_checkout`, `guest_checkout_account`, `no_guest_checkout`
- `guest_checkout_for_existing_accounts` (enum, optional, nullable) — How checkout treats a guest whose email matches an existing customer account. `allow_guest` lets them continue as a guest. `require_login` makes them sign in. `encourage_login` prompts them to sign in but lets them continue as a guest. When `guest_checkout_type` is `no_guest_checkout`, the channel-level value is set to `require_login`.
  - Allowed values: `allow_guest`, `require_login`, `encourage_login`
- `custom_checkout_script_url` (string, optional, nullable) — Custom checkout script URL to replace the default checkout. Accepts an `https` URL or a `webdav:` path to a file uploaded with WebDAV. To reset a store to Optimized One-Page Checkout, pass an empty string for `custom_checkout_script_url` and `custom_order_confirmation_script_url`.
- `policy_consent` (enum, optional, nullable) — How checkout collects privacy policy consent. `none` does not show a privacy policy. `standard` shows the privacy policy. `express` requires the shopper to actively consent before placing the order.
  - Allowed values: `none`, `standard`, `express`
- `order_confirmation_contact_email` (string, optional, nullable) — The contact email address shown on the order confirmation page.
- `order_confirmation_use_custom_checkout_script` (boolean, optional, nullable) — Whether the order confirmation page loads the same script as the custom checkout. When `true`, `custom_order_confirmation_script_url` defaults to an empty string.
- `custom_order_confirmation_script_url` (string, optional, nullable) — Custom order confirmation script URL to replace the default order confirmation page. Accepts an `https` URL or a `webdav:` path. To reset a store to Optimized One-Page Checkout, pass an empty string for `custom_checkout_script_url` and `custom_order_confirmation_script_url`.
- `is_order_terms_and_conditions_enabled` (boolean, optional, nullable) — Whether shoppers must accept order terms and conditions before placing an order. When `true`, `order_terms_and_conditions_type` is required, and the matching `order_terms_and_conditions_link` or `order_terms_and_conditions_textarea` must not be empty.
- `order_terms_and_conditions_type` (enum, optional, nullable) — How the terms and conditions display at checkout. `link` links to the page at `order_terms_and_conditions_link`. `textarea` shows the text in `order_terms_and_conditions_textarea`. Returns an empty string when terms and conditions are not configured.
  - Allowed values: `link`, `textarea`, ``
- `order_terms_and_conditions_link` (string, optional, nullable) — The URL of the terms and conditions page. Used when `order_terms_and_conditions_type` is `link`.
- `order_terms_and_conditions_textarea` (string, optional, nullable) — The terms and conditions text shown at checkout. Used when `order_terms_and_conditions_type` is `textarea`.
- `custom_checkout_supports_uco_settings` (boolean, optional, nullable) — Whether the custom checkout supports Optimized One-Page Checkout settings from the control panel.
- `custom_checkout_supports_data_hydration` (boolean, optional, nullable) — Whether the custom checkout receives the checkout's initial state when it loads, instead of fetching it after load. Takes effect only when initial-state hydration for custom checkouts is enabled for the store.
- `should_redirect_to_storefront_for_auth` (boolean, optional, nullable) — Whether checkout redirects shoppers to the storefront to sign in, so a headless storefront keeps the customer session in sync. Set to `true` for Catalyst and other headless storefronts that manage customer authentication.
- `support_b2b_settings` (boolean, optional, nullable) — Whether checkout applies B2B Edition settings, such as company account rules. Returned only for stores where B2B checkout settings are enabled.
- `custom_checkout_sri_hash` (string, optional, nullable) — The Subresource Integrity (SRI) hash for the custom checkout script. Accepts a `sha256-`, `sha384-`, or `sha512-` hash, or an empty string to remove the hash.
- `custom_order_confirmation_sri_hash` (string, optional, nullable) — The Subresource Integrity (SRI) hash for the custom order confirmation script. Accepts a `sha256-`, `sha384-`, or `sha512-` hash, or an empty string to remove the hash.

### MetaOpen

Response metadata.

## Examples

### Response

**Response**

```json
{
  "data": {
    "checkout_type": null,
    "guest_checkout_type": "no_guest_checkout",
    "guest_checkout_for_existing_accounts": "require_login",
    "custom_checkout_script_url": null,
    "policy_consent": "express",
    "order_confirmation_contact_email": null,
    "order_confirmation_use_custom_checkout_script": null,
    "custom_order_confirmation_script_url": null,
    "is_order_terms_and_conditions_enabled": null,
    "order_terms_and_conditions_type": null,
    "order_terms_and_conditions_link": null,
    "order_terms_and_conditions_textarea": null,
    "custom_checkout_supports_uco_settings": null,
    "custom_checkout_supports_data_hydration": null,
    "should_redirect_to_storefront_for_auth": true,
    "support_b2b_settings": null,
    "custom_checkout_sri_hash": null,
    "custom_order_confirmation_sri_hash": null
  },
  "meta": {}
}
```

**SDK Code**

```python Response
import requests

url = "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1"

headers = {"X-Auth-Token": "<apiKey>"}

response = requests.put(url, headers=headers)

print(response.json())
```

```javascript Response
const url = 'https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1';
const options = {method: 'PUT', headers: {'X-Auth-Token': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Response
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("X-Auth-Token", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Response
require 'uri'
require 'net/http'

url = URI("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["X-Auth-Token"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")
  .header("X-Auth-Token", "<apiKey>")
  .asString();
```

```php Response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1', [
  'headers' => [
    'X-Auth-Token' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Response
using RestSharp;

var client = new RestClient("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1");
var request = new RestRequest(Method.PUT);
request.AddHeader("X-Auth-Token", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Response
import Foundation

let headers = ["X-Auth-Token": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Override guest checkout and storefront redirect

**Request**

```json
{
  "guest_checkout_type": "no_guest_checkout",
  "policy_consent": "express",
  "should_redirect_to_storefront_for_auth": true
}
```

**Response**

```json
{
  "data": {
    "checkout_type": null,
    "guest_checkout_type": "no_guest_checkout",
    "guest_checkout_for_existing_accounts": "require_login",
    "custom_checkout_script_url": null,
    "policy_consent": "express",
    "order_confirmation_contact_email": null,
    "order_confirmation_use_custom_checkout_script": null,
    "custom_order_confirmation_script_url": null,
    "is_order_terms_and_conditions_enabled": null,
    "order_terms_and_conditions_type": null,
    "order_terms_and_conditions_link": null,
    "order_terms_and_conditions_textarea": null,
    "custom_checkout_supports_uco_settings": null,
    "custom_checkout_supports_data_hydration": null,
    "should_redirect_to_storefront_for_auth": true,
    "support_b2b_settings": null,
    "custom_checkout_sri_hash": null,
    "custom_order_confirmation_sri_hash": null
  },
  "meta": {}
}
```

**SDK Code**

```python Override guest checkout and storefront redirect
import requests

url = "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1"

payload = {
    "guest_checkout_type": "no_guest_checkout",
    "policy_consent": "express",
    "should_redirect_to_storefront_for_auth": True
}
headers = {
    "X-Auth-Token": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Override guest checkout and storefront redirect
const url = 'https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1';
const options = {
  method: 'PUT',
  headers: {'X-Auth-Token': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"guest_checkout_type":"no_guest_checkout","policy_consent":"express","should_redirect_to_storefront_for_auth":true}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Override guest checkout and storefront redirect
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1"

	payload := strings.NewReader("{\n  \"guest_checkout_type\": \"no_guest_checkout\",\n  \"policy_consent\": \"express\",\n  \"should_redirect_to_storefront_for_auth\": true\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("X-Auth-Token", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Override guest checkout and storefront redirect
require 'uri'
require 'net/http'

url = URI("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["X-Auth-Token"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"guest_checkout_type\": \"no_guest_checkout\",\n  \"policy_consent\": \"express\",\n  \"should_redirect_to_storefront_for_auth\": true\n}"

response = http.request(request)
puts response.read_body
```

```java Override guest checkout and storefront redirect
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")
  .header("X-Auth-Token", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"guest_checkout_type\": \"no_guest_checkout\",\n  \"policy_consent\": \"express\",\n  \"should_redirect_to_storefront_for_auth\": true\n}")
  .asString();
```

```php Override guest checkout and storefront redirect
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1', [
  'body' => '{
  "guest_checkout_type": "no_guest_checkout",
  "policy_consent": "express",
  "should_redirect_to_storefront_for_auth": true
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Auth-Token' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Override guest checkout and storefront redirect
using RestSharp;

var client = new RestClient("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1");
var request = new RestRequest(Method.PUT);
request.AddHeader("X-Auth-Token", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"guest_checkout_type\": \"no_guest_checkout\",\n  \"policy_consent\": \"express\",\n  \"should_redirect_to_storefront_for_auth\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Override guest checkout and storefront redirect
import Foundation

let headers = [
  "X-Auth-Token": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "guest_checkout_type": "no_guest_checkout",
  "policy_consent": "express",
  "should_redirect_to_storefront_for_auth": true
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Remove an override

**Request**

```json
{
  "policy_consent": null
}
```

**Response**

```json
{
  "data": {
    "checkout_type": null,
    "guest_checkout_type": "no_guest_checkout",
    "guest_checkout_for_existing_accounts": "require_login",
    "custom_checkout_script_url": null,
    "policy_consent": "express",
    "order_confirmation_contact_email": null,
    "order_confirmation_use_custom_checkout_script": null,
    "custom_order_confirmation_script_url": null,
    "is_order_terms_and_conditions_enabled": null,
    "order_terms_and_conditions_type": null,
    "order_terms_and_conditions_link": null,
    "order_terms_and_conditions_textarea": null,
    "custom_checkout_supports_uco_settings": null,
    "custom_checkout_supports_data_hydration": null,
    "should_redirect_to_storefront_for_auth": true,
    "support_b2b_settings": null,
    "custom_checkout_sri_hash": null,
    "custom_order_confirmation_sri_hash": null
  },
  "meta": {}
}
```

**SDK Code**

```python Remove an override
import requests

url = "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1"

payload = { "policy_consent": None }
headers = {
    "X-Auth-Token": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Remove an override
const url = 'https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1';
const options = {
  method: 'PUT',
  headers: {'X-Auth-Token': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"policy_consent":null}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Remove an override
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1"

	payload := strings.NewReader("{\n  \"policy_consent\": null\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("X-Auth-Token", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Remove an override
require 'uri'
require 'net/http'

url = URI("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["X-Auth-Token"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"policy_consent\": null\n}"

response = http.request(request)
puts response.read_body
```

```java Remove an override
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")
  .header("X-Auth-Token", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"policy_consent\": null\n}")
  .asString();
```

```php Remove an override
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1', [
  'body' => '{
  "policy_consent": null
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Auth-Token' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Remove an override
using RestSharp;

var client = new RestClient("https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1");
var request = new RestRequest(Method.PUT);
request.AddHeader("X-Auth-Token", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"policy_consent\": null\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Remove an override
import Foundation

let headers = [
  "X-Auth-Token": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["policy_consent": ] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.bigcommerce.com/stores/store_hash/v3/checkouts/settings/channels/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```