Paritance
In development. The API is part of the full platform. It isn't publicly hosted yet, and details may change before release. All examples use fictional data.

Integrations / API reference

All integration calls

Every call an integration needs: what it does, who can use it, what to send, what comes back, and what can go wrong.

Format
JSON over HTTPS. File uploads use multipart/form-data.
Sign-in
Get a token from POST /api/auth/login, then send Authorization: Bearer <token>. Webhooks are signed instead.
Access
Every signed-in user can read. Read-only users get 403 on calls that send or change data.
Data
Each organization sees only its own records.

Getting started

Errors and limits

Errors come back as JSON with a plain-language message, for example { "message": "Invalid transaction fields." }.

StatusMeaning
400Something in the request is missing or not valid. The message says what.
401No token, an expired token, or an account that is no longer active. For webhooks: the signature or timestamp didn't check out.
403Read-only users can't send or change data.
404The record doesn't exist, or belongs to another organization.
409The request clashes with data already stored. Nothing was changed.
413The request body is too large.
429Too many sign-in attempts. Wait a minute and try again.
  • Sign-in is limited to 30 attempts per minute from one IP address.
  • Events and webhooks: up to 64 KB per request.
  • Files: CSV or XLSX, up to 10 MB and 10,000 transactions each.

POST /api/auth/login

Use it when a script, scheduled job, or internal tool needs to call the API. Give each integration its own user, so its actions are easy to tell apart and its access can be limited.

Sign in with an email and password and get a token for the other calls. No token needed.

Body

emailRequired.
passwordRequired.
POST /api/auth/login
{ "email": "ops@example.com", "password": "••••••••" }

→ 200 OK
{
  "success": true,
  "message": "Login successful.",
  "token": "eyJhbGciOi…",
  "user": { "id": "5b1e…", "email": "ops@example.com", "firstName": "Sam",
            "lastName": "Rivera", "role": "Manager", "organizationId": "0c9a…" }
}

Errors: 401 with "message": "Invalid email or password."; 429 too many attempts.

Send data in

POST /api/ingestion/transactions

Use it when your own systems see payments as they happen, such as a payment service, billing system, or ledger. Send each event as it occurs, and transactions and their timelines stay current all month.

Send one transaction or payment event as it happens. The first event for a transaction creates it. Later events with a new externalEventId are added to its timeline. Any user except Read-only.

Body

sourceRequired. Name of the sending system, up to 100 characters.
externalEventIdRequired. Your unique ID for this event, up to 255 characters. Used to recognize retries.
transactionIdRequired. Your transaction ID, up to 255 characters.
amountRequired. Number with at most two decimal places.
currencyRequired. Three-letter code, such as USD.
transactionDateRequired. Date and time with a time zone, such as 2026-10-08T00:00:00Z.
reference, accountOptional. Up to 255 and 100 characters.
eventType, eventSummaryOptional. Shown on the timeline. Up to 100 and 350 characters.
eventOccurredAtOptional. When the event happened, with a time zone. Defaults to when it was received.
customerName, customerEmail, settlementId, invoiceNumberOptional. Up to 255 characters each. All are searchable.
POST /api/ingestion/transactions
{
  "source": "processor",
  "externalEventId": "evt-0481-settled",
  "transactionId": "FF500-PAY-0481",
  "amount": 684.47,
  "currency": "USD",
  "transactionDate": "2026-10-08T00:00:00Z",
  "reference": "REF-FF500-0481",
  "eventType": "Settled",
  "eventSummary": "Settled by processor"
}

→ 201 Created
{ "transactionId": "7d3c…0481", "duplicate": false }

→ 200 OK when the same event is sent again
{ "transactionId": "7d3c…0481", "duplicate": true }

Errors: 400 a field is missing or not valid, or a date has no time zone; 409 the event ID was already used with different data, or the amount, currency, date, reference, or account differ from the stored transaction; 413 over 64 KB.

POST /api/ingestion/webhooks/{keyId}

