Headless Shopify checkout
Take your headless cart to a paid order on your own domain.
Shopify’s Storefront API ends the cart at checkoutUrl, which sends the buyer through Shopify’s web checkout. Flint Pay is the checkout API for the storefront you built: Flint prices the cart with US sales tax, shipping, and discounts, Stripe Elements collects the card on your page, and your backend pays the order in one call. The buyer never leaves your domain, and there is no Shopify plan to upgrade.
3.79% + 35¢ on cards · no monthly fee · free sandbox · no credit card
import { Client } from "@flintpay/node";
const flint = new Client({
baseUrl: "https://api.withflintpay.com",
apiKey: process.env.FLINT_API_KEY!,
});
// 1. The cart is an open order: variants in, no prices or totals.
const order = await flint.orders.create(
{
line_items: cartLines, // [{ variant_id, quantity }]
delivery_destination: { address: shippingAddress },
inventory_routing_source: {
type: "fixed_location",
location_id: warehouseId,
},
tax: {
enabled: true,
calculation: { mode: "automatic", price_mode: "additive" },
},
},
{ idempotencyKey: `order-${cartId}` },
);
// 2. What Stripe Elements needs to mount. No secrets in it.
const { payment_collection } = await flint.orders.get(order.order_id);
// 3. Charge the credential the browser posted back, for the balance
// the buyer saw. Flint refuses before charging if the order moved.
const approved = order.settlement_amounts.outstanding_money;
const result = await flint.orders.pay(
{
order_id: order.order_id,
body: {
action: "pay",
client_action_type: "stripe",
payment_source: { credential_type: "stripe_confirmation_token", stripe: { confirmation_token: confirmationTokenId } },
expected_outstanding_money: approved,
buyer_contact: { email },
},
},
{ idempotencyKey: `pay-${cartId}-1` },
);
console.log(result.order.payment_status); // "paid"The whole backend half of checkout, from a Hydrogen loader, a Next.js route handler, or any Node server. You never send a total: Flint prices the variants, adds the tax, and charges what the order still owes.
3 calls
from cart to paid order, all from your backend
create · read · pay
No monthly fee
and no plan tier to unlock your own checkout
every Flint account
3.79% + 35¢
per card payment, Stripe's processing included
the published rate card
01Where Shopify stops
The Cart API hands the payment to Shopify's checkout.
Shopify shut off its Checkout APIs on April 1, 2025, and mapped each checkout mutation to a Cart API replacement. Completing the purchase maps to one field: Checkout.webUrl became Cart.checkoutUrl, which sends the buyer through Shopify's web checkout. On Flint, the step after the cart is a call your backend makes.
| Checkout API, shut off 2025-04-01 | Cart API | On Flint |
|---|---|---|
| checkoutCreate | cartCreate | POST /v1/orders |
| checkoutLineItemsReplace | cartLinesUpdate | PATCH /v1/orders/{order_id}/line-items/{order_line_item_id} |
| checkoutDiscountCodeApplyV2 | cartDiscountCodesUpdate | POST /v1/orders/{order_id}/discounts |
| checkoutShippingAddressUpdateV2 | cartDeliveryAddressesAdd | delivery_destination.address |
| checkoutCustomerAssociateV2 | cartBuyerIdentityUpdate | customer_id |
| Checkout.webUrl | Cart.checkoutUrlShopify’s web checkout | POST /v1/orders/{order_id}/pay |
- checkoutCreateCart API: cartCreatePOST /v1/orders
- checkoutLineItemsReplaceCart API: cartLinesUpdatePATCH /v1/orders/{order_id}/line-items/{order_line_item_id}
- checkoutDiscountCodeApplyV2Cart API: cartDiscountCodesUpdatePOST /v1/orders/{order_id}/discounts
- checkoutShippingAddressUpdateV2Cart API: cartDeliveryAddressesAdddelivery_destination.address
- checkoutCustomerAssociateV2Cart API: cartBuyerIdentityUpdatecustomer_id
- Checkout.webUrlCart API: Cart.checkoutUrlShopify’s web checkoutPOST /v1/orders/{order_id}/pay
{
"data": {
"cartCreate": {
"cart": {
"id": "gid://shopify/Cart/c1-a1b2",
"totalQuantity": 3,
"cost": {
"subtotalAmount": {
"amount": "164.00",
"currencyCode": "USD"
}
},
"checkoutUrl": "https://shop.myshopify.com/cart/c/c1-a1b2"
},
"userErrors": []
}
}
}The cart's last field is an address. Shopify's guide says it redirects customers through Shopify's web checkout, where the shipping choice, the payment, and the order happen.
{
"data": {
"order_id": "ord_1kmn0aExample",
"payment_collection": {
"stripe": {
"account_id": "acct_1kmn0aExample",
"publishable_key": "pk_test_1kmn0aExample",
"elements": {
"next_step": "create_confirmation_token",
"submit_to": "pay_order",
"mode": "payment",
"amount_money": { "amount": 17712, "currency": "USD" },
"payment_options": ["card", "apple_pay", "google_pay"],
"payment_method_creation": "manual"
}
}
}
}
}The order answers with what your page needs to collect the card: the Stripe account, a publishable key, the amount, and the wallets to offer. No secrets, and nowhere to send the buyer.
the Shopify columns restate Shopify’s migration guide · sources, checked 2026-10-23
02What to look for
What a checkout API for a custom storefront has to handle.
Rendering checkout yourself pays off only when the API behind it does the hard parts. Flint answers each of these with a field or an endpoint, on the same order.
- 01
Does it compute the total, or do you?
Flint prices each variant from your catalog and adds sales tax, shipping, and discounts on the order. Your page renders the amounts it returns, so the total the buyer sees is the total that is charged.
pricing_amounts.total_money
- 02
Do card numbers stay off your servers?
Stripe Elements renders the card fields inside your markup, and the browser hands your backend a single-use credential. Card details never reach your servers or Flint's.
payment_collection.stripe.elements
- 03
Does 3D Secure run on your page?
When the issuer asks for authentication, the pay call returns the Stripe.js step to run. The challenge opens over your checkout, and your backend resumes the same payment attempt.
pending_actions[].client_action
- 04
Can a stale total get charged?
Your backend sends the balance the buyer approved. If a line, a code, or the shipping changed since, Flint refuses before charging and returns ORDER_CHANGED_REFRESH_REQUIRED, so your page can show the new total.
expected_outstanding_money
- 05
Is a retry safe?
Send the same key with a retried create or pay, and Flint runs the operation once. A timeout never turns into a second order or a second charge.
Idempotency-Key
- 06
Is stock held while the buyer pays?
Flint holds tracked stock when the payment starts, commits it when the payment succeeds, and releases it when the payment fails. If nothing can fill the order, the payment fails before any money moves.
inventory_routing_source
- 07
Is there a signal to fulfill from?
A signed webhook arrives when the order is paid, whether or not the buyer's browser comes back, with an id that stays the same on every retry.
order.paid
- 08
Can you refund one item?
Name the line and the quantity. Flint refunds its price and its share of the tax, and writes both back onto the order.
refund_type: "targets"
Build your own checkout·Securing a headless checkout·Embedded payments with Stripe Elements
03How it works
From the cart to a paid order, on your domain.
Your storefront keeps its routes, components, and design. At checkout your backend makes three Flint calls, and one webhook says the order is paid.
The cart is an open order
POST /v1/ordersSend variants and quantities, the shipping address, and the location the stock ships from. Flint prices each line from your catalog, calculates the sales tax for that address, and holds the balance every payment settles against. Add a line or a discount code later and Flint reprices the same order.
curlcurl -X POST https://api.withflintpay.com/v1/orders \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: order-cart-7f3a" \ -d '{ "line_items": [ { "type": "variant", "variant_id": "var_1kmn0aRunner", "quantity": 1 }, { "type": "variant", "variant_id": "var_1kmn0aSock", "quantity": 2 } ], "delivery_destination": { "address": { "line1": "540 Broad Street", "city": "Augusta", "state": "GA", "postal_code": "30901", "country": "US" } }, "inventory_routing_source": { "type": "fixed_location", "location_id": "loc_1kmn0aExample" }, "tax": { "enabled": true, "calculation": { "mode": "automatic", "price_mode": "additive" } } }'what Flint computed Trail Runner 2, quantity 1line_items[0] $128.00 Merino sock, quantity 2line_items[1] $36.00 Subtotalpricing_amounts.subtotal_money $164.00 Sales tax, Augusta GApricing_amounts.tax_money $13.12 Totalpricing_amounts.total_money $177.12 Still owedsettlement_amounts.outstanding_money $177.12 Your storefront displays these amounts as returned. There is no cart total of your own to keep in step with the charge. Mount Stripe Elements on your page
GET /v1/orders/{order_id}Read the order and pass its payment collection block to the browser as returned. Apple Pay and Google Pay appear in the same element once your hostname is registered. Everything around the card fields is your markup.
your checkout pageconst stripe = Stripe(collection.stripe.publishable_key, { stripeAccount: collection.stripe.account_id, }); const guidance = collection.stripe.elements; // Stripe Elements takes processor method types. Apple Pay and Google Pay ride on card. const STRIPE_METHOD_TYPES = {card: "card", apple_pay: "card", google_pay: "card", affirm: "affirm", ach_debit: "us_bank_account"}; const paymentMethodTypes = [...new Set(guidance.payment_options.flatMap((option) => STRIPE_METHOD_TYPES[option] ?? []))]; const elements = stripe.elements({ mode: guidance.mode, amount: guidance.amount_money.amount, currency: guidance.amount_money.currency.toLowerCase(), paymentMethodCreation: guidance.payment_method_creation, paymentMethodTypes, }); elements .create("payment", { // Show only the wallets Flint offers; Stripe's default can show others. wallets: { applePay: guidance.payment_options.includes("apple_pay") ? "auto" : "never", googlePay: guidance.payment_options.includes("google_pay") ? "auto" : "never", }, }) .mount("#payment-element"); // on submit: a single-use credential, posted to your backend await elements.submit(); const { error, confirmationToken } = await stripe.createConfirmationToken({ elements }); if (error) throw error; await fetch("/checkout/pay", { method: "POST", body: JSON.stringify({ confirmation_token: confirmationToken.id }), });Card details go from the buyer's browser to Stripe. They never reach your server or Flint's.
shop.example.com/checkoutThe id in the mount call is the dashed box. The rest of the checkout is yours to design. Pay the order from your backend
POST /v1/orders/{order_id}/paySend the credential the browser created and the balance the buyer approved. Flint confirms the payment and settles the order in the same request. If the order changed after the buyer saw the total, Flint refuses before charging.
curlcurl -X POST \ https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: pay-cart-7f3a-1" \ -d '{ "action": "pay", "client_action_type": "stripe", "payment_source": { "credential_type": "stripe_confirmation_token", "stripe": { "confirmation_token": "ctoken_1kmn0aExample" } }, "expected_outstanding_money": { "amount": 17712, "currency": "USD" }, "buyer_contact": { "email": "ada@example.com" } }'200 OK{ "data": { "order": { "order_id": "ord_1kmn0aExample", "status": "closed", "payment_status": "paid", "settlement_amounts": { "paid_money": { "amount": 17712, "currency": "USD" }, "outstanding_money": { "amount": 0, "currency": "USD" } } }, "order_payment_attempt": { "order_payment_attempt_id": "opat_1kmn0aExample", "status": "succeeded", "is_resumable": false } } }A decline arrives in this same response as one of 24 codes, and the order stays open for another card.
Run 3D Secure on your own page
POST /v1/orders/{order_id}/pay · action "resume"When the issuer asks for authentication, the pay call returns a typed action. Your page hands it to Stripe.js, the buyer authenticates there, and your backend resumes the same attempt with no new credential.
200 OK, authentication required{ "data": { "order_payment_attempt": { "order_payment_attempt_id": "opat_1kmn0aExample", "status": "requires_action", "is_resumable": true, "pending_actions": [ { "action_type": "payment_authentication", "client_action": { "stripe": { "account_id": "acct_1kmn0aExample", "publishable_key": "pk_test_1kmn0aExample", "payment_intent": { "stripe_js_call": "handle_next_action", "client_secret": "pi_1kmn0aExample_secret_1kmn0aExample" } } } } ] } } }browser, then backend// This Stripe.js path requires client_action_type: "stripe" on pay. // Omission returns a Flint URL instead. Use this secret only with handleNextAction; // it can also confirm the underlying payment with another card. // in the browser, on your checkout page const action = attempt.pending_actions[0].client_action.stripe; await stripe.handleNextAction({ clientSecret: action.payment_intent.client_secret, }); // then your backend resumes the same attempt. No new credential. await flint.orders.pay( { order_id: orderId, body: { action: "resume", order_payment_attempt_id: attemptId }, }, { idempotencyKey: `resume-${attemptId}` }, );One attempt, start to finishThe whole challenge happens on shop.example.com. The order is paid once, by the attempt that started it. Fulfill from the webhook
order.paidFulfill when order.paid arrives, not when the browser returns: a buyer can close the tab first. Every retry and resend of the event carries the same webhook_event_id, so it is your deduplication key. The paid order is already in the dashboard your team works from.
POST /webhooks/flint{ "webhook_event_id": "whev_1kmn0aExample", "event_type": "order.paid", "payload_version": 2, "mode": "live", "merchant_id": "mer_1kmn0aExample", "created_at": "2026-10-23T14:00:21Z", "data": { "object": { "order_id": "ord_1kmn0aExample", "status": "closed", "payment_status": "paid", "pricing_amounts": { "total_money": { "amount": 17712, "currency": "USD" } }, "settlement_amounts": { "paid_money": { "amount": 17712, "currency": "USD" }, "outstanding_money": { "amount": 0, "currency": "USD" } } } } }app.withflintpay.comThe same order in the Flint dashboard, which comes with the keys. All 20 of its sections are there the first time you sign in.
Events a checkout subscribes to
- order.paid
- refund.succeeded
- payment_intent.requires_action
- order.inventory_exception_created
- return.created
Each event is a fact about one object, with a snapshot of that object in the body. The SDK verifies the signature against the raw request body. Webhooks guide
Receive them on localhost
The CLI forwards Flint-signed events without a tunnel and prints the endpoint ID to verify them against, so the same JWT verifier runs locally and in production.
reviewed 2026-10-23 against the published API · corrections: Flint Help
04Checkout details
Tax, shipping, discounts, and wallets come with the order.
Rendering the checkout yourself doesn't mean rebuilding what runs behind it. Each of these is a field on the order or one call beside it.
US sales tax from the address
Flint calculates US sales tax from the order's delivery address, on the items and on the shipping charge, through a tax connection you set up once. Already run a tax engine? Send its rates and Flint records them per jurisdiction.
- delivery_destination.address
- tax.calculation.mode
- pricing_amounts.tax_money
Shipping, pickup, and local delivery
Free shipping over a threshold, rate tables by region, in-store pickup, local delivery windows, or live rates from your own server, such as a carrier API. A headless checkout session quotes the buyer's address and adds the chosen option and its tax.
- POST /v1/delivery-methods
- POST /v1/delivery-quotes
- POST /v1/delivery-rate-callbacks
Promotions and codes
Percent off, amount off, or buy X get Y, redeemed with a code or applied automatically, with rules for what stacks. A preview tells the buyer how much more to add to reach an offer.
- POST /v1/promotions
- POST /v1/orders/{order_id}/discounts
- POST /v1/discount-previews
Apple Pay, Google Pay, Affirm, and ACH
Register your checkout hostname once and the wallets render in the same Payment Element as the card fields. Affirm and ACH debit run through the same pay call once you turn them on.
- POST /v1/payment-method-domains
- elements.payment_options
- payments.enabled_payment_options
Signed-in buyers and saved cards
Put the customer on the order and their saved cards resolve at checkout. A returning buyer pays with a saved payment method and never retypes a card number.
- customer_id
- payment_source.payment_method_id
- GET /v1/me/payment-methods
Risk rules you write
Allow, block, review, or require 3D Secure by amount, email, card country, IP address, and the processor's risk level, with lists your rules share. Every account starts with default block lists and a review rule for the riskiest payments.
- POST /v1/risk-rules
- POST /v1/risk-previews
Sales tax guide·Delivery options·Promotions·Apple Pay and Google Pay setup·Risk controls·Gift cards at checkout
05Your payment logic
Refund one item. Renew a subscription. Hold a card.
Your backend completes the purchase, so it also decides how the money moves. Each of these settles against the same order, so the balance, the refunds, and the webhooks stay correct.
Subscriptions that renew as orders
Plans with trials, subscribe-and-save offers, pause and resume, and failed-payment retries, billed on a schedule Flint runs. Every renewal is an order, so it ships, refunds, and reports like any other. Subscriptions API
- POST /v1/subscription-plans
- POST /v1/subscriptions
- POST /v1/subscriptions/{subscription_id}/pause
Returns that restock
A return refunds the right lines and puts sellable units back in stock at the location you name. Damaged units land on hand but stay off sale.
- POST /v1/returns
- refund.succeeded
- return.created
Holds and deposits
Authorize now and capture later, or charge part of an order today and the rest later. Automatic tax takes one full payment captured at once, so these run on orders with your own tax rates or no tax.
- capture_method
- POST /v1/payment-intents
- POST /v1/payment-intents/{payment_intent_id}/capture
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-ord-1042-001" \
-d '{
"order_id": "ord_1kmn0aExample",
"refund_type": "targets",
"line_items": [
{ "order_line_item_id": "li_1kmn0aExample", "quantity": 1 }
]
}'You send a line item id and a quantity, and no amounts.
| what Flint refunded | ||
|---|---|---|
| Merino sock, quantity 1line_item_allocations[].automatic_refund.subtotal_money | $18.00 | |
| Its share of the taxline_item_allocations[].automatic_refund.tax_money | $1.44 | |
| Refunded to the cardline_item_allocations[].refunded_money | $19.44 | |
Refund by amount, by line item, or by payment
The refund event tells your backend, and the dashboard shows the same split your support team quotes to the buyer.
- POST /v1/refunds
- line_items[].order_line_item_id
- line_item_allocations
06The catalog
Move your products from Shopify's CSV, and keep your URLs.
Export products from Shopify admin and create each one with a single call. The URL handle becomes the product's external reference, so /products/trail-runner-2 resolves the same product on Flint. Variants keep their SKU, barcode, and price, and Flint downloads each image and serves its own copy.
curl -X POST https://api.withflintpay.com/v1/products \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: import-trail-runner-2" \
-d '{
"name": "Trail Runner 2",
"product_type": "physical",
"external_reference_id": "trail-runner-2",
"images": [
{
"source_url": "https://cdn.shopify.com/s/files/tr2-slate.jpg"
}
],
"options": [
{
"name": "Size",
"values": [{ "value": "10" }, { "value": "10.5" }]
}
],
"variants": [
{
"sku": "TR2-SLATE-10",
"barcode": "812345678905",
"unit_price_money": { "amount": 12800, "currency": "USD" },
"line_item_tax_category": "physical_goods",
"inventory_item": {
"name": "Trail Runner 2, 10",
"sku": "TR2-SLATE-10"
},
"selected_options": [{ "option_name": "Size", "value": "10" }]
},
{
"sku": "TR2-SLATE-105",
"barcode": "812345678912",
"unit_price_money": { "amount": 12800, "currency": "USD" },
"line_item_tax_category": "physical_goods",
"inventory_item": {
"name": "Trail Runner 2, 10.5",
"sku": "TR2-SLATE-105"
},
"selected_options": [
{ "option_name": "Size", "value": "10.5" }
]
}
]
}'One request per product. Flint fetches the image during the request, so the Shopify CDN URL can go away afterward.
curl -G https://api.withflintpay.com/v1/products \
--data-urlencode "external_reference_id=trail-runner-2" \
-H "Authorization: Bearer YOUR_API_KEY"An exact match on the external reference, so the product route needs no mapping table.
Catalog
Products with options and variants, categories with their own handles for your collection pages, bundles, and up to eight images per product.
- POST /v1/products
- POST /v1/categories
- GET /v1/products?category_handle={handle}
Inventory
Stock per location, recorded as adjustments, and held at payment so two buyers can't take the last unit.
- POST /v1/locations
- POST /v1/inventory-adjustments
- GET /v1/inventory-levels
Your product loader changes one call.
Components, routes, and styles stay as they are. The data load moves from the Storefront API to Flint, on the server, where the API key stays.
// app/routes/product.tsx, Hydrogen's React Router template
export async function loader({
context,
params,
request,
}: Route.LoaderArgs) {
const storefrontClient = context.get(storefrontClientContext);
const selectedOptions = getSelectedProductOptions({
searchParams: new URL(request.url).searchParams,
});
const { data } = await storefrontClient.graphql(PRODUCT_QUERY, {
variables: { handle: params.handle, selectedOptions },
});
if (!data?.product) throw new Response("Not Found", { status: 404 });
return { product: data.product };
}Hydrogen's React Router template, trimmed to the data load.
// app/routes/product.tsx, the same route on Flint
export async function loader({ params }: Route.LoaderArgs) {
const url = new URL("https://api.withflintpay.com/v1/products");
url.searchParams.set("external_reference_id", params.handle);
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.FLINT_API_KEY}` },
});
const { data } = await res.json();
if (!data[0]) throw new Response("Not Found", { status: 404 });
return { product: data[0] };
}The same route, the same handle, read from Flint on your server.
Fulfillment and returns
Fulfillments, shipments, and packages on the order that was paid, and returns that refund the right lines and restock them.
- POST /v1/fulfillments
- GET /v1/shipments
- POST /v1/returns
Customer accounts
Order history, subscriptions, returns, and saved cards for a signed-in buyer, in your own account pages over a customer session, or on Flint’s hosted account. Customer accounts
- POST /v1/customer-sessions
- GET /v1/me/orders
- GET /v1/me/subscriptions
Catalog setup·Product images·Inventory·Build a headless storefront on Flint
07Cost and control
What owning checkout costs on headless Shopify, and on Flint.
On Shopify, each way to change or replace the checkout comes with a plan tier, a partner program, or a clause in the API terms. On Flint, owning the checkout is where every account starts, with no monthly fee and cards at 3.79% + 35¢.
| What you need | Flint | Headless Shopify, US plans billed monthly |
|---|---|---|
| Monthly plan | Flint: No monthly fee, and every account can render its own checkout. | Shopify: Basic $39, Grow $105, and Advanced $399 a month, each with one headless storefront. Plus starts at $2,300 a month, with 25. |
| Changing the payment step | Flint: Your page and your markup. Stripe Elements renders the card fields inside it.payment_collection | Shopify: Checkout UI extensions for the information, shipping, and payment steps are available only on Plus. Checkout customization is listed as Limited on Basic, Grow, and Advanced. |
| Charging the card from your own code | Flint: One call from your backend, with a sandbox key the minute you sign up.POST /v1/orders/{order_id}/pay | Shopify: The Payments Apps API is for approved Payments Partners with a signed revenue share agreement, and a payments extension may use no other Shopify API. |
| Card processing | Flint: 3.79% + 35¢ per card payment, with Stripe's processing inside the rate and no third-party fee. | Shopify: Shopify Payments starts at 2.9% + 30¢ on Basic. Another processor adds Shopify’s third-party fee, 2% on Basic down to 0.2% on Plus, which isn’t returned when you refund an order. |
| A checkout beside Shopify's | Flint: Flint is the whole backend, so the catalog, stock, orders, and checkout move together and nothing pairs with Shopify's API.POST /v1/products | Shopify: Clause 2.3.18 of Shopify's API terms bars an alternative to Shopify Checkout for Shopify merchants without Shopify's express written authorization. |
the Shopify column restates Shopify’s US pricing, developer docs, help center, and API terms · sources, checked 2026-10-23
Flint vs Shopify, with a worked month of fees·Shopify Hydrogen alternatives, ranked·Shopify's third-party payment fee·Flint pricing
08Who it's built for
Flint is built for US stores that run their own storefront.
If that is your store, the catalog, checkout, tax, and shipping above run the day you create your account.
US businesses
Flint onboards businesses in the US and pays out in USD to your own bank account. Buyers can pay with a card from anywhere.
Your storefront
Keep your React Router or Next.js app and host it wherever you run server code. Your backend calls Flint; the browser talks to your backend and Stripe.js.
Physical goods
Stock per location, shipping, pickup, and local delivery, with returns that put units back on the shelf.
Developers and agents
A public OpenAPI spec, Node and PHP SDKs, a CLI, and MCP servers your coding agent can use.
What comes with the keys
Stripe processes every card. You sign up once and hold one set of keys.
Card details go from your checkout page to Stripe and never reach your servers or Flint’s. Flint sets up and runs the processing account, and you pay one fee per payment, with no separate processor bill.
API counts come from the published OpenAPI spec · every code sample is checked against it at build time
09Start
From a sandbox key to a paid test order in ten minutes.
Node
CLI
Test keys are prefixed flint_test_ and bound to a sandbox with its own data, so nothing you do there touches live money. Live keys are prefixed flint_live_, on the same host and the same paths. Pay with 4242 4242 4242 4242, any future expiry, any CVC.
Then read these, in order
- 01
- 02
- 03
- 04Shopify Hydrogen alternativesHow Flint compares as the backend for a headless storefront.
- 05Flint vs ShopifyA month of orders on each, fee by fee.
- 06
- 07
FAQ
Questions headless Shopify teams ask first.
Can you build a custom checkout on headless Shopify?
You can build the cart, but the payment runs in Shopify's checkout. The Storefront Cart API's last step is checkoutUrl, which sends the buyer through Shopify's web checkout. Checkout UI extensions on the information, shipping, and payment steps need Shopify Plus, and Shopify's API terms bar an alternative checkout for Shopify merchants without its written authorization. With Flint Pay your storefront renders the whole checkout: the cart is a Flint order, Stripe Elements collects the card on your page, and your backend completes the purchase with POST /v1/orders/{order_id}/pay.
What is the best checkout API for a custom storefront?
One that computes the total, keeps card data off your servers, runs 3D Secure on your page, refuses to charge a total the buyer didn't approve, makes retries safe, holds stock while the buyer pays, and tells you when to fulfill. Flint Pay does all of that on one order: Flint prices the cart with tax, shipping, and discounts, Stripe Elements collects the card, POST /v1/orders/{order_id}/pay charges exactly what the buyer approved, and the order.paid webhook tells your backend to ship. Cards cost 3.79% + 35¢, with no monthly fee.
Is the Shopify Checkout API deprecated?
It was shut off. Shopify deprecated the Storefront checkout mutations and the REST checkout endpoints and turned them off on April 1, 2025, and customers can't create or complete checkouts through them anymore. Apps moved to the Cart API, which hands the buyer to Shopify's web checkout at checkoutUrl. On Flint the same flow is three calls from your backend: create the order, read its payment collection block, and pay it.
What replaced checkoutCreate?
cartCreate. Shopify's migration guide pairs each checkout mutation with a Cart API mutation, such as cartLinesUpdate, cartDiscountCodesUpdate, cartDeliveryAddressesAdd, and cartBuyerIdentityUpdate, and replaces Checkout.webUrl with Cart.checkoutUrl. On Flint, POST /v1/orders creates the cart as an open order, and POST /v1/orders/{order_id}/pay completes it from your backend.
How much does headless Shopify cost?
On Shopify’s US plans billed monthly, Basic is $39, Grow $105, and Advanced $399, each with one headless storefront, and Plus starts at $2,300 with 25. Checkout UI extensions on the information, shipping, and payment steps need Plus. Shopify Payments starts at 2.9% + 30¢ on Basic, and a third-party processor adds a fee of 2% on Basic down to 0.2% on Plus. Flint has no monthly fee: cards are 3.79% + 35¢ with Stripe’s processing included, and every account can run checkout on its own pages. Flint vs Shopify works through a month of fees.
Can I keep Shopify for products and run my own checkout beside it?
Shopify’s API terms cover this. Clause 2.3.18 says an API user may not, without Shopify’s express written authorization, use an alternative to Shopify Checkout for checkout or payment processing for Shopify merchants, or register those transactions through the Shopify API. Flint gives the storefront you built its whole backend instead: products, variants, stock, orders, and checkout on one API key, so there is nothing to sync back.
What happens to the Hydrogen or Next.js storefront I built?
Your routes, components, and design stay. The loaders that query Shopify's Storefront API read from Flint on your server instead, for example GET /v1/products?external_reference_id={handle} for a product page, and the browser talks to your backend and Stripe.js. Oxygen, Shopify's hosting for Hydrogen, comes with paid Shopify plans, and Shopify documents self-hosting Hydrogen, so the app can run wherever you host server code.
How do I move my products off Shopify?
Export them from Shopify admin as a CSV and create each product with POST /v1/products. The URL handle becomes the product's external_reference_id, so your storefront's product routes resolve by the same handle. Options and variants carry across with their SKUs, barcodes, and prices, and Flint downloads each Product image URL and stores its own copy. Then record stock per location with POST /v1/inventory-adjustments.
Do Apple Pay and Google Pay work on my own checkout page?
Yes. Register each checkout hostname once with POST /v1/payment-method-domains and serve checkout over HTTPS. The wallets then appear in the same Stripe Payment Element as the card fields and settle into the same order. Apple Pay and Google Pay setup
Which payment methods can buyers use?
Cards, Apple Pay, and Google Pay, in the Stripe Payment Element on your own page. Affirm and ACH debit run through the same pay call once you turn them on. ACH debit takes days to settle, so it isn't offered on orders with tracked stock. Every method settles into the same kind of order, so refunds, webhooks, and reporting work the same way however the money arrived.
How is sales tax calculated?
Flint calculates US sales tax from the order's delivery address, on the line items and on shipping, through a tax connection you set up once in the dashboard, and refunds reverse it. Automatic tax costs 0.50% of payments that carry tax. If you already run a tax engine, send its jurisdiction rates in external mode and Flint records and reverses them at no charge.
Who processes the cards?
Stripe processes every card. Card details go from the buyer's browser to Stripe and never reach your servers or Flint's. Flint sets up and runs the processing account, so you have one signup, one set of keys, and one fee per payment.
What does Flint cost?
Cards cost 3.79% + 35¢, with no monthly fee. Automatic tax adds 0.50% of payments that carry tax, subscriptions and invoices add 0.40%, and Flint’s hosted checkout on your own domain is $15 a month. A checkout on your own pages needs no add-on. The sandbox is free and needs no credit card. Every rate is on the pricing page.
How do I get started?
Sign up on the web, or create an account from your terminal with flint signup. The sandbox is free, with no credit card and no sales call. Flint onboards US businesses; buyers can pay from anywhere. Install the Node SDK, create an order, and pay it with the 4242 test card in about ten minutes. Quickstart
Sources
Where the Shopify facts come from.
The Checkout APIs (Storefront checkout mutations and REST checkout endpoints) were shut off on April 1, 2025; after that, customers can't create or complete checkouts through them, and apps move to the Storefront Cart API. Shopify changelog: Checkout APIs will be shut down April 1, 2025
shopify.dev · checked 2026-10-23Each checkout mutation's Cart API replacement, and Checkout.webUrl replaced by Cart.checkoutUrl to send the buyer to Shopify's web checkout. Shopify docs: Migrate your app to the Cart API
shopify.dev · checked 2026-10-23The cart's checkoutUrl redirects customers through Shopify's web checkout. Shopify docs: Manage a cart with the Storefront API
shopify.dev · checked 2026-10-23Checkout UI extensions for the information, shipping, and payment steps are available only to stores on a Shopify Plus plan. Shopify docs: Checkout UI extensions
shopify.dev · checked 2026-10-23US, billed monthly: Basic $39, Grow $105, Advanced $399, Plus from $2,300. One headless storefront on Basic, Grow, and Advanced, 25 on Plus. Checkout customization Limited below Plus, Full on Plus. Shopify Payments online standard cards from 2.9% + 30¢ on Basic. Third-party transaction fees 2%, 1%, 0.6%, 0.2%. Shopify pricing (US)
www.shopify.com · checked 2026-10-23Third-party transaction fees aren't returned when you issue an order refund. Shopify Help Center: Third-party transaction fees
help.shopify.com · checked 2026-10-23Payments extensions: access only for approved Payments Partners, a signed revenue share agreement, and no Shopify APIs other than the Payments Apps API and mandatory webhooks. Shopify docs: Payments extension requirements
shopify.dev · checked 2026-10-23Last updated October 7, 2026. Clause 2.3.18: no alternative to Shopify Checkout for checkout or payment processing for Shopify merchants without express written authorization. Shopify API License and Terms of Use
www.shopify.com · checked 2026-10-23Oxygen is available at no extra charge on paid Shopify plans, and Hydrogen can be self-hosted. Shopify docs: Hydrogen and Oxygen fundamentals
shopify.dev · checked 2026-10-23The product route loader in Hydrogen's React Router template, quoted trimmed to its data load. Shopify/hydrogen on GitHub: templates/react-router/app/routes/product.tsx
github.com · checked 2026-10-23Product CSV column names (URL handle, Option1 name, SKU, Barcodes, Price, Product image URL, Inventory quantity); Inventory quantity works only for single-location stores. Shopify Help Center: Using CSV files to import and export products
help.shopify.com · checked 2026-10-23
last reviewed 2026-10-23 · corrections: Flint Help
Render your own checkout this week.
Free sandbox, no credit card, no sales call. Your storefront stays as you built it, and your first paid test order takes about ten minutes.
Or run npm install -g @flintpay/cli && flint signup to create your account and a sandbox key from the terminal. CLI guide