Support · Apps & APIs · 18 min read
An API an operator can run
Specify three integrations, a system of record, and a one-page runbook — enough to decide this week whether you need an API at all.

The decision this week: do you need an API at all
Treat an API like a product: versioned routes, predictable errors, and a page a future developer can read without a phone call. If it only lives in someone’s head, it is not shipped. The decision this week is simpler than a stack debate: can Square, Stripe, or Shopify’s own tools finish the job, or do a mobile app, a partner, and a website need one contract? SYCGeeks has built these contracts from Vancouver since 2015 for stores, mobile apps, and partner tools. The catalog starting point is $18,000 CAD, six to twelve weeks, authenticated routes, webhooks, partner documentation, and up to three named integrations — for example Square, Stripe, or a warehouse file. Hosting and load testing are quoted if needed. You can use the same fence without hiring us.
You may not need an API. A marketing site in six to ten weeks, about eight pages, about $8,500 CAD, Next.js, with a Square booking embed, is enough for many Vancouver firms. A Shopify store with Canadian tax may be enough for a catalog. The cheaper path is to say that in writing before anyone designs a fourth system of record. You do need an API when a mobile app, a partner, or an internal tool must share one truth with the site; when checkout is the product — memberships, quotes, unusual tax — and a theme cannot hold it; when the warehouse must speak every night. Those are the briefs that fit six to twelve weeks, or twelve to twenty when the mobile app (8–12 screens, from $28,000 CAD) is in the same sentence.
One written contract beats three undocumented endpoints. “GET /v1/orders/{id}” with a documented 404 and a documented 409 is a product. “Hit the old PHP box and also this Zapier and also Jane’s spreadsheet” is a liability you can feel on a Saturday. Decide resources, idempotency, and error shapes up front so mobile, web, and a warehouse do not invent three truths. The contract is a page in your project, not a Slack thread. Payments, inventory, and appointments are the usual reasons to build one. Connect to Square, Stripe, or your warehouse instead of inventing a second shop. A second shop is how you sell a jacket twice and how refunds vanish.
You do not need a second agency for “the backend” if the studio that ships the site or the app also ships the contract, the keys, and the runbook. A specialist firm that only writes APIs and never sits with your operator will miss the Tuesday when the POS is offline. Sit with the operator. Book a Square appointment on Pacific time, or write admin@sycgeeks.ca with the systems you already pay for. No account is required to book. Builds at this starting price bill 30 / 30 / 30 / 10: start, signed contract page (architecture), core v1 with a CAD test order and refund, launch with keys and the runbook. Changing the contract after week two is a change request, not a hallway conversation.
Specify three integrations and keep one book for money
Name the three integrations on a napkin this week. Typical set: Square (appointments or POS), a warehouse file or Shopify catalog, and the website or mobile app as a client. If you need a fourth, you either have two products or you are past the starting fence. Version the public surface. /v1/ stays stable when you add /v2/. Breaking a partner because a field was renamed on a Friday is how you earn a second agency — they get paid to soothe the partner. Add fields additively. Deprecate in writing with a date. The mobile screen can adapt to a shorter name. The warehouse job that runs at 2 a.m. Pacific cannot.
Your processor is the book for money. Your warehouse or Square catalog is the book for stock. The API is not a third book. Mirror what you must for speed, and reconcile. If a count disagrees, the processor or the warehouse wins, and you write the incident. A custom table that “is easier to query” becomes the place where Saturday’s sale disappeared. Choose Square when you sell in a room and online — appointments, POS, and the site can share one account; hardware is why people stay. Choose Stripe when subscriptions, usage, or a marketplace live inside a custom Next.js or mobile app. PayPal is a familiar extra, rarely the only rail. Read Canadian fee pages before you sign. Rates move.
Tax is not a display issue. GST/HST by province, exemptions, shipping to some provinces only — those rules live in the processor or in a tax decision you wrote down. The API should not invent a rate. If the processor returns tax, pass it through. If you must compute, the rule is in the contract and in the project notes, signed by whoever owns finance. Silent tax logic is how you earn an audit. Refunds and voids follow the same book. The API exposes them; it does not invent a parallel wallet. Store credit is a product decision with a CAD balance and a rule, quoted. Test a real CAD refund before launch. A French receipt that is English with accents means you are not done. Currency on every money field is CAD unless the contract says otherwise in writing.
Idempotency keys on anything that moves money or stock are not optional. A mobile retry, a double-click, a webhook replay — those will happen. If creating an order twice creates two orders, the API is not finished. Document which routes are idempotent and what you return on a replay. Operators should be able to read that sentence. Pagination, filters, and rate limits belong in the contract. A partner who pulls your entire catalog every five minutes will hurt Square and hurt you. Publish a limit and a 429 they can handle. Staging and production should refuse the same way, with the same error shape, so a partner’s test is meaningful. REST is the default you can hand to a future Next.js developer. GraphQL is a choice when the clients are yours and the query shape is the product. If a warehouse needs a nightly CSV and a signed URL, name it as one of the three integrations.
Errors, webhooks, and auth an operator can see
Errors are part of the product. A JSON body with a stable code, a human message, and a request id beats a blank 500. Map the five failures partners actually hit: not found, not allowed, conflict, validation, and upstream timeout. “Card declined” is not the same as “Square did not answer.” The client should branch. So should your support person reading a log on a Monday. Messages that operators see — in a dashboard, in an app, in an email — must be correct in the language of that surface. A French checkout that surfaces an English API string is a Canadian product bug. Keep a small dictionary for the errors you show humans. Machine-translated API codes are fine as codes. They are not fine as the sentence on a receipt. GST/HST misconfiguration gets its own code. Skip burying tax in “invalid request.”
Validation errors name the field. A partner who sent a US ZIP in a Canadian postal-code slot should hear that, not “bad input.” Accept Canadian postal codes. Skip requiring a state. Those US leftovers in a schema are how Quebec orders fail. The contract shows the example in CAD, with a Canadian address, because examples get copied. When the API depends on Square or Stripe and they time out, fail in a way you can retry. Skip marking an order paid because you hoped. Skip marking it failed if the charge might still settle. That uncertainty is a documented state. Care is how a human looks at those states on a Sunday instead of discovering them in a partner email on Monday. If production is down, call +1 (672) 200-7924 on a weekday. That line is for heat.
Webhooks need retries you can see. A signed payload, a delivery log, and a way to replay from the dashboard are the minimum. “We sent it” is not operations. Partners go down. You go down. Square will retry; so must you. Each delivery attempt gets a timestamp, a status, and the response body you received. If a job moved money and the webhook never landed, an operator should see the red row without opening a terminal. Verify signatures. Ignore the payload if the secret does not match. Rotate secrets without an outage: two valid secrets for a window, then one. Write the rotation in the project notes. A secret that only lives in a developer’s password manager is how a vacation becomes an incident. Store secrets in the environment you already operate, not in the repository, and say who can ask for a rotation.
Inbound webhooks from Square or Stripe are how the API learns the truth. Payment completed, appointment cancelled, refund created — those events update your records. Outbound webhooks are how partners learn. Skip asking a partner to poll every minute for a refund; push the event. If they cannot accept a webhook, a nightly pull with a cursor is an honest fallback, named in the contract — not a silent extra in week ten. Replay is a tool: replaying a paid event must not double-charge (idempotency again). Test replay in staging with a CAD amount and a refund, not only with a stub. After launch, the reserved care hour is the right place to replay a stuck delivery. A new event type is a quote. Mixing those two is how operators stop trusting the log.
Auth, PIPEDA, and a page a future engineer can run
Auth matches the clients. A mobile app you own can use a user token. A partner integration can use a keyed credential with a tight scope: read orders, not refund them. A marketing site your editor uses should not hold the refund key in a public config field. Issue the least key that does the job, name the owner, and write how to revoke it. Shared “admin” keys in a group chat are an incident waiting for a departure. Personal information in the API is still personal information. PIPEDA is about purpose. If a partner does not need emails, skip sending emails. If logs contain tokens or card hints, you have already failed. Collect what the route needs and say why on the privacy page, in both languages if the product is bilingual. Chat and analytics attached to an operator dashboard are in scope too.
WCAG applies to the pages humans use to run the API: the key screen, the delivery log, the replay button. Contrast, labels, keyboard. An operator with a sore hand on a Monday should be able to replay a webhook without a mouse-only table. Skip a dark-on-dark admin because it looked like a terminal. Compliance as a deeper punch list is a separate three-to-five-week program if you need it. Environment separation is boring and mandatory. Keys for staging do not work in production. A partner testing in production is how a real CAD charge appears in a demo. Give two bases, two secrets, and a sentence in the docs. On Next.js, the public site uses the public base. Skip pasting a production secret into a local file that then gets zipped to email — that zip is the expensive path.
Documentation is a launch artifact. Resources, example requests in CAD, error codes, webhook topics, and who to call. Screenshots of the dashboard beat adjectives. If a new developer cannot create a test order and replay a webhook from the page, the page is not shipped. Host that page with the project, in English, and in French if partners are French. A PDF dumped at handover will rot. Status for partners can be a small public page: we are up, we are degraded, webhooks are delayed. You need one URL you can send in an email at 7 a.m. Pacific so five partners do not phone the shop. A social account is not a status page. Handoff includes who owns the domain, the hosting, and the processor accounts. An API on a personal Square login is a story, not a product. If the only person who can see a settlement is a contractor who left, you do not have an API.
Care after launch is how silent failure stays visible: $450 CAD a month or $4,500 a year, hosting watch, small updates, one reserved hour, a note of what changed, about 25 percent off published add-ons. A webhook that stops, a certificate that expires, a Square permission someone toggled — those are care. A new partner program, a second marketplace, a GraphQL rewrite — those are quotes on the same project. Eight reserved hours exist when the work is bigger than an hour and smaller than a new platform. A store or a first app on top of this platform is a second picture: ecommerce eight to fourteen weeks, first mobile app twelve to twenty. Sequence them on the same project record so you keep the history. The dashboard should name the phase so you always know whether you are paying for a door, a shop, or a pocket app.
A six-to-twelve-week picture you can actually staff
Week one is the client list and the system of record. Write who reads, who writes, who refunds. Get sandbox access to Square or Stripe and a sample of the warehouse file, even if it is ugly. Week two is the contract page: routes, errors, webhook topics, idempotency. You sign it in the dashboard the way you sign a sitemap. Weeks three to six are the build of v1 and the delivery log. Put a test CAD order through and refund it. Fail Square on purpose and read the error. If French surfaces exist, show the human strings. Weeks seven to ten are partner or mobile hardening, key issuance, and the runbook. Weeks eleven and twelve are the buffer that content and approvals always eat — a finance signer, a warehouse IP, a legal sentence about personal information. If those arrive in week one, you launch nearer six. If they arrive in week ten, you launch nearer twelve, or you pause.
Students who touch the platform should log hours with a general description another engineer can read: “Signed Square webhook, added replay button, wrote 409 for duplicate order.” That log is how a studio understands capacity. It is also how you see that work happened. If a week is quiet, ask. A calendar you can read — even a shared note with the current week and the blocker — is the whole trick. You can run that without us. If you want the contract walked on a whiteboard before you sign a CAD quote, book time. If money is failing in production tonight, call. Three doors, one studio, no second agency required to keep the door you already bought.
Start with the systems you already pay for, the clients who must connect, and the error you are tired of explaining on the phone. Send that to admin@sycgeeks.ca. Toronto, Montreal, and Halifax clients are welcome on Pacific overlap. A useful first sentence: “We take Square at two chairs in Gastown, a warehouse in Richmond emails a CSV at 2 a.m., and a partner in Montreal needs to read orders in CAD with TPS/TVH on the line — three integrations, English and French errors.” That is enough to price a door or to tell you Shopify plus Square is enough. The quote names the three integrations. A fourth is a new number.
Ecommerce on top of the door is eight to fourteen weeks from $14,500 CAD. A first mobile app is twelve to twenty weeks from $28,000 CAD, about 8–12 screens. A marketing site beside the door is six to ten weeks from $8,500 CAD, about eight pages. Sequence; skip hiding a shop inside an API quote. After launch, the dangerous part is silent failure. Name the human who looks at the delivery log, whether that human is on staff or on care. That name is more valuable than a fashionable query language.
How to tell Square or Shopify is enough — a one-hour test
Spend one hour this week before you buy a door. Open the admin you already pay for. Can an operator refund a CAD order without you? Can they mark a SKU sold out before lunch? Can a partner live with a nightly CSV export instead of a live read? Can the website embed Square booking and still finish the first visit? If the answers are yes, the cheaper path is the tools you have, plus a marketing site of about eight pages in six to ten weeks. Write that down. You can always add an API next quarter on the same project record, from $18,000 CAD, three named integrations, 30 / 30 / 30 / 10.
You can tell you have crossed into API territory when any of these are true: a mobile app must show the same inventory as the site; a partner must create orders, not only read a spreadsheet; refunds have to land in two places in under a minute; GST/HST on a custom quote cannot live in a theme; the warehouse job at 2 a.m. Pacific already fails in ways nobody can see. Circle the true lines. Those lines become the three integrations. A fourth line is a second phase or a second product — date it. Skipping that date is how week ten grows a silent extra.
If you already inherited scripts in a gist, the one-hour test is different: can a new operator create a test CAD order and replay a webhook from a page, today? If no, you do not have an API yet — you have a story. The cheaper path is a runbook and three named integrations, not a fifth script. Bring the gist to discovery; inheriting a real system of record (Square, Stripe, a warehouse file) is still cheaper than a fourth book. Book on Pacific time or write admin@sycgeeks.ca with the gist and the error you are tired of explaining on the phone.
Keep the one-hour notes next to the runbook template. Together they are enough to price a door or to skip it. Toronto, Montreal, and Halifax clients can run the same hour on their overlap with Pacific time. If payments are dropping tonight, skip the hour and call +1 (672) 200-7924. Heat first. Architecture second.
Runbook template an operator can paste into a note
Paste this runbook into the project and fill every blank. System of record for money: ______. System of record for stock: ______. Three integrations: (1) ______ (2) ______ (3) ______. Clients: mobile / site / partner / nightly job (circle). Public base URLs: staging ______ production ______. Who owns staging keys: ______. Who owns production keys: ______. How to revoke a partner key: ______. Rotation window (two secrets): ______. Who can ask for a rotation: ______. Webhook topics inbound: ______. Webhook topics outbound: ______. Where the delivery log lives: ______. How to replay without double-charge: ______. Idempotent routes: ______.
Continue: Five error codes humans see (EN and FR): not found, not allowed, conflict, validation, upstream timeout. Tax rule owner: ______. Provinces charged: ______. Currency: CAD unless ______. Example order payload uses a Canadian postal code and a CAD amount. Privacy purpose of each personal field: ______. PIPEDA contact: ______. How to pause a partner: ______. Status page URL: ______. When to call the studio: checkout down, refunds looping, a flood of 500s — weekdays, Pacific time, +1 (672) 200-7924. When to write admin@sycgeeks.ca: a new client, a new integration, a contract change. Dashboard note format: “Waiting on warehouse IP allowlist,” not “Looks good.” Finance signer: ______. Legal name on Square / Stripe matches GST registration: yes/no.
Smoke test before you call it launched: create a test CAD order, refund it, fail the processor on purpose, read the error on the French surface if you have one, replay the webhook, confirm the log shows one paid event, rotate a staging secret, confirm production keys still work, revoke a dummy partner key. If any line has no owner, that line is not in v1. Dropping a partner from launch is cheaper than an undocumented fourth integration. Empty cells you can date. Invisible work you cannot schedule. This runbook is the product an operator can run. The routes are just the doors it describes.
Fill the blanks on Monday, walk them with finance on Wednesday, send the signed page on Friday. If you cannot name three integrations, you may not need an API this quarter — use the processor’s admin and put the door on next quarter’s budget. If you can name them and you want a CAD quote against this runbook, send it. If a live job is dropping payments today, skip the blanks and call. You can keep this page even if you never hire SYCGeeks; the next engineer will still need to know who refunds.