Use it when a processor, bank, or other outside service can push events to a URL but can't sign in. The signature proves where each event came from.

The same as sending an event, for a processor or bank that pushes events to you. Instead of a token, each request is signed with a webhook secret. No token. Webhook keys and secrets are issued during setup.

Headers

X-Paritance-TimestampCurrent time in Unix seconds. Must be within five minutes of the server's time.
X-Paritance-SignatureHMAC-SHA256 of {timestamp}.{body} using the webhook secret, as 64 hex characters.
// Node.js
const timestamp = Math.floor(Date.now() / 1000).toString();
const signature = crypto.createHmac('sha256', webhookSecret)
  .update(`${timestamp}.${body}`)
  .digest('hex');

POST /api/ingestion/webhooks/3e7a…91c2
X-Paritance-Timestamp: 1791504000
X-Paritance-Signature: 9f2c…e41a
{ …same body as sending an event… }

Errors: 401 unknown key, wrong signature, or timestamp more than five minutes off; 400 invalid body, or source differs from the one set up for this key; 409 as for sending an event; 413 over 64 KB.

POST /api/reconciliation/start

Use it when you reconcile from exports, such as a month-end ledger file against a processor's settlement report. Run it from a script on a schedule, or whenever new files arrive.

Upload a source file and a target file and reconcile them in one step. Any user except Read-only.

Form fields

source, targetRequired. CSV or XLSX files, up to 10 MB and 10,000 transactions each. Dates use YYYY-MM-DD.
matchingStrategyOptional. ExactMatch (default), FuzzyMatch, or RuleBasedMatch.
sourceMappingTemplateId, targetMappingTemplateIdOptional. A saved column mapping. Without one, your default mapping for that file type is used, if you have one.

Records are first paired by transaction ID. Pairs whose amount or currency differ become exceptions. Records left over are compared by amount, currency, a date within three days, account, and a similar reference. RuleBasedMatch requires the reference to match exactly. Five or more exceptions of the same type in one run are grouped into an incident.

POST /api/reconciliation/start
Content-Type: multipart/form-data

source=@ledger-october.csv
target=@processor-october.xlsx
matchingStrategy=ExactMatch

→ 200 OK
{ "id": "a81f…2c90", "matchingStrategy": "ExactMatch", "matches": 480, "exceptions": 30 }

Errors: 400 a file is missing, can't be read, is too large or has too many rows; the strategy isn't recognized; or a mapping doesn't exist or is for a different file type.

GET /api/mapping-templates

Use it when your integration needs to choose the right mapping for a file, or show your team which file layouts are set up.

List your saved column mappings. Any signed-in user.

→ 200 OK
[{
  "id": "e52d…7b10",
  "name": "Processor export",
  "description": "Monthly settlement file",
  "fileType": ".xlsx",
  "columnMappings": { "TransactionId": "Payment ID", "Amount": "Gross", "Currency": "Ccy", "Date": "Settled on" },
  "isDefault": true,
  "createdAt": "2026-11-02T09:14:00Z"
}]

POST /api/mapping-templates

Use it when a system exports files with its own column names, such as "Payment ID" and "Gross" instead of TransactionId and Amount. Save the mapping once and every file from that system imports as-is.

Save how your file's column names map to transaction fields, so files import without renaming columns. Any user except Read-only.

Body

nameRequired. Up to 255 characters.
descriptionOptional. Up to 1,000 characters.
fileTypeRequired. .csv or .xlsx.
columnMappingsRequired. Field name → your column name. TransactionId, Amount, Currency, and Date are required. Reference, Account, CustomerName, CustomerEmail, SettlementId, and InvoiceNumber are optional. Each column can be used once.
isDefaultUse this mapping when none is chosen. One default per file type; setting a new one replaces the old.
→ 201 Created
{ "id": "e52d…7b10" }

Errors: 400 with a message naming the problem, such as a missing required field or a column used twice.

PUT /api/mapping-templates/{id}

Use it when a system changes its export, such as a renamed column, and imports start failing.

Replace a saved mapping. Takes the same body as saving a mapping. Any user except Read-only.

→ 200 OK
{ "id": "e52d…7b10" }

Errors: 400 as for saving; 404 mapping not found.

DELETE /api/mapping-templates/{id}

Use it when a file layout is no longer used, so it stops appearing as a choice.

Remove a saved mapping. Past reconciliation runs are not affected. Any user except Read-only.

→ 200 OK
{ "message": "Mapping template deleted." }

Errors: 404 mapping not found.

Read results

GET /api/reconciliation/jobs

Use it when you want to confirm last night's run finished, or show run history and counts in your own reporting.

Past reconciliation runs, newest first. Any signed-in user.

→ 200 OK
[{
  "id": "a81f…2c90",
  "createdAt": "2026-11-03T08:30:00Z",
  "status": "Completed",
  "matchingStrategy": "ExactMatch",
  "files": ["ledger-october.csv", "processor-october.xlsx"],
  "matches": 480,
  "exceptions": 30
}]

GET /api/reconciliation/results?jobId={id}

Use it when you want the full outcome of one run in your own tools, such as loading exceptions into a spreadsheet or a data warehouse for review.

Every matched pair and every exception from one run, with the full source and target records. Any signed-in user.

→ 200 OK (one exception shown)
{
  "id": "a81f…2c90",
  "matches": [{ "source": { … }, "target": { … } }],
  "exceptions": [{
    "id": "c4e2…0481",
    "type": "AmountMismatch",
    "status": "Open",
    "reason": "Transaction FF500-PAY-0481 differs: 683.97 USD vs 684.47 USD.",
    "suggestedAction": "Check the amounts and currencies in both systems.",
    "notes": null,
    "source": { "transactionId": "FF500-PAY-0481", "amount": 683.97, … },
    "target": { "transactionId": "FF500-PAY-0481", "amount": 684.47, … }
  }]
}

Exception types: UnmatchedTransaction, PartialMatch, DuplicateTransaction, AmountMismatch, DateMismatch.

Errors: 404 run not found.

GET /api/exceptions

Use it when you keep exceptions in a work queue your team already uses, such as a ticketing tool. Fetch on a schedule and create a ticket for each new one.

All exceptions across all runs, newest first. Use this to sync exceptions into your own work queue. Any signed-in user.

→ 200 OK
[{
  "id": "c4e2…0481",
  "reconciliationJobId": "a81f…2c90",
  "type": "AmountMismatch",
  "status": "Open",
  "reason": "Transaction FF500-PAY-0481 differs: 683.97 USD vs 684.47 USD.",
  "suggestedAction": "Check the amounts and currencies in both systems.",
  "notes": null,
  "sourceTransactionId": "7d3c…0481",
  "targetTransactionId": "91aa…0481"
}]

GET /api/transactions/{id}/investigation

Use it when you need the full story of one payment in one call: what it matched, why it was flagged, and everything that happened to it, in order.

Everything about one transaction: its details, related records, exceptions, and a timeline of what happened to it. Any signed-in user.

→ 200 OK (shortened)
{
  "transaction": { "transactionId": "FF500-PAY-0481", "amount": 683.97, "currency": "USD", … },
  "reconciliationStatus": "Exception",
  "reconciliation": { "jobId": "a81f…2c90", "status": "Completed", "matchingStrategy": "ExactMatch", "matchScore": null },
  "relatedRecords": [{ "transactionId": "FF500-PAY-0481", "amount": 684.47, "currency": "USD" }],
  "exceptions": [{ "type": "AmountMismatch", "status": "Open", "reason": "…", "notes": null }],
  "timeline": [
    { "kind": "Imported", "description": "Imported in batch Reconciliation import." },
    { "kind": "Reconciliation completed", "description": "Job status: Completed." },
    { "kind": "Exception", "description": "AmountMismatch: Transaction FF500-PAY-0481 differs: 683.97 USD vs 684.47 USD." }
  ]
}

Errors: 404 transaction not found.

Act and monitor

POST /api/exceptions/comment?id={id}

Use it when the review happens in another tool, such as a ticket being closed. Write the outcome back so the status and reasoning sit with the transaction.

Set an exception's status and notes. Each change is added to the timeline of the transactions involved. Any user except Read-only.

Body

statusRequired. Open, Investigating, Resolved, or Dismissed.
notesOptional. Up to 1,000 characters. Replaces the existing notes.
POST /api/exceptions/comment?id=c4e2…0481
{ "status": "Resolved", "notes": "Target includes a 0.50 USD surcharge. Confirmed with the processor." }

→ 200 OK
{ "message": "Exception updated." }

Errors: 400 unknown status or notes too long; 404 exception not found.

GET /api/incidents

Use it when you want to spot patterns, not single records, such as a processor adding a fee to a whole batch. Alert a team channel when a new incident appears.

Incidents, newest first. An incident is created when one run produces five or more exceptions of the same type, so a pattern isn't handled one record at a time. Any signed-in user.

→ 200 OK
[{
  "id": "f0b3…a7e4",
  "reconciliationJobId": "a81f…2c90",
  "type": "AmountMismatch",
  "status": "Open",
  "createdAt": "2026-11-03T08:30:00Z",
  "resolvedAt": null,
  "exceptionCount": 10
}]

GET /api/incidents/{id}

Use it when someone is working an incident and needs the exceptions it covers in one place.

One incident with its notes and up to 100 of its exceptions. Any signed-in user.

→ 200 OK (shortened)
{
  "id": "f0b3…a7e4",
  "type": "AmountMismatch",
  "status": "Investigating",
  "notes": "Processor added a surcharge to October payments.",
  "exceptionCount": 10,
  "exceptions": [{ "id": "c4e2…0481", "status": "Open", "reason": "…", "transactionId": "7d3c…0481" }]
}

Errors: 404 incident not found.

POST /api/incidents/{id}

Use it when the cause of a pattern is found and fixed, so the incident and its notes reflect what was done.

Set an incident's status and notes. Any user except Read-only.

Body

statusRequired. Open, Investigating, or Resolved.
notesOptional. Up to 1,000 characters.
→ 200 OK
{ "message": "Incident updated." }

Errors: 400 unknown status or notes too long; 404 incident not found.

GET /api/dashboard

Use it when you want Paritance numbers on a wall screen, an internal portal, or a morning summary message.

Headline numbers for your organization, plus the six most recent exceptions and the six most recent open ones. Any signed-in user.

→ 200 OK (shortened)
{
  "totalTransactions": 1000,
  "matchedTransactions": 960,
  "matchRate": 96.0,
  "openExceptions": 30,
  "activeIncidents": 3,
  "recentInvestigations": [ … ],
  "activeExceptions": [ … ]
}

openExceptions counts exceptions that are Open or Investigating. activeIncidents counts incidents that aren't Resolved.

GET /api/reports/operations?from={date}&to={date}

Use it when you report monthly or quarterly on reconciliation, such as for a finance review or month-end close sign-off.

Activity for a date range: records imported, runs, matches, and exceptions and incidents by status. Dates are YYYY-MM-DD in UTC, and both days are included. Any signed-in user.

GET /api/reports/operations?from=2026-10-01&to=2026-10-31

→ 200 OK
{
  "from": "2026-10-01",
  "to": "2026-10-31",
  "transactionRecordsImported": 1000,
  "reconciliationJobsStarted": 1,
  "matchedPairs": 480,
  "exceptions": [{ "type": "AmountMismatch", "status": "Open", "count": 10 }, … ],
  "incidents": [{ "status": "Open", "count": 3 }]
}

Errors: 400 a date is missing or not in YYYY-MM-DD format, or from is after to.

Want API access for your team, or to see these calls against your own data?

Request a demo Back to top