Skip to content

API reference

Every endpoint in Flint’s public API, grouped by job. Each resource page lists its endpoints with parameters, response fields, error codes, and code samples, and a Try it panel sends the request to your sandbox with a test key. Code generators and agents can use the OpenAPI spec.
Resources
65
Endpoints
624
Webhook event types
252

Request basics#

These conventions apply across the API. This request lists your two most recent orders:

cURL
curl "https://api.withflintpay.com/v1/orders?page_size=2" \
  -H "Authorization: Bearer YOUR_API_KEY"
TopicWhat to know
Hosthttps://api.withflintpay.com, with every path under /v1. Live keys and test keys use the same host. See Sandboxes & test mode.
AuthenticationSend Authorization: Bearer with a secret key. A flint_test_ key reaches the sandbox it belongs to, and a flint_live_ key reaches live data. Keep secret keys on your server. See Authentication, API key scopes.
RequestsJSON bodies up to 1 MiB unless an endpoint sets a lower limit. A larger body returns 413 REQUEST_BODY_TOO_LARGE. The OAuth token endpoints take form-encoded bodies instead. See OAuth.
ResponsesThe object, or an array for a list, under data, with request_id and meta. Filter your API request logs by request_id to see what Flint received. See API request logs.
ListsSet page_size, up to 100. When more results remain, the response includes next_page_token; send it back as page_token for the next page. See Pagination.
AmountsMoney is an integer in the currency’s minor unit with an ISO 4217 code: { "amount": 1250, "currency": "USD" } is $12.50. See Money & currency.
RetriesSend an Idempotency-Key header on writes. Retrying the same request with the same key within 24 hours returns the original result instead of repeating it. Some routes, including those that move money or stock, require one. See Idempotency.
VersionsAn API key request uses your merchant’s default API version. Send Flint-Version: YYYY-MM-DD to choose a version for one request. The Flint-Version response header and meta.api_version show the version that shaped the response. See API versions and upgrades.
ErrorsAn error object with a stable code, a message, the param at fault when there is one, details, and remediation.retry, which says whether to resend, rebuild, or stop. See Error codes, Error handling.
Rate limitsA request over a limit returns 429 RATE_LIMIT_EXCEEDED with a Retry-After header. Nothing ran, so wait and resend it with the same Idempotency-Key. See Rate limits.

Using the API#

Reference for the API as a whole: key scopes, the OpenAPI spec, OAuth discovery, error codes, webhook events and delivery, and CLI commands.

Core commerce#

The order is the record of every sale. Build orders from your catalog, attach customers, and bill with invoices. Guides: Why Flint is orders-first, Catalog setup, Invoicing.

Payments#

Collect payment for orders, refund it, answer disputes, and follow funds to your bank. Guides: Accept your first payment, Refunds, Payouts.

Subscriptions#

Bill customers on a schedule, from reusable plans or recurring offers on catalog items. Guides: Subscription billing.

Events & logs#

Get notified when your resources change, and look up the requests your integration sent. Guides: Webhooks, Debugging.

Account#

Your merchant account, sales tax, API keys, and the sandboxes and test clocks you test with. Guides: Sandboxes & test mode, Sales tax, Authentication.

Advanced

Fulfillment#

Configure the shipping, pickup, and local delivery options checkout offers, then record how each order is delivered. Guides: Delivery options, Fulfillment and shipping.

Inventory#

Track stock at each location and reserve it for orders before they ship. Guides: Inventory.

Returns#

A return moves from request through receipt, inspection, and disposition, and settles with a refund, an exchange, or a replacement. Guides: Your first return, Returns.

Gift cards and risk#

Issue and reconcile gift cards, and set the rules that decide which payments go through. Guides: Gift cards, Risk controls.

Platforms and buyer access#

Create merchant accounts from your backend, build apps merchants install, and give buyers a customer account. Guides: API & agent onboarding, Customer accounts, Partner app installs.

Was this helpful?