The Northbeam API is a set of REST endpoints that let your store send order data into Northbeam and pull channel-level ad attribution back out as JSON. It splits into three jobs: an Orders API to push purchases, a Spend API to upload ad spend Northbeam can't auto-pull, and a Data Export API to retrieve attributed revenue and transactions by platform. It answers "which channel got credit for the sale" — not "did that sale make money after supplier cost, shipping, and fees."

If you run an operating store on Northbeam, you hit the API the moment you want its numbers somewhere other than its dashboard — in a sheet, a warehouse, or a report your team actually reads. This page covers what each endpoint does, how authentication works, and a worked example of why attributed revenue is only half the picture for a thin-margin store.

What the Northbeam API actually is

Northbeam is an ad-attribution platform for ecommerce and DTC brands — it assigns credit for each sale across Meta, Google, TikTok, and other channels so you can see which ad dollar drove which order. The API is how you move that data in and out without clicking through the dashboard.

It is a plain REST API that speaks JSON. You send and receive data over HTTPS, so any language that can make an HTTP request can talk to it. The official docs group the surface into three separate APIs, and it helps to treat them as three different jobs rather than one tool.

The important mental model: two of the three APIs feed Northbeam, and one reads from it. Mixing them up is the most common early mistake.

The three Northbeam APIs

Orders API

The Orders API pushes purchase data into Northbeam. You POST order records to https://api.northbeam.io/v2/orders, and each payload carries the order and customer identifiers, totals, tax, shipping, discounts, line items, refunds, and shipping address, per Northbeam's authentication docs.

You batch these — Northbeam's getting-started guide notes you can send up to one thousand orders per request, and recommends pushing at least twice as often as your plan's reporting cadence so attribution stays fresh. There's a sandbox host (api-uat.northbeam.io) for testing payloads before you touch production.

Most Shopify stores never need this one — Northbeam's native Shopify connector already pulls orders. You reach for the Orders API when you sell somewhere Northbeam doesn't natively read, or you want to enrich orders with data the storefront doesn't send.

Spend API

The Spend API uploads ad spend from platforms Northbeam can't connect to automatically. If you're buying on a smaller network, an affiliate channel, or anything outside the native integrations, you push hourly spend records so Northbeam can divide attributed revenue by the real cost of that channel.

Without accurate spend in the system, every ROAS and efficiency number for that channel is wrong — Northbeam can see the revenue but not what you paid to get it. This API closes that gap.

Data Export API

This is the one most operators actually want. The Data Export API reads attribution results back out of Northbeam as JSON.

It's a small workflow of endpoints documented on Northbeam's data export page: /exports/metrics lists the metrics you can pull (including platform-specific ones for Meta, Google, and TikTok), /exports/attribution-models lists the models, /exports/breakdowns lists the grouping labels, and /exports/data-export creates the actual export. Only metrics and attribution_options are required.

You choose the attribution model — the same docs list Clicks only, Clicks + Modeled Views, Last touch, First touch, and Linear — along with the window, accounting mode, granularity (like daily), and a time period. The call returns an export ID; you poll it until the export finishes, then download the result. It's asynchronous, so build for the poll-then-fetch pattern rather than expecting data in the first response.

Authentication: the two keys you need

Every request carries three headers, per Northbeam's authentication docs: Authorization with your secret API key, Data-Client-ID with your tenant identifier, and Content-Type: application/json. You generate both credentials in the dashboard under API key settings.

Treat the secret key like a password — it belongs in an environment variable or a secrets manager, never in client-side code or a committed file. The Data-Client-ID tells Northbeam which account the data belongs to, so it's required on reads and writes alike.

A worked example: attribution is not profit

Here's where the awareness-stage reader needs to slow down, because the API hands you exactly one kind of number — and it's the number that gets stores in trouble.

Say you run a print-on-demand store selling a hoodie at a $34 average order value. You spend $4,200 a month on Meta. You call the Data Export API, pick the Last-touch model, break down by platform, and Northbeam reports that Meta got credit for 180 orders last month.

That's 180 × $34 = $6,120 in attributed revenue. Divide by that spend and you get a 1.46 ROAS. On the dashboard that looks survivable. The API will happily serve you that exact figure every morning.

Now layer in what Northbeam's attribution export does not contain. Your Printify base cost on that hoodie is $18.50, you eat about $4.00 in shipping, and the payment fee runs roughly $1.30. So each order leaves you $34 − $18.50 − $4.00 − $1.30 = $10.20 before any ad spend.

Across 180 orders that's 180 × $10.20 = $1,836 in contribution. Subtract the $4,200 you paid Meta and the channel ran at 1,836 − 4,200 = −$2,364 for the month. A 1.46 ROAS was quietly a losing channel. That's the difference between return on ad spend and profit on ad spend, and no attribution API measures the second one for you.

The Northbeam API is excellent at the question it answers — which touchpoint earned the credit — and it exposes real choices in attribution model and window that matter. But it stops at attributed revenue. To get to per-order profit you still have to join every export against your supplier costs, shipping, fees, and discounts yourself.

Where attribution stops and profit begins

That join is the whole reason tools like this generate so much glue code. You pull attribution from one API, costs from your POD supplier, fees from your payment processor, and discounts from the store — then reconcile them into one profit number per order. It's the kind of work people quietly rebuild in a spreadsheet every quarter.

It's also why the broader category of profit-analytics tools exists: to sit on top of attribution and turn it into net profit. Northbeam's own peers show the split. Triple Whale, for example, centers on its server-side Triple Pixel for attribution recovery and, per its pricing page, starts around two hundred nineteen dollars a month on the Foundation plan — attribution-first tooling priced for larger brands. If you're weighing that path, the Triple Whale alternatives breakdown is a useful next read, and the mechanics of incrementality testing and UTM parameters explain what attribution APIs are really measuring under the hood.

This is the problem PodVector AI was built around. Victor is an AI employee for print-on-demand sellers. He connects your Shopify store, Meta Ads, Google Ads, Klaviyo, and your Printify, Printful, and Gelato catalogs, so he sees every order, every ad dollar, and every supplier cost in one place — and computes the true per-order profit that an attribution export leaves out. Because product costs come straight from your POD suppliers, Victor knows the real margin on each SKU, not a static guess.

And Victor doesn't stop at the number. When a channel runs the way the Meta example above did, he pauses the losing ad set, shifts budget toward the ad sets that actually clear margin, reprices the thin-margin SKUs, and builds the Klaviyo flow to win the repeat order — then delivers the report to your Google Drive. For context on how these platforms keep shifting, the running notes on Triple Whale updates are worth a scan. If you'd rather skip the glue code entirely, you can put Victor on your store.

FAQs

What can the Northbeam API do?

It does three things. You push order data in through the Orders API, upload ad spend from non-integrated platforms through the Spend API, and pull attribution results — attributed revenue and transactions by channel, model, and window — out through the Data Export API. All three are REST endpoints returning JSON, per Northbeam's docs.

Is there a Northbeam API for exporting data to a spreadsheet or warehouse?

Yes — that's the Data Export API. You request metrics and attribution options, get back an export ID, poll until it's ready, then download the result (data export docs). From there you can load it into a sheet, a BI tool, or a warehouse. Several third-party connectors also wrap this API to automate the sync.

How do I authenticate with the Northbeam API?

Send three headers on every request: Authorization with your secret key, Data-Client-ID with your tenant ID, and Content-Type: application/json. Both credentials come from the API key settings in your dashboard, per the authentication docs. Keep the secret key server-side.

Do I need the Orders API if I'm on Shopify?

Usually not. Northbeam's native Shopify integration already ingests orders, so the Orders API is mainly for stores selling where Northbeam doesn't natively connect, or for enriching orders with data the storefront doesn't pass. Check your connector coverage before writing push code you don't need.

Does the Northbeam API tell me my profit per order?

No. It returns attributed revenue and transactions — the credit side of the ledger. It doesn't net out product cost, shipping, payment fees, or discounts, so it can't tell you whether an attributed sale actually made money. As the worked example above shows, a channel can post a positive ROAS and still lose money once real costs are subtracted. You have to join the export against your cost data to get true profit, which is exactly what Victor at PodVector AI does for print-on-demand stores.

How often should I push order data to Northbeam?

Northbeam's getting-started guide recommends pushing at least twice as frequently as your plan's reporting cadence, in batches of up to one thousand orders per request, so attribution stays current. Test payloads against the sandbox host first before sending to production.