Products
Retrieve product details
Fetches detailed information about a product, including variants and deliverables, for a given product ID. Requires x-store-id.
Usage: Provides comprehensive insights into a product’s configuration, variants, and linked digital deliverables for store management and product cataloging.
**Path
GET
/
products
/
{id}
Retrieve product details
curl --request GET \
--url https://api.blink.store/v1/products/{id}import requests
url = "https://api.blink.store/v1/products/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.blink.store/v1/products/{id}', 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.blink.store/v1/products/{id}",
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://api.blink.store/v1/products/{id}"
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://api.blink.store/v1/products/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blink.store/v1/products/{id}")
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": {
"id": "<string>",
"store_id": "<string>",
"name": "<string>",
"description": "<string>",
"preview_link": "<string>",
"pricing_model": "one_time",
"price": 123,
"currency": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"subscription_interval": "day",
"trial_days": 123,
"is_bundle": true,
"bundle_items": [
{
"product_id": "<string>",
"variant_id": "<string>"
}
],
"variants": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"price": 123,
"currency": "<string>",
"is_active": true,
"subscription_interval": "day",
"trial_days": 123,
"created_at": "2023-11-07T05:31:56Z",
"subscription_interval_count": 2
}
],
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"url": "<string>"
}
],
"categories": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>"
}
],
"subscription_interval_count": 2
}
}⌘I
Retrieve product details
curl --request GET \
--url https://api.blink.store/v1/products/{id}import requests
url = "https://api.blink.store/v1/products/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.blink.store/v1/products/{id}', 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.blink.store/v1/products/{id}",
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://api.blink.store/v1/products/{id}"
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://api.blink.store/v1/products/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blink.store/v1/products/{id}")
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": {
"id": "<string>",
"store_id": "<string>",
"name": "<string>",
"description": "<string>",
"preview_link": "<string>",
"pricing_model": "one_time",
"price": 123,
"currency": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"subscription_interval": "day",
"trial_days": 123,
"is_bundle": true,
"bundle_items": [
{
"product_id": "<string>",
"variant_id": "<string>"
}
],
"variants": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"price": 123,
"currency": "<string>",
"is_active": true,
"subscription_interval": "day",
"trial_days": 123,
"created_at": "2023-11-07T05:31:56Z",
"subscription_interval_count": 2
}
],
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"url": "<string>"
}
],
"categories": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>"
}
],
"subscription_interval_count": 2
}
}