Your store's inventory, one request away.

See it in action

Ask for your products. Get clean JSON back.

One HTTPS request with your API key returns the same names, prices and stock you see in Inventory, ready for your website, shop or spreadsheet.

REST · JSON · v1 · read-only

sync-products.sh200 OK · 84ms
$ curl "https://www.mytindahan.store/api/v1/products?search=coke" \
    -H "Authorization: Bearer mt_live_••••••••"

{  "data": [    {      "name": "Coke 1.5L",      "price": 75.00,      "stock": 12,      "stock_status": "in_stock",      "category": { "name": "Drinks" },      "barcode": "4801981116072"    }  ],  "next_cursor": null}$ 

How it connects

Keep one inventory. Feed every app you use.

Your Inventory

Products, prices and stock you already keep in MyTindahan

MyTindahan API

Your key, read-only, your store only

Your website

A live catalog with prices and stock

Online shop

Never sell what you've run out of

Google Sheets

Restock lists and reports, refreshed

Endpoints

Five calls cover your whole catalog.

Privacy

Your catalog goes out. Your money stays in.

The API is read-only and limited to what a customer could see on a shelf. Nothing outside your dashboard can change your store, and keys only ever see the store that made them.

Shared through the API

Read-only, for your own apps

  • Product names, units and categories
  • Selling and wholesale prices
  • Stock left, low-stock level and status
  • Barcodes, SKUs and bulk units
  • Stock batches with expiry dates
  • Product photos (10-minute links)

Never leaves your dashboard

No endpoint exposes these, ever

  • Cost prices and profit (tubo)
  • Sales, receipts and cash totals
  • Customers and utang balances
  • GCash, Maya and E-Load records
  • Bills, payroll and cash vault
  • Your account, plan and payments

Pricing

One payment. Yours to keep.

MyTindahan API add-on

For stores on the Pro plan

  • All five read-only endpoints
  • Up to 5 named, revocable API keys
  • 60 requests/min per key
  • 10,000 requests/day per key
  • Product photos and expiry dates
  • Sync only what changed with updated_since
Pro add-on₱2,000one-time, paid by GCashGet API accessNot on Pro yet? See plans

Reference

API reference, v1

Overview

The MyTindahan API lets your own website, online shop or spreadsheet read your store's products, prices and stock straight from MyTindahan, so you update Inventory once and everything else follows. It's read-only: other apps can look, but can't change your stock or record sales.

Base URL: https://www.mytindahan.store/api/v1

All responses are JSON. Prices are in Philippine pesos.

Authentication

Every request needs an API key. You create keys in Settings → API keys once you own the add-on: give each one a name (like "My website") so you know where it's used. You can have up to 5 keys and revoke any of them at any time.

Send the key in the Authorization header:

Header
Authorization: Bearer mt_live_4f9c2a7e1b8d6f3a0c5e9b2d7a1f4c8e

Keep your key secret, like a password.

  • We show a key only once, when you create it. We keep just a scrambled copy, so we can't show it again.
  • Use it from a server or a script, never in a web page or mobile app where others could find it.
  • If a key leaks, revoke it in Settings and create a new one. The old one stops working right away.

Requests & paging

Every endpoint is a GET request. Lists come back in data, a page at a time. When there's more, next_cursor holds a code: send it back as ?cursor= for the next page. On the last page it's null.

JavaScript (Node.js): every product
const KEY = process.env.MYTINDAHAN_API_KEY;
let cursor = null;
const products = [];

do {
  const url = new URL("https://www.mytindahan.store/api/v1/products");
  url.searchParams.set("limit", "100");
  if (cursor) url.searchParams.set("cursor", cursor);

  const res = await fetch(url, { headers: { Authorization: `Bearer ${KEY}` } });
  if (!res.ok) throw new Error((await res.json()).error.message);

  const page = await res.json();
  products.push(...page.data);
  cursor = page.next_cursor;
} while (cursor);

console.log(`${products.length} products`);

Check your key

GET/api/v1/me

Returns the store and key behind the request. Use it to test that your key works before building anything else.

Request
curl https://www.mytindahan.store/api/v1/me \
  -H "Authorization: Bearer mt_live_4f9c2a7e1b8d6f3a0c5e9b2d7a1f4c8e"
Response · 200
{
  "data": {
    "store_name": "Aling Nena's Sari-Sari Store",
    "plan": "pro",
    "key": {
      "name": "My website",
      "permission": "read",
      "created_at": "2026-10-20T09:15:00+08:00"
    },
    "rate_limit": { "per_minute": 60, "per_day": 10000 }
  }
}

List products

GET/api/v1/products

Your products with their current stock, newest first, a page at a time. Follow next_cursor to get the next page; it's null on the last one.

Query parameterTypeDescription
limitnumberProducts per page, 1 to 100. Default 50.
cursorstringThe next_cursor from the previous page.
category_idstringOnly products in this category (see List categories).
searchstringMatches the product name, SKU or barcode.
statusstringactive (default), inactive, or all.
updated_sinceISO dateOnly products changed after this time. Use it to sync just what changed since your last run.
Request
curl "https://www.mytindahan.store/api/v1/products?limit=2&search=coke" \
  -H "Authorization: Bearer mt_live_4f9c2a7e1b8d6f3a0c5e9b2d7a1f4c8e"
Response · 200
{
  "data": [
    {
      "id": "8d1f6c2e-4b7a-4e0f-9a3c-2f5d7b1e6a90",
      "name": "Coke 1.5L",
      "category": { "id": "c3a9…", "name": "Drinks" },
      "unit": "bottle",
      "price": 75.00,
      "wholesale_price": 70.00,
      "stock": 12,
      "low_stock_at": 5,
      "stock_status": "in_stock",
      "sku": "NEW-8F3K2Q",
      "barcode": "4801981116072",
      "bulk_unit": { "label": "Case", "quantity": 12 },
      "photo_url": "https://…/product-gallery/…webp?token=…",
      "is_active": true,
      "created_at": "2026-09-02T08:00:00+08:00",
      "updated_at": "2026-10-19T17:42:11+08:00"
    },
    {
      "id": "1b7e…",
      "name": "Coke Mismo 290ml",
      "category": { "id": "c3a9…", "name": "Drinks" },
      "unit": "bottle",
      "price": 20.00,
      "wholesale_price": null,
      "stock": 3,
      "low_stock_at": 6,
      "stock_status": "low_stock",
      "sku": "NEW-2J8D1M",
      "barcode": "4801981118007",
      "bulk_unit": null,
      "photo_url": null,
      "is_active": true,
      "created_at": "2026-09-02T08:05:00+08:00",
      "updated_at": "2026-10-20T07:10:54+08:00"
    }
  ],
  "next_cursor": "eyJjIjoiMjAyNi0wOS0wMlQwMDowNTowMFoiLCJpZCI6IjFiN2UifQ"
}

Get one product

GET/api/v1/products/{id}

A single product with its stock batches: how many are left from each delivery and when they expire.

Request
curl https://www.mytindahan.store/api/v1/products/8d1f6c2e-4b7a-4e0f-9a3c-2f5d7b1e6a90 \
  -H "Authorization: Bearer mt_live_4f9c2a7e1b8d6f3a0c5e9b2d7a1f4c8e"
Response · 200
{
  "data": {
    "id": "8d1f6c2e-4b7a-4e0f-9a3c-2f5d7b1e6a90",
    "name": "Coke 1.5L",
    "category": { "id": "c3a9…", "name": "Drinks" },
    "unit": "bottle",
    "price": 75.00,
    "wholesale_price": 70.00,
    "stock": 12,
    "low_stock_at": 5,
    "stock_status": "in_stock",
    "batches": [
      { "received_at": "2026-10-01", "quantity_left": 4, "expires_on": "2027-01-15" },
      { "received_at": "2026-10-18", "quantity_left": 8, "expires_on": "2027-03-02" }
    ],
    "photo_url": "https://…/product-gallery/…webp?token=…",
    "is_active": true,
    "updated_at": "2026-10-19T17:42:11+08:00"
  }
}

List categories

GET/api/v1/categories

Your product categories, A to Z, with how many active products each one has.

Request
curl https://www.mytindahan.store/api/v1/categories \
  -H "Authorization: Bearer mt_live_4f9c2a7e1b8d6f3a0c5e9b2d7a1f4c8e"
Response · 200
{
  "data": [
    { "id": "a71f…", "name": "Canned Goods", "product_count": 18 },
    { "id": "c3a9…", "name": "Drinks", "product_count": 42 },
    { "id": "e0b2…", "name": "Snacks", "product_count": 65 }
  ]
}

Low and out-of-stock products

GET/api/v1/stock/low

Active products at or below their low-stock reminder, most urgent first. Handy for a restock list or an alert in your own app.

Query parameterTypeDescription
include_outbooleanAlso list products with zero stock. Default true.
Request
curl "https://www.mytindahan.store/api/v1/stock/low" \
  -H "Authorization: Bearer mt_live_4f9c2a7e1b8d6f3a0c5e9b2d7a1f4c8e"
Response · 200
{
  "data": [
    { "id": "5c2d…", "name": "Lucky Me Pancit Canton", "stock": 0, "low_stock_at": 10, "stock_status": "out_of_stock" },
    { "id": "1b7e…", "name": "Coke Mismo 290ml", "stock": 3, "low_stock_at": 6, "stock_status": "low_stock" }
  ]
}

Product fields

What each field in a product means. Cost prices, profit, sales, customers and utang are never shared through the API.

FieldTypeDescription
idstringThe product's permanent ID.
namestringProduct name.
categoryobject | null{ id, name }, or null when uncategorized.
unitstringpc, pack, kg, sachet, bottle, can, box, yard, set or m.
pricenumberSelling price in pesos.
wholesale_pricenumber | nullWholesale price, if you set one.
stocknumberQuantity left, in the base unit.
low_stock_atnumberYour low-stock reminder level.
stock_statusstringin_stock, low_stock or out_of_stock.
sku / barcodestring | nullAs saved in Inventory.
bulk_unitobject | null{ label, quantity } if the product also sells in bulk (e.g. a case of 12).
photo_urlstring | nullThe product's photo. The link works for 10 minutes; download or show it right away.
is_activebooleanFalse when the product is deactivated in Inventory.
created_at / updated_atISO datePhilippine time (+08:00).

Rate limits

Each key can make 60 requests a minute and 10,000 a day. Every response tells you where you stand:

Response headers
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57
Retry-After: 42        (only on a 429)

Tip: syncing every 5 to 15 minutes with updated_since keeps your app current and stays far below the limits.

Errors

Errors use normal HTTP status codes and always look like this:

Response · 401
{
  "error": {
    "code": "invalid_key",
    "message": "This API key is not valid or was revoked."
  }
}
StatusCodeMeaning
400invalid_requestA parameter is missing or not valid. The message says which.
401invalid_keyNo key, a mistyped key, or a key that was revoked.
403plan_requiredThe store's Pro plan has ended. The key works again after renewal.
404not_foundNo product with that ID in your store.
429rate_limitedToo many requests. Wait the number of seconds in the Retry-After header.
500server_errorSomething went wrong on our side. Try again in a moment.

Good to know

  • Read-only. The API can't add products, change stock or record sales. Those stay in your dashboard.
  • Your store only. A key only ever sees the store that created it.
  • Pro plan. Keys stop working while your Pro plan is inactive and start again when you renew. Nothing is deleted.
  • Server-side. Browsers can't call the API directly (that would expose your key). Call it from your server, a script, or a tool like Google Apps Script.
  • Versioned. Everything here is v1. If we ever need to change something in a way that could break your app, it will come as /api/v2, and v1 keeps working.

Ready to connect your store?

Message us with what you're building. We'll set up API access for your Pro store and help you make the first call.

Disclaimer: MyTindahan is a back-office store management tool (like a digital sales notebook, not a cash register or POS terminal) designed to help small sari-sari stores manage inventory, sales records, GCash transactions, and pautang. It is not a BIR-accredited POS or an official receipt issuance system. Store owners remain responsible for complying with applicable BIR regulations.