Tightly Accounts API
The accounts API from Tightly — 1 operation(s) for accounts.
The accounts API from Tightly — 1 operation(s) for accounts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tightly-io:tightly-io-accounts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: 'The public Tightly API. Authenticate with an API key as a bearer token; the key carries the organisation, so no X-Organization-ID header is sent. Every operation below states the scopes a key needs.
Every response carries two headers, whatever it answers: `X-Request-Id`, the handle on that one call, and `X-Tightly-Region`, the home that served it.
Every write accepts an optional `Idempotency-Key` request header, any string up to 255 characters. Send the same key twice and the second request is answered with the first one''s status and body instead of writing again, so a client that retried after a timeout ends holding the record''s id rather than creating a second one. Reusing a key with a different body, or while the first request is still running, is refused `409`. A write that failed releases its key. Keys answer for 24 hours and belong to the API key that used them.
Any operation can answer `503`, and it is about Tightly rather than about the request: a database briefly out of reach, which is what a failover or a full connection pool looks like from outside, or an idempotency store that could not answer. `message.desc` says which, and most carry a `Retry-After` header naming the seconds to wait. Where the sentence says nothing was written, the same request is safe to send again. Otherwise a read is safe to repeat and a write is not certain either way, because the connection was lost in the middle of it: read the object back before sending it a second time. An `Idempotency-Key` does not settle that one, and deliberately: a write that raised releases its key so the retry is a fresh attempt rather than a refusal for the next day. Branch on the status rather than on `code`, which is `POSTGRES_UNAVAILABLE` or `SERVICE_UNAVAILABLE` depending on which seam refused.'
title: Tightly Accounts API
version: 2026-11
servers:
- url: https://api.app.tightly.io
security:
- ApiKey: []
tags:
- name: Accounts
paths:
/api/v1/wholesale/edi/documents:
get:
description: 'Every EDI document this organisation has exchanged with its accounts: purchase orders (850) in, acknowledgements (855), shipping notices (856) and invoices (810) out, and the inventory (846) and sell-out (852) reports that arrive on the same connection. Each row says which account it belongs to, which order it became or answered, what state it reached, and the sentence behind that state where it has one, so a file that was refused or an acknowledgement a network would not take is readable here rather than in the network''s own console. `network` says which lane a document came through, and it is also the filter: this log holds every lane an order can arrive on, so ask for `network=sps_commerce` for the EDI lane alone. Read only: documents are made by the acts that make them, never posted here.
Scope: `accounts:read`.'
operationId: list_edi_documents
parameters:
- description: One account's documents only.
in: query
name: trading_partner_id
schema:
type: string
- description: One kind of document only, by its X12 number.
in: query
name: document_type
schema:
enum:
- '850'
- '855'
- '856'
- '810'
- '846'
- '852'
type: string
- description: Documents that arrived (inbound) or that Tightly sent (outbound).
in: query
name: direction
schema:
enum:
- inbound
- outbound
type: string
- description: Documents in this state only.
in: query
name: state
schema:
enum:
- received
- parsed
- applied
- refused
- queued
- sent
- failed
type: string
- description: The lane the document came through. `sps_commerce` is the EDI lane; the other four are the paper lanes that share this table. Omit it for every lane.
in: query
name: network
schema:
enum:
- sps_commerce
- email
- upload
- link
- portal
type: string
- description: Rows to skip before the page starts.
in: query
name: offset
schema:
default: 0
type: integer
- description: Rows on the page.
in: query
name: limit
schema:
default: 50
maximum: 10000
type: integer
- $ref: '#/components/parameters/TightlyVersion'
responses:
'200':
content:
application/json:
example:
data:
filtered_max_size: 2
max_size: 50
offset: 0
rows:
- account:
name: Coastline Department Stores
trading_partner_id: tp_coastline
control_number: CDS-90114
direction: outbound
document_id: 42
document_type: '855'
file_path: in/855-CDS-90114.xml
network: sps_commerce
order:
name: ORD-00000412
order_id: ord_01JQ8ZK7C4N2R9V6T3M0X5A1BD
received_at: null
sent_at: '2026-09-05T17:30:00+00:00'
sentence: null
state: sent
- account:
name: Coastline Department Stores
trading_partner_id: tp_coastline
control_number: CDS-90114
direction: inbound
document_id: 41
document_type: '850'
file_path: out/PO/PO584615-1-v7.7-BulkImport.xml
network: sps_commerce
order:
name: ORD-00000412
order_id: ord_01JQ8ZK7C4N2R9V6T3M0X5A1BD
received_at: '2026-09-05T06:10:00+00:00'
sent_at: null
sentence: null
state: applied
size: 2
message:
desc: OK
service: wholesale
severity: INFO
description: The documents, newest first.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Tightly-Region:
$ref: '#/components/headers/X-Tightly-Region'
'401':
content:
application/json:
example:
code: key_invalid
message:
code: key_invalid
desc: The API key is not valid.
doc_url: https://app.tightly.io/docs/api/guides/errors#key_invalid
request_id: req_8f3c1d0a6b2e4a519c772e0a4b6d1f83
service: UNKNOWN
severity: ERROR
description: 'No usable key: malformed, unknown, revoked, expired or stopped.
'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Tightly-Region:
$ref: '#/components/headers/X-Tightly-Region'
'403':
content:
application/json:
example:
code: plan_excludes
message:
code: plan_excludes
desc: This organisation's plan does not include Tightly Connect. It is sold with Essentials+.
doc_url: https://app.tightly.io/docs/api/guides/errors#plan_excludes
request_id: req_6d2b7e1490af4c338b0e51d9c7a2e4b6
service: UNKNOWN
severity: ERROR
description: 'The key may not reach this operation. `plan_excludes`: Accounts is sold with Tightly Connect on Essentials+ and this organisation''s plan does not include it; `scope_missing`: the key does not hold Accounts; `account_mismatch`: a key issued to one account named another.
'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Tightly-Region:
$ref: '#/components/headers/X-Tightly-Region'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/DatabaseUnavailable'
security:
- ApiKey: []
summary: list edi documents
tags:
- Accounts
x-tightly-scopes:
- accounts:read
components:
responses:
DatabaseUnavailable:
content:
application/json:
example:
code: POSTGRES_UNAVAILABLE
message:
code: postgres_unavailable
desc: The database is unavailable right now. Try again in a few seconds.
doc_url: https://app.tightly.io/docs/api/guides/errors#postgres_unavailable
request_id: req_2e7b41c0d9384fa6b15c8073ea92d1f4
service: UNKNOWN
severity: ERROR
schema:
properties:
code:
description: The same stable code as message.code, at the envelope's top level.
type: string
message:
description: severity, service, desc, and on a keyed refusal code, doc_url and request_id.
type: object
type: object
description: The database is briefly out of reach, which is what a failover or a full connection pool looks like from outside. Wait the seconds `Retry-After` names and send the request again. A read is safe to repeat. A write is not, because the connection was lost in the middle of it, so read the object back before sending it a second time. Branch on the status rather than on `code`, which is `POSTGRES_UNAVAILABLE` from one of the two seams that raise this and `SERVICE_UNAVAILABLE` from the other.
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Tightly-Region:
$ref: '#/components/headers/X-Tightly-Region'
RateLimited:
content:
application/json:
example:
code: rate_limited
message:
code: rate_limited
desc: This key has reached its limit of 600 reads a minute; try again in 12 seconds.
doc_url: https://app.tightly.io/docs/api/guides/errors#rate_limited
request_id: req_5c1a9f47b0e34d8f9a2c6e10b3d4f785
service: UNKNOWN
severity: ERROR
schema:
properties:
code:
description: The same stable code as message.code, at the envelope's top level.
type: string
message:
description: severity, service, desc, and on a keyed refusal code, doc_url and request_id.
type: object
type: object
description: The key has spent its allowance for this minute. 600 reads and 120 writes a minute, counted per key, refused calls included. `Retry-After` says how long to wait.
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-Tightly-Region:
$ref: '#/components/headers/X-Tightly-Region'
headers:
X-RateLimit-Reset:
description: Unix seconds. The moment the allowance is whole again.
schema:
examples:
- 1793491260
type: integer
X-Tightly-Region:
description: The home that served the call. `us` for every organisation today.
schema:
examples:
- us
type: string
Retry-After:
description: Seconds to wait before sending the request again.
schema:
examples:
- 12
type: integer
X-Request-Id:
description: The handle on this one call. Quote it in a support conversation, or find the call by it in the key's Usage.
schema:
examples:
- req_8f3c1d0a6b2e4a519c772e0a4b6d1f83
type: string
X-RateLimit-Limit:
description: The ceiling on the allowance this call spent, per key, per minute. Reads and writes are counted apart, so the number moves with the verb.
schema:
examples:
- 600
type: integer
X-RateLimit-Remaining:
description: What is left of that allowance, this call included. Never below zero.
schema:
examples:
- 597
type: integer
parameters:
TightlyVersion:
description: The date train to answer on. One train exists today, `2026-11`, the one this reference describes and the one every key is minted on, so the call answers on it with or without this header. Send it anyway, so a client built now names its train from the start.
in: header
name: Tightly-Version
required: false
schema:
examples:
- 2026-11
type: string
securitySchemes:
ApiKey:
description: 'An API key from Settings > Developer > API keys, sent as `Authorization: Bearer tly_live_...`. The key carries the organisation.'
scheme: bearer
type: http