Get Product
Retrieve details about a specific product
GET
/
api
/
v2
/
products
/
{id}
Get Product
curl --request GET \
--url https://api.example.com/api/v2/products/{id}import requests
url = "https://api.example.com/api/v2/products/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v2/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.example.com/api/v2/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.example.com/api/v2/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.example.com/api/v2/products/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/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_bodyGet Product
Retrieve information about a product, including current HSA/FSA eligibility status.Authentication
Authorization: Bearer glm_test_YOUR_API_KEY
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Product ID |
Request
GET /api/v2/products/{id}
Response
{
"id": 12345,
"name": "Digital Blood Pressure Monitor",
"tagline": "FDA-approved automatic BP monitor",
"description": "Clinically validated blood pressure monitor with Bluetooth connectivity. Features automatic inflation, irregular heartbeat detection, and memory for 200 readings. Includes carrying case and 4 AAA batteries.",
"price": 4995,
"currency": "USD",
"merchant_product_id": "BP-MONITOR-001",
"upc_code_or_gtin": "14567890123456",
"status": "active",
"eligibility": {
"hsa_fsa_eligible": true,
"message": "SIGIS verified - Medical device",
"checked_at": "2025-10-18T14:30:00Z"
},
"images": [
{
"id": 567,
"url": "https://cdn.example.com/bp-monitor-front.jpg",
"is_primary": true
},
{
"id": 568,
"url": "https://cdn.example.com/bp-monitor-side.jpg",
"is_primary": false
}
],
"metadata": {
"category": "medical_devices",
"brand": "HealthTech Pro",
"weight": "0.5 lbs"
},
"created_at": "2025-10-18T14:30:00Z",
"updated_at": "2025-10-18T14:30:00Z"
}
All monetary amounts are integers in cents (e.g., 4995 = $49.95).
Examples
curl https://api.withgale.com/api/v2/products/12345 \
-H "Authorization: Bearer glm_test_YOUR_API_KEY"
Product Status
| Status | Description |
|---|---|
active | Available for sale |
inactive | Temporarily unavailable |
archived | Removed from catalog (soft deleted) |
Errors
| Status Code | Error Code | Description |
|---|---|---|
| 401 | unauthorized | Invalid or missing API key |
| 404 | not_found | Product not found |
| 429 | rate_limit_exceeded | Too many requests |
{
"error": {
"code": "not_found",
"message": "Product not found",
"param": "id"
}
}
Related Endpoints
- Create Product - POST /api/v2/products
- Update Product - PUT /api/v2/products/
- List Products - GET /api/v2/products
- Check Eligibility - POST /api/v2/products/check-eligibility
Related Resources
โI
Get Product
curl --request GET \
--url https://api.example.com/api/v2/products/{id}import requests
url = "https://api.example.com/api/v2/products/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v2/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.example.com/api/v2/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.example.com/api/v2/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.example.com/api/v2/products/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/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