product.info
curl --request GET \
--url https://merchant-url.com/api/product_get \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event": "product.info",
"data": {
"productID": "hat-123",
"sku": "SKU-11021"
}
}
'import requests
url = "https://merchant-url.com/api/product_get"
payload = {
"event": "product.info",
"data": {
"productID": "hat-123",
"sku": "SKU-11021"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event: 'product.info', data: {productID: 'hat-123', sku: 'SKU-11021'}})
};
fetch('https://merchant-url.com/api/product_get', 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-url.com/api/product_get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'event' => 'product.info',
'data' => [
'productID' => 'hat-123',
'sku' => 'SKU-11021'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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-url.com/api/product_get"
payload := strings.NewReader("{\n \"event\": \"product.info\",\n \"data\": {\n \"productID\": \"hat-123\",\n \"sku\": \"SKU-11021\"\n }\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("X-API-Key", "<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.get("https://merchant-url.com/api/product_get")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"product.info\",\n \"data\": {\n \"productID\": \"hat-123\",\n \"sku\": \"SKU-11021\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://merchant-url.com/api/product_get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"event\": \"product.info\",\n \"data\": {\n \"productID\": \"hat-123\",\n \"sku\": \"SKU-11021\"\n }\n}"
response = http.request(request)
puts response.read_body{
"event": "product.info",
"status": "success",
"data": {
"Current": {
"BoltID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
"Brand": "Bolt Swagstore",
"Name": "Pullover Hoodie-XS-Purple",
"Description": "Very beautiful and chic.",
"Multimedia": {
"ImageURLs": [
"https//boltswagstore.com/image.png"
],
"VideoURLs": [
"https//boltswagstore.com/jurassic-park.mov"
],
"AudioSamples": [
"https//boltswagstore.com/myjam.mp3"
]
},
"Identifiers": {
"SKU": "SKU-11021",
"GTIN": "AB3rJKam5DhYE",
"MerchantDivisionID": "4ab56ad7865ada4ad32",
"MerchantProductID": "881"
},
"Prices": [
{
"UnitPriceInCents": 754,
"Currency": "USD"
}
],
"IsVariantOf": "mens-shoe-86.",
"Availability": "in_stock",
"AvailabilityCount": "19",
"Properties": [
{
"NameID": 158,
"Name": "size",
"ValueID": 166,
"Value": "XS",
"Metadata": {
"TextLabel": "pattern",
"ImageURL": "https//boltswagstore.com/image.png",
"Position": 1
}
}
],
"ItemType": "physical",
"Taxable": true
},
"Variants": [
{
"BoltID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
"Brand": "Bolt Swagstore",
"Name": "Pullover Hoodie-XS-Purple",
"Description": "Very beautiful and chic.",
"Multimedia": {
"ImageURLs": [
"https//boltswagstore.com/image.png"
],
"VideoURLs": [
"https//boltswagstore.com/jurassic-park.mov"
],
"AudioSamples": [
"https//boltswagstore.com/myjam.mp3"
]
},
"Identifiers": {
"SKU": "SKU-11021",
"GTIN": "AB3rJKam5DhYE",
"MerchantDivisionID": "4ab56ad7865ada4ad32",
"MerchantProductID": "881"
},
"Prices": [
{
"UnitPriceInCents": 754,
"Currency": "USD"
}
],
"IsVariantOf": "mens-shoe-86.",
"Availability": "in_stock",
"AvailabilityCount": "19",
"Properties": [
{
"NameID": 158,
"Name": "size",
"ValueID": 166,
"Value": "XS",
"Metadata": {
"TextLabel": "pattern",
"ImageURL": "https//boltswagstore.com/image.png",
"Position": 1
}
}
],
"ItemType": "physical",
"Taxable": true
}
],
"Parent": {
"BoltID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
"Brand": "Bolt Swagstore",
"Name": "Pullover Hoodie-XS-Purple",
"Description": "Very beautiful and chic.",
"Multimedia": {
"ImageURLs": [
"https//boltswagstore.com/image.png"
],
"VideoURLs": [
"https//boltswagstore.com/jurassic-park.mov"
],
"AudioSamples": [
"https//boltswagstore.com/myjam.mp3"
]
},
"Identifiers": {
"SKU": "SKU-11021",
"GTIN": "AB3rJKam5DhYE",
"MerchantDivisionID": "4ab56ad7865ada4ad32",
"MerchantProductID": "881"
},
"Prices": [
{
"UnitPriceInCents": 754,
"Currency": "USD"
}
],
"IsVariantOf": "mens-shoe-86.",
"Availability": "in_stock",
"AvailabilityCount": "19",
"Properties": [
{
"NameID": 158,
"Name": "size",
"ValueID": 166,
"Value": "XS",
"Metadata": {
"TextLabel": "pattern",
"ImageURL": "https//boltswagstore.com/image.png",
"Position": 1
}
}
],
"ItemType": "physical",
"Taxable": true
}
}
}{
"event": "product.info",
"status": "failure",
"error": {
"code": 2001005,
"message": "This is an error message."
}
}Products
product.info
Bolt uses this endpoint to fetch product details, availability, and variant information from a merchant to display in Checkout Everywhere. You can pass either the productID or the sku; if both are present, Bolt defaults to productID.
GET
/
product_get
product.info
curl --request GET \
--url https://merchant-url.com/api/product_get \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event": "product.info",
"data": {
"productID": "hat-123",
"sku": "SKU-11021"
}
}
'import requests
url = "https://merchant-url.com/api/product_get"
payload = {
"event": "product.info",
"data": {
"productID": "hat-123",
"sku": "SKU-11021"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event: 'product.info', data: {productID: 'hat-123', sku: 'SKU-11021'}})
};
fetch('https://merchant-url.com/api/product_get', 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-url.com/api/product_get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'event' => 'product.info',
'data' => [
'productID' => 'hat-123',
'sku' => 'SKU-11021'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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-url.com/api/product_get"
payload := strings.NewReader("{\n \"event\": \"product.info\",\n \"data\": {\n \"productID\": \"hat-123\",\n \"sku\": \"SKU-11021\"\n }\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("X-API-Key", "<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.get("https://merchant-url.com/api/product_get")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"product.info\",\n \"data\": {\n \"productID\": \"hat-123\",\n \"sku\": \"SKU-11021\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://merchant-url.com/api/product_get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"event\": \"product.info\",\n \"data\": {\n \"productID\": \"hat-123\",\n \"sku\": \"SKU-11021\"\n }\n}"
response = http.request(request)
puts response.read_body{
"event": "product.info",
"status": "success",
"data": {
"Current": {
"BoltID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
"Brand": "Bolt Swagstore",
"Name": "Pullover Hoodie-XS-Purple",
"Description": "Very beautiful and chic.",
"Multimedia": {
"ImageURLs": [
"https//boltswagstore.com/image.png"
],
"VideoURLs": [
"https//boltswagstore.com/jurassic-park.mov"
],
"AudioSamples": [
"https//boltswagstore.com/myjam.mp3"
]
},
"Identifiers": {
"SKU": "SKU-11021",
"GTIN": "AB3rJKam5DhYE",
"MerchantDivisionID": "4ab56ad7865ada4ad32",
"MerchantProductID": "881"
},
"Prices": [
{
"UnitPriceInCents": 754,
"Currency": "USD"
}
],
"IsVariantOf": "mens-shoe-86.",
"Availability": "in_stock",
"AvailabilityCount": "19",
"Properties": [
{
"NameID": 158,
"Name": "size",
"ValueID": 166,
"Value": "XS",
"Metadata": {
"TextLabel": "pattern",
"ImageURL": "https//boltswagstore.com/image.png",
"Position": 1
}
}
],
"ItemType": "physical",
"Taxable": true
},
"Variants": [
{
"BoltID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
"Brand": "Bolt Swagstore",
"Name": "Pullover Hoodie-XS-Purple",
"Description": "Very beautiful and chic.",
"Multimedia": {
"ImageURLs": [
"https//boltswagstore.com/image.png"
],
"VideoURLs": [
"https//boltswagstore.com/jurassic-park.mov"
],
"AudioSamples": [
"https//boltswagstore.com/myjam.mp3"
]
},
"Identifiers": {
"SKU": "SKU-11021",
"GTIN": "AB3rJKam5DhYE",
"MerchantDivisionID": "4ab56ad7865ada4ad32",
"MerchantProductID": "881"
},
"Prices": [
{
"UnitPriceInCents": 754,
"Currency": "USD"
}
],
"IsVariantOf": "mens-shoe-86.",
"Availability": "in_stock",
"AvailabilityCount": "19",
"Properties": [
{
"NameID": 158,
"Name": "size",
"ValueID": 166,
"Value": "XS",
"Metadata": {
"TextLabel": "pattern",
"ImageURL": "https//boltswagstore.com/image.png",
"Position": 1
}
}
],
"ItemType": "physical",
"Taxable": true
}
],
"Parent": {
"BoltID": "e2bb0e7e-5625-536f-8ad7-25a26537ee28",
"Brand": "Bolt Swagstore",
"Name": "Pullover Hoodie-XS-Purple",
"Description": "Very beautiful and chic.",
"Multimedia": {
"ImageURLs": [
"https//boltswagstore.com/image.png"
],
"VideoURLs": [
"https//boltswagstore.com/jurassic-park.mov"
],
"AudioSamples": [
"https//boltswagstore.com/myjam.mp3"
]
},
"Identifiers": {
"SKU": "SKU-11021",
"GTIN": "AB3rJKam5DhYE",
"MerchantDivisionID": "4ab56ad7865ada4ad32",
"MerchantProductID": "881"
},
"Prices": [
{
"UnitPriceInCents": 754,
"Currency": "USD"
}
],
"IsVariantOf": "mens-shoe-86.",
"Availability": "in_stock",
"AvailabilityCount": "19",
"Properties": [
{
"NameID": 158,
"Name": "size",
"ValueID": 166,
"Value": "XS",
"Metadata": {
"TextLabel": "pattern",
"ImageURL": "https//boltswagstore.com/image.png",
"Position": 1
}
}
],
"ItemType": "physical",
"Taxable": true
}
}
}{
"event": "product.info",
"status": "failure",
"error": {
"code": 2001005,
"message": "This is an error message."
}
}Authorizations
Admins and Developers can obtain their Bolt API key from the Bolt Merchant Dashboard.
Headers
Bolt sends a signed HMAC for hook verification
Body
application/json