RemoveRestrictedProducts (Global-e to Merchant)
curl --request POST \
--url https://{merchant_site_domain}/remove-restricted-products-url \
--header 'Content-Type: application/json' \
--data '
{
"MerchantGUID": "<MERCHANT_GUID>",
"CartToken": "d3b9d91b-cbc9-4485-9f37-b0490c419338",
"CartId": "37296D5PJE",
"UserId": null,
"CountryCode": "VN",
"CurrencyCode": "VND",
"WebStoreCode": null,
"WebStoreInstanceCode": null,
"RemovedProductCodes": [
"1601893OPK0XS"
]
}
'import requests
url = "https://{merchant_site_domain}/remove-restricted-products-url"
payload = {
"MerchantGUID": "<MERCHANT_GUID>",
"CartToken": "d3b9d91b-cbc9-4485-9f37-b0490c419338",
"CartId": "37296D5PJE",
"UserId": None,
"CountryCode": "VN",
"CurrencyCode": "VND",
"WebStoreCode": None,
"WebStoreInstanceCode": None,
"RemovedProductCodes": ["1601893OPK0XS"]
}
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({
MerchantGUID: '<MERCHANT_GUID>',
CartToken: 'd3b9d91b-cbc9-4485-9f37-b0490c419338',
CartId: '37296D5PJE',
UserId: null,
CountryCode: 'VN',
CurrencyCode: 'VND',
WebStoreCode: null,
WebStoreInstanceCode: null,
RemovedProductCodes: ['1601893OPK0XS']
})
};
fetch('https://{merchant_site_domain}/remove-restricted-products-url', 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://{merchant_site_domain}/remove-restricted-products-url",
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([
'MerchantGUID' => '<MERCHANT_GUID>',
'CartToken' => 'd3b9d91b-cbc9-4485-9f37-b0490c419338',
'CartId' => '37296D5PJE',
'UserId' => null,
'CountryCode' => 'VN',
'CurrencyCode' => 'VND',
'WebStoreCode' => null,
'WebStoreInstanceCode' => null,
'RemovedProductCodes' => [
'1601893OPK0XS'
]
]),
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://{merchant_site_domain}/remove-restricted-products-url"
payload := strings.NewReader("{\n \"MerchantGUID\": \"<MERCHANT_GUID>\",\n \"CartToken\": \"d3b9d91b-cbc9-4485-9f37-b0490c419338\",\n \"CartId\": \"37296D5PJE\",\n \"UserId\": null,\n \"CountryCode\": \"VN\",\n \"CurrencyCode\": \"VND\",\n \"WebStoreCode\": null,\n \"WebStoreInstanceCode\": null,\n \"RemovedProductCodes\": [\n \"1601893OPK0XS\"\n ]\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://{merchant_site_domain}/remove-restricted-products-url")
.header("Content-Type", "application/json")
.body("{\n \"MerchantGUID\": \"<MERCHANT_GUID>\",\n \"CartToken\": \"d3b9d91b-cbc9-4485-9f37-b0490c419338\",\n \"CartId\": \"37296D5PJE\",\n \"UserId\": null,\n \"CountryCode\": \"VN\",\n \"CurrencyCode\": \"VND\",\n \"WebStoreCode\": null,\n \"WebStoreInstanceCode\": null,\n \"RemovedProductCodes\": [\n \"1601893OPK0XS\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{merchant_site_domain}/remove-restricted-products-url")
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 \"MerchantGUID\": \"<MERCHANT_GUID>\",\n \"CartToken\": \"d3b9d91b-cbc9-4485-9f37-b0490c419338\",\n \"CartId\": \"37296D5PJE\",\n \"UserId\": null,\n \"CountryCode\": \"VN\",\n \"CurrencyCode\": \"VND\",\n \"WebStoreCode\": null,\n \"WebStoreInstanceCode\": null,\n \"RemovedProductCodes\": [\n \"1601893OPK0XS\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"IsSuccess": true
}RemoveRestrictedProducts (Global-e to Merchant)
This API removes restricted products from the merchant cart; it notifies merchants that restricted products were removed from the cart, then merchants must also update the cart on the merchant side.
POST
/
remove-restricted-products-url
RemoveRestrictedProducts (Global-e to Merchant)
curl --request POST \
--url https://{merchant_site_domain}/remove-restricted-products-url \
--header 'Content-Type: application/json' \
--data '
{
"MerchantGUID": "<MERCHANT_GUID>",
"CartToken": "d3b9d91b-cbc9-4485-9f37-b0490c419338",
"CartId": "37296D5PJE",
"UserId": null,
"CountryCode": "VN",
"CurrencyCode": "VND",
"WebStoreCode": null,
"WebStoreInstanceCode": null,
"RemovedProductCodes": [
"1601893OPK0XS"
]
}
'import requests
url = "https://{merchant_site_domain}/remove-restricted-products-url"
payload = {
"MerchantGUID": "<MERCHANT_GUID>",
"CartToken": "d3b9d91b-cbc9-4485-9f37-b0490c419338",
"CartId": "37296D5PJE",
"UserId": None,
"CountryCode": "VN",
"CurrencyCode": "VND",
"WebStoreCode": None,
"WebStoreInstanceCode": None,
"RemovedProductCodes": ["1601893OPK0XS"]
}
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({
MerchantGUID: '<MERCHANT_GUID>',
CartToken: 'd3b9d91b-cbc9-4485-9f37-b0490c419338',
CartId: '37296D5PJE',
UserId: null,
CountryCode: 'VN',
CurrencyCode: 'VND',
WebStoreCode: null,
WebStoreInstanceCode: null,
RemovedProductCodes: ['1601893OPK0XS']
})
};
fetch('https://{merchant_site_domain}/remove-restricted-products-url', 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://{merchant_site_domain}/remove-restricted-products-url",
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([
'MerchantGUID' => '<MERCHANT_GUID>',
'CartToken' => 'd3b9d91b-cbc9-4485-9f37-b0490c419338',
'CartId' => '37296D5PJE',
'UserId' => null,
'CountryCode' => 'VN',
'CurrencyCode' => 'VND',
'WebStoreCode' => null,
'WebStoreInstanceCode' => null,
'RemovedProductCodes' => [
'1601893OPK0XS'
]
]),
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://{merchant_site_domain}/remove-restricted-products-url"
payload := strings.NewReader("{\n \"MerchantGUID\": \"<MERCHANT_GUID>\",\n \"CartToken\": \"d3b9d91b-cbc9-4485-9f37-b0490c419338\",\n \"CartId\": \"37296D5PJE\",\n \"UserId\": null,\n \"CountryCode\": \"VN\",\n \"CurrencyCode\": \"VND\",\n \"WebStoreCode\": null,\n \"WebStoreInstanceCode\": null,\n \"RemovedProductCodes\": [\n \"1601893OPK0XS\"\n ]\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://{merchant_site_domain}/remove-restricted-products-url")
.header("Content-Type", "application/json")
.body("{\n \"MerchantGUID\": \"<MERCHANT_GUID>\",\n \"CartToken\": \"d3b9d91b-cbc9-4485-9f37-b0490c419338\",\n \"CartId\": \"37296D5PJE\",\n \"UserId\": null,\n \"CountryCode\": \"VN\",\n \"CurrencyCode\": \"VND\",\n \"WebStoreCode\": null,\n \"WebStoreInstanceCode\": null,\n \"RemovedProductCodes\": [\n \"1601893OPK0XS\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{merchant_site_domain}/remove-restricted-products-url")
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 \"MerchantGUID\": \"<MERCHANT_GUID>\",\n \"CartToken\": \"d3b9d91b-cbc9-4485-9f37-b0490c419338\",\n \"CartId\": \"37296D5PJE\",\n \"UserId\": null,\n \"CountryCode\": \"VN\",\n \"CurrencyCode\": \"VND\",\n \"WebStoreCode\": null,\n \"WebStoreInstanceCode\": null,\n \"RemovedProductCodes\": [\n \"1601893OPK0XS\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"IsSuccess": true
}This API is part of Global-e’s extensions and plug-ins. Merchants do not need to implement this API unless a custom integration is required.
Body
application/json
Contains information related to a request to remove a restricted product.
Response
200 - application/json
Response Parameters
Provides details about response to API call for removal of a restricted product.

