Products
List all products
Retrieve a paginated list of products for the store identified by x-store-id. Supports filtering by status and pricing_model, as well as pagination using limit, page, and offset. Returns detailed product information including variants and images.
GET
/
v1
/
products
List all products
curl --request GET \
--url https://api.blink.store/v1/v1/products \
--header 'x-store-id: <api-key>'import requests
url = "https://api.blink.store/v1/v1/products"
headers = {"x-store-id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-store-id': '<api-key>'}};
fetch('https://api.blink.store/v1/v1/products', 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/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-store-id: <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"
"net/http"
"io"
)
func main() {
url := "https://api.blink.store/v1/v1/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-store-id", "<api-key>")
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/v1/products")
.header("x-store-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blink.store/v1/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-store-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"has_more": true
},
"data": [
{
"id": "<string>",
"store_id": "<string>",
"name": "<string>",
"description": "<string>",
"preview_link": "<string>",
"pricing_model": "<string>",
"price": 123,
"currency": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"subscription_interval": "<string>",
"trial_days": 123,
"pricing_tiers": "<string>",
"package_size": 123,
"metered_prices": "<string>",
"requires_license_key": true,
"license_key_activation_limit": 123,
"cart_recovery_enabled": true,
"customer_portal_visibility": true,
"variants": [
{
"id": "<string>",
"product_id": "<string>",
"name": "<string>",
"description": "<string>",
"price": 123,
"subscription_interval": "<string>",
"trial_days": 123,
"is_active": true,
"requires_license_key": true,
"license_key_activation_limit": 123,
"created_at": "2023-11-07T05:31:56Z",
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"button_label": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
],
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"button_label": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"images": [
{
"id": "<string>",
"file_url": "<string>",
"position": 123
}
]
}
]
}Authorizations
Query Parameters
Filter products by status.
Filter products by pricing model.
Maximum number of products to return.
Page number to retrieve.
Previous
Create a new productCreates a new product within the store identified by `x-store-id`. Requires `name`, `pricing_model`, and `price` in the request body. Optionally includes description and other attributes. Valid pricing models are `one_time`, `subscription`, `pay_what_you_want`, and `tiered`. Ensures the new product is not archived.
Next
⌘I
List all products
curl --request GET \
--url https://api.blink.store/v1/v1/products \
--header 'x-store-id: <api-key>'import requests
url = "https://api.blink.store/v1/v1/products"
headers = {"x-store-id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-store-id': '<api-key>'}};
fetch('https://api.blink.store/v1/v1/products', 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/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-store-id: <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"
"net/http"
"io"
)
func main() {
url := "https://api.blink.store/v1/v1/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-store-id", "<api-key>")
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/v1/products")
.header("x-store-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blink.store/v1/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-store-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"total": 123,
"page": 123,
"limit": 123,
"has_more": true
},
"data": [
{
"id": "<string>",
"store_id": "<string>",
"name": "<string>",
"description": "<string>",
"preview_link": "<string>",
"pricing_model": "<string>",
"price": 123,
"currency": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"subscription_interval": "<string>",
"trial_days": 123,
"pricing_tiers": "<string>",
"package_size": 123,
"metered_prices": "<string>",
"requires_license_key": true,
"license_key_activation_limit": 123,
"cart_recovery_enabled": true,
"customer_portal_visibility": true,
"variants": [
{
"id": "<string>",
"product_id": "<string>",
"name": "<string>",
"description": "<string>",
"price": 123,
"subscription_interval": "<string>",
"trial_days": 123,
"is_active": true,
"requires_license_key": true,
"license_key_activation_limit": 123,
"created_at": "2023-11-07T05:31:56Z",
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"button_label": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
],
"deliverables": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"button_label": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"images": [
{
"id": "<string>",
"file_url": "<string>",
"position": 123
}
]
}
]
}