List products for an organization
curl --request GET \
--url https://api.example.com/products \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/products"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/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.example.com/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-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"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.example.com/products")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "590ce6c56d04f840aa8438af",
"organizationId": "org-uuid",
"livemode": false,
"description": "Ukelele",
"productKey": 60131324,
"price": 345.6,
"taxIncluded": true,
"taxability": "01",
"taxes": [
{
"type": "IVA",
"rate": 0.16,
"withholding": false,
"factor": "Tasa"
}
],
"localTaxes": [
{
"type": "IVA",
"rate": 0.16,
"withholding": false,
"factor": "Tasa"
}
],
"unitKey": "H87",
"unitName": "Elemento",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"sku": "UKL-001"
}
]Products
List Products
GET
/
products
List products for an organization
curl --request GET \
--url https://api.example.com/products \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/products"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/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.example.com/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-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"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.example.com/products")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "590ce6c56d04f840aa8438af",
"organizationId": "org-uuid",
"livemode": false,
"description": "Ukelele",
"productKey": 60131324,
"price": 345.6,
"taxIncluded": true,
"taxability": "01",
"taxes": [
{
"type": "IVA",
"rate": 0.16,
"withholding": false,
"factor": "Tasa"
}
],
"localTaxes": [
{
"type": "IVA",
"rate": 0.16,
"withholding": false,
"factor": "Tasa"
}
],
"unitKey": "H87",
"unitName": "Elemento",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"sku": "UKL-001"
}
]Returns all products and services in the organization’s catalog. Supports optional filtering by description, SKU, or product key.
This endpoint takes noorganizationIdin the URL. Authenticate with either a Supabase Bearer session (send theX-Organization-Id: <org-id>header — the user must be a member of that organization) or an API key (the organization resolves automatically from the key; anyX-Organization-Idheader sent alongside an API key is ignored).
Authentication
Accepts either:- A Supabase Bearer session (
Authorization: Bearer <token>) with theX-Organization-Id: <org-id>header — the authenticated user must be a member of that organization. - An API key (
X-API-Key: sk_...) with theread:productsscope — the organization is resolved from the key itself.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
description | string | No | Filter by description (partial, case-insensitive) |
sku | string | No | Filter by SKU (partial, case-insensitive) |
productKey | integer | No | Filter by SAT product key (exact match) |
Example Request
curl "https://api.timbrix.mx/products?description=Ukelele" \
-H "Authorization: Bearer <your_token>" \
-H "X-Organization-Id: 550e8400-e29b-41d4-a716-446655440000"
import { Timbrix } from "@timbrix/sdk"
const client = new Timbrix({ bearerToken: "<your_token>" })
const products = await client.products.list(
{ description: "Ukelele" },
"550e8400-e29b-41d4-a716-446655440000"
)
console.log(products)
Example Response
[
{
"id": "590ce6c56d04f840aa8438af",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"livemode": true,
"description": "Ukelele",
"productKey": 60131324,
"price": 345.6,
"taxIncluded": true,
"taxability": "02",
"taxes": [{ "type": "IVA", "rate": 0.16 }],
"localTaxes": [],
"unitKey": "H87",
"unitName": "Elemento",
"sku": "UKL-001",
"createdAt": "2025-01-26T10:00:00Z",
"updatedAt": "2025-01-26T10:00:00Z"
}
]
Common Errors
400 Bad Request
MissingX-Organization-Id header on a session-authenticated request.
401 Unauthorized
Missing or invalid Bearer token / API key.403 Forbidden
The authenticated user is not a member of the organization sent inX-Organization-Id, or the API key does not have the read:products scope.Authorizations
apiKeybearer
API Key for authentication (format: sk_...)
Headers
Required for Supabase session auth. Ignored when authenticating with an API key (the organization resolves from the key).
Query Parameters
Filter by description (partial match)
Example:
"Ukelele"
Filter by SKU (partial match)
Example:
"UKL"
Filter by SAT product key (exact match)
Example:
60131324
Response
Example:
"590ce6c56d04f840aa8438af"
Example:
"org-uuid"
Example:
false
Example:
"Ukelele"
Example:
60131324
Example:
345.6
Example:
true
Example:
"01"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
"H87"
Example:
"Elemento"
Example:
"UKL-001"