ClarionbySign in
Clarion guides

Clarion API for companies

API guide for IT teams

Connect your ERP or data warehouse to Clarion: send TraCarta your files, then pull reconciled lines, airline PDFs and reports. REST and JSON, with signed webhooks.

Download PDFProduct guideUpdated 1 December 2026
Contents
  1. 1Introduction
  2. 2Quick start
  3. 3Authentication and keys
  4. 4Engagements
  5. 5Sending files
  6. 6Companies and GSTINs
  7. 7Reconciled lines
  8. 8Airline PDFs
  9. 9Reconciliation reports
  10. 10Webhooks
  11. 11Errors and limits
  12. 12Sandbox
  13. 13What’s changed

Introduction

The Clarion API gives your systems the same as Clarion: send TraCarta your files, then collect every reconciled airline line, the airline invoices and credit notes behind them, and TraCarta’s reconciliation reports.

Everything is filed under an engagement, usually one financial year of work, such as Airline GST Reconciliation FY 2026-27.

It’s safe by design. A key acts as the person who made it and sees exactly what they can see: the same companies, GSTINs and columns. Keys only read, unless an admin ticks Can send files when making the key. Nothing in the API changes or deletes your data.

What you can doHow
Send filesTravel agent reports, GSTR-2B and GSTR-6A, to an engagement.
Reconciled linesEvery column of My Data, filtered your way.
Airline PDFsOne at a time, or a ZIP for an engagement.
ReportsTraCarta’s reconciliation workbooks.
WebhooksA call to your system the moment something changes.
Base URL
https://clarion.tracarta.com/api/v1

A travel management company? Read the API guide for TMCs instead.

Quick start

Three steps to your first call, then try it live from this page.

  1. 1
    Make a key
    In Clarion, open SettingsAPI and choose Create key. Copy it straight away: it’s shown only once.
  2. 2
    Keep it safe
    Store it as an environment variable, such as CLARION_KEY. Never put it in a web page or send it by email.
  3. 3
    Call the API
    Start with /engagements to see what the key can reach, then send files or fetch reports, lines and PDFs for an engagement.
Your first call
curl "https://clarion.tracarta.com/api/v1/engagements?status=active" \
  -H "Authorization: Bearer $CLARION_KEY"

Try it live

Send a real request to your Clarion account from this page. Your key stays in this browser tab and isn’t saved anywhere.

GEThttps://clarion.tracarta.com/api/v1/lines?per_page=5
Response

Paste your key, pick an endpoint and press Send. The real response from your Clarion account shows here.

Authentication and keys

Send your key in the Authorization header as a Bearer token with every request. Keys start with clr_live_.

  • A key sees at most what its owner sees: their companies, GSTINs and the columns TraCarta allows.
  • When you make a key you choose what it can read (data lines, documents, reports, GSTINs), whether it may send files, which addresses it works from, and when it stops working.
  • If the owner loses access to a company, so does the key, immediately.
  • Turn a key off any time in SettingsAPI. It stops working straight away.
Every request
Authorization: Bearer clr_live_8f2a…
Without a valid key: 401
{
  "error": "This key isn't valid or has been turned off."
}

Engagements

Your years of work with TraCarta. Every other call works within one.

GET/api/v1/engagements

Engagements

Everything in Clarion is filed under an engagement, usually one financial year of work ("Airline GST Reconciliation · FY 2026-27"). This lists the ones your key can see, newest year first, with links to everything inside each one.

  • Any valid key can list engagements.

Query parameters

statusactive · completed
Only active, or only completed, engagements.
curl "https://clarion.tracarta.com/api/v1/engagements?status=active" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "total": 1,
  "engagements": [
    {
      "id": "8a41c2d0-…",
      "name": "Airline GST Reconciliation",
      "financial_year": "2026-27",
      "status": "active",
      "starts": "2026-04-01",
      "ends": "2027-03-31",
      "client": null,
      "reconciliation": true,
      "links": {
        "send_files": "https://clarion.tracarta.com/api/v1/engagements/8a41c2d0-…/uploads",
        "uploads": "https://clarion.tracarta.com/api/v1/uploads?engagement=8a41c2d0-…",
        "lines": "https://clarion.tracarta.com/api/v1/lines?engagement=8a41c2d0-…",
        "reports": "https://clarion.tracarta.com/api/v1/reports?engagement=8a41c2d0-…",
        "documents_zip": "https://clarion.tracarta.com/api/v1/engagements/8a41c2d0-…/documents.zip"
      }
    }
  ]
}

Sending files

Send TraCarta travel agent reports, GSTR-2B and GSTR-6A files, then follow them until they’re done.

POST/api/v1/engagements/{id}/uploads

Send files to TraCarta

Sends your travel agent report, GSTR-2B, GSTR-6A or other files into an engagement. They arrive exactly like "Send files" in Clarion: TraCarta is alerted, and you can follow them from Received to Being processed to Done.

  • Needs a key with "Send files" ticked (client admins can make one in Settings → API).
  • Send multipart/form-data. Repeat the file field for several files: up to 50 files and 100 MB per call. Zip bigger sets.
  • Completed engagements can't take new files (409).
  • When TraCarta is done, the reconciliation report, data and PDFs appear in the same engagement. Use a webhook to hear the moment that happens.

Form fields (multipart/form-data)

kindrequired
What you're sending: travel_agent_report, gstr2b, gstr6a or other. For example gstr2b
filefile, repeatable
The files. Excel, CSV, JSON, PDF or ZIP, as allowed for your account.
titletext, optional
A name for this upload. Clarion makes one if you leave it out. For example GSTR-2B Oct 2026
notetext, optional
Anything TraCarta should know. For example Includes the new Pune GSTIN
curl -X POST "https://clarion.tracarta.com/api/v1/engagements/ENGAGEMENT_ID/uploads" \
  -H "Authorization: Bearer $CLARION_KEY" \
  -F kind=gstr2b \
  -F "title=GSTR-2B Oct 2026" \
  -F "file=@GSTR2B_29AAKCV4821M1Z5_102026.json"
200 OKResponse
{
  "id": "e52f…",
  "engagement_id": "8a41c2d0-…",
  "client": null,
  "kind": "gstr2b",
  "kind_label": "GSTR-2B",
  "title": "GSTR-2B Oct 2026",
  "note": null,
  "via": "api",
  "status": "received",
  "status_label": "Received",
  "message": null,
  "sent_on": "2026-11-19T10:02:11.000Z",
  "updated_on": "2026-11-19T10:02:11.000Z",
  "files": [
    {
      "name": "GSTR2B_29AAKCV4821M1Z5_102026.json",
      "size_bytes": 482113
    }
  ],
  "url": "https://clarion.tracarta.com/api/v1/uploads/e52f…"
}
GET/api/v1/uploads

Files you sent, and their status

Everything sent to TraCarta (from Clarion or the API), newest first, with where each one is: received, processing or done. GET /api/v1/uploads/{id} returns one.

Query parameters

engagementtext
Only this engagement's uploads.
statusreceived · processing · done
Only uploads at this stage.
curl "https://clarion.tracarta.com/api/v1/uploads?engagement=8a41c2d0-…&status=done" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "total": 1,
  "uploads": [
    {
      "id": "c19a…",
      "engagement_id": "8a41c2d0-…",
      "client": null,
      "kind": "travel_agent_report",
      "kind_label": "Travel agent report",
      "title": "Oct bookings",
      "note": null,
      "via": "api",
      "status": "done",
      "status_label": "Done",
      "message": "Done. Your data and documents are in Clarion.",
      "sent_on": "2026-11-04T08:15:00.000Z",
      "updated_on": "2026-11-09T12:40:00.000Z",
      "files": [
        {
          "name": "Oct-2026-bookings.xlsx",
          "size_bytes": 91340
        }
      ],
      "url": "https://clarion.tracarta.com/api/v1/uploads/c19a…"
    }
  ]
}

Companies and GSTINs

Your companies and GSTINs, as the key can see them.

GET/api/v1/gstins

Companies and GSTINs

The companies and GSTINs your key can see (for travel management companies, your clients, with their ids). A good first call to check the key works.

curl "https://clarion.tracarta.com/api/v1/gstins" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "account": "Vertex Global Services",
  "companies": [
    {
      "id": "b3e0…",
      "name": "Vertex Analytics India Pvt Ltd",
      "kind": "company",
      "pan": "AAKCV4821M",
      "gstins": [
        {
          "gstin": "29AAKCV4821M1Z5",
          "state": "Karnataka"
        },
        {
          "gstin": "27AAKCV4821M1ZA",
          "state": "Maharashtra"
        }
      ]
    },
    {
      "id": "71d2…",
      "name": "Vertex Technologies Pvt Ltd",
      "kind": "company",
      "pan": "AAGCV1190K",
      "gstins": [
        {
          "gstin": "33AAGCV1190K1Z0",
          "state": "Tamil Nadu"
        }
      ]
    }
  ]
}

Reconciled lines

Every reconciled airline line, with the same columns as My Data, filtered and paged your way.

GET/api/v1/lines

Reconciled lines

Every reconciled line, the same as My Data, newest airline invoice date first. Each line has the columns TraCarta lets your company see, plus links to its airline PDF.

  • Add engagement=<id> for one engagement (travel management companies: one client's engagement). Leave it out for every engagement.
  • All the filters below work here.
  • in_gstr2b is true, false, or null when not checked yet (accounts with reconciliation).

Query parameters

engagementtext
Only lines in this engagement. For example 8a41c2d0-…
fytext
Financial year. Leave out for all years. For example 2026-27
gstintext, repeatable
Only lines for these client GSTINs. Leave out for every GSTIN the key can see. For example 27AAKCV4821M1ZA
from · todate
Date of airline invoice, from and to (inclusive), as YYYY-MM-DD. For example 2026-10-01
monthYYYY-MM, repeatable
One or more months of the airline invoice date. For example 2026-10
airlinetext, repeatable
Standard airline name from the airline master. For example IndiGo
typeinvoice · credit
Only invoices, or only credit notes.
doclinked · waiting
Lines that have their airline PDF, or are still waiting for it.
b2yes · no · unchecked
Reflected in GSTR-2B (accounts with reconciliation).
qtext
Search transaction ID, airline invoice number, e-ticket or passenger.
pagenumber
Page number, starting at 1. For example 1
per_pagenumber
Lines per page: 100 by default, up to 1,000. For example 500
curl "https://clarion.tracarta.com/api/v1/lines?engagement=ENGAGEMENT_ID&airline=IndiGo&doc=linked&per_page=2" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "total": 112,
  "page": 1,
  "per_page": 2,
  "lines": [
    {
      "transaction_id": "VX-B98491",
      "financial_year": "2026-27",
      "transaction_type": "Invoice",
      "client_gstn": "27AAKCV4821M1ZA",
      "pax_name": "Ms Kavya Raman",
      "itinerary": "DEL-BOM",
      "airline_iata": "6E",
      "airline_name": "IndiGo",
      "airline_invoice_number": "MH12261028BA9849",
      "airline_invoice_date": "2026-10-28",
      "airline_gstn": "27AABCI2726B1Z6",
      "taxable_value": 13142,
      "total_igst": 0,
      "total_cgst": 328.55,
      "total_sgst": 328.55,
      "gstr2b_status": "Yes",
      "in_gstr2b": true,
      "engagement_id": "8a41c2d0-…",
      "document_url": "https://clarion.tracarta.com/api/v1/documents/7f3c…"
    },
    {
      "transaction_id": "VX-B1027827",
      "financial_year": "2026-27",
      "transaction_type": "Invoice",
      "client_gstn": "29AAKCV4821M1Z5",
      "pax_name": "Ms Pooja Shetty",
      "itinerary": "BOM-BLR",
      "airline_iata": "6E",
      "airline_name": "IndiGo",
      "airline_invoice_number": "DL12261028BA10278",
      "airline_invoice_date": "2026-10-28",
      "airline_gstn": "07AABCI2726B1Z6",
      "taxable_value": 6468,
      "total_igst": 323.4,
      "total_cgst": 0,
      "total_sgst": 0,
      "gstr2b_status": null,
      "in_gstr2b": null,
      "engagement_id": "8a41c2d0-…",
      "document_url": "https://clarion.tracarta.com/api/v1/documents/a91d…"
    }
  ]
}

Filters

Combine as many as you like. Repeat a parameter to pass several values, such as airline=IndiGo&airline=Air India.

ParameterTypeWhat it does
fytextFinancial year. Leave out for all years. For example 2026-27.
gstintext, repeatableOnly lines for these client GSTINs. Leave out for every GSTIN the key can see. For example 27AAKCV4821M1ZA.
from · todateDate of airline invoice, from and to (inclusive), as YYYY-MM-DD. For example 2026-10-01.
monthYYYY-MM, repeatableOne or more months of the airline invoice date. For example 2026-10.
airlinetext, repeatableStandard airline name from the airline master. For example IndiGo.
typeinvoice · creditOnly invoices, or only credit notes.
doclinked · waitingLines that have their airline PDF, or are still waiting for it.
b2yes · no · uncheckedReflected in GSTR-2B (accounts with reconciliation).
qtextSearch transaction ID, airline invoice number, e-ticket or passenger.
pagenumberPage number, starting at 1. For example 1.
per_pagenumberLines per page: 100 by default, up to 1,000. For example 500.

Pagination

Lines come in pages: 100 by default, up to 1,000 with per_page. Every response says how many lines match in total (total), with page and per_page, so you know when you have them all.

Fetch every page (Python)
import os, requests

key = os.environ["CLARION_KEY"]
lines, page = [], 1
while True:
    r = requests.get(
        "https://clarion.tracarta.com/api/v1/lines",
        params={"fy": "2026-27", "per_page": 1000, "page": page},
        headers={"Authorization": f"Bearer {key}"},
    )
    r.raise_for_status()
    data = r.json()
    lines += data["lines"]
    if page * data["per_page"] >= data["total"]:
        break
    page += 1
print(len(lines), "lines")

Fields in a line

Each line carries the columns of TraCarta’s standard airline ITC format that your company can see, plus engagement_id, document_url and, on accounts with reconciliation, in_gstr2b. Dates are YYYY-MM-DD; amounts are numbers in rupees.

FieldMeaningType
transaction_idTransaction IDtext
financial_yearFinancial Yeartext
transaction_typeTransaction Typetext
client_nameCompany Nametext
client_gstnClient GSTNtext
client_gstn_state_codeClient GSTN Codetext
client_place_of_supplyClient Place of Supplytext
ta_invoice_dateDate of Travel Agent Invoicedate
itineraryItinerarytext
city_of_originCity of Origintext
journey_typeJourney Typetext
total_fareTotal Farenumber
pax_namePax Nametext
class_of_travelClasstext
airline_iataAirline IATA Codetext
airline_nameAirline Nametext
airline_pnrAirline PNRtext
eticketE-Ticket Notext
airline_invoice_numberAirline Invoice Numbertext
airline_invoice_dateDate of Airline Invoicedate
airline_gstnAirline GST Numbertext
los_codeCode for Location of Supply - Airline Servicetext
losLocation of Supply - Airline Servicetext
hsnHSN Code - Airline Servicetext
taxable_valueTaxable Value of Service - Airline Servicenumber
tax_typeType of Taxtext
gst_pctPercentage of GSTnumber
igst_pctPercentage of IGST - Airline Servicenumber
igst_amtIGST Amount - Airline Servicenumber
cgst_pctPercentage of CGST - Airline Servicenumber
cgst_amtCGST Amount - Airline Servicenumber
sgst_pctPercentage of SGST - Airline Servicenumber
sgst_amtSGST Amount - Airline Servicenumber
total_igstTotal IGST Charged by Airlinesnumber
total_cgstTotal CGST Charged by Airlinesnumber
total_sgstTotal SGST Charged by Airlinesnumber
gstr2b_statusReflected in GSTR-2Btext
in_gstr2bReflected in GSTR-2B: true, false or nullboolean
engagement_idThe engagement the line belongs totext
document_urlThe airline PDF, when it’s linkedtext

Airline PDFs

The airline’s own PDF for any line, or every PDF of an engagement in one ZIP.

GET/api/v1/documents/{id}

Airline PDF

Downloads the airline invoice, credit note or debit note for a line. Use the document_url from /lines; the file name is the document number.

curl "https://clarion.tracarta.com/api/v1/documents/DOCUMENT_ID" \
  -H "Authorization: Bearer $CLARION_KEY" \
  -o invoice.pdf
200 OKReturns application/pdf · DL_2526_004512.pdf
(the PDF file)
GET/api/v1/engagements/{id}/documents.zip

All PDFs of an engagement (ZIP)

Every airline invoice, credit note and debit note linked in the engagement, as one ZIP with a folder per airline. Ask for one month to keep it small.

  • Up to 3,000 PDFs per call. Bigger engagements: one month at a time.

Query parameters

monthYYYY-MM
Only documents whose airline invoice date is in this month. For example 2026-10
curl "https://clarion.tracarta.com/api/v1/engagements/ENGAGEMENT_ID/documents.zip?month=2026-10" \
  -H "Authorization: Bearer $CLARION_KEY" \
  -o documents.zip
200 OKReturns application/zip
(the ZIP file)

Reconciliation reports

TraCarta’s reconciliation workbooks: list them, then download any one.

GET/api/v1/reports

Reconciliation reports

The reconciliation reports TraCarta has added, newest first, with the period each one covers. Use engagement=<id> for one engagement.

Query parameters

engagementtext
Only this engagement's reports. For example 8a41c2d0-…
fytext
Only reports filed under this financial year. For example 2026-27
curl "https://clarion.tracarta.com/api/v1/reports?engagement=ENGAGEMENT_ID" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "total": 2,
  "reports": [
    {
      "id": "3b1e…",
      "name": "Reconciliation – Oct 2026",
      "engagement_id": "8a41c2d0-…",
      "period": "Oct 2026",
      "period_from": "2026-10-01",
      "period_to": "2026-10-31",
      "financial_year": "2026-27",
      "added_on": "2026-11-11T09:30:00.000Z",
      "size_bytes": 16384,
      "download_url": "https://clarion.tracarta.com/api/v1/reports/3b1e…"
    },
    {
      "id": "c720…",
      "name": "Quarterly summary – Q1 FY 2026-27",
      "engagement_id": "8a41c2d0-…",
      "period": "Q1 FY 2026-27 (Apr–Jun 2026)",
      "period_from": "2026-04-01",
      "period_to": "2026-06-30",
      "financial_year": "2026-27",
      "added_on": "2026-10-11T09:30:00.000Z",
      "size_bytes": 29696,
      "download_url": "https://clarion.tracarta.com/api/v1/reports/c720…"
    }
  ]
}
GET/api/v1/reports/{id}

Download a report

Downloads one reconciliation report as the Excel workbook TraCarta uploaded.

curl "https://clarion.tracarta.com/api/v1/reports/REPORT_ID" \
  -H "Authorization: Bearer $CLARION_KEY" \
  -o report.xlsx
200 OKReturns application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
(the Excel file)

Webhooks

Rather than asking Clarion again and again whether something is ready, give it a web address. A client admin adds it in Settings, API, Webhooks, and gets a signing secret, shown once.

EventWhen it’s sent
upload.receivedFiles sent to TraCarta were received
upload.processingTraCarta started working on sent files
upload.doneSent files are done (data and documents are in Clarion)
report.addedA reconciliation report was added or replaced
data.updatedReconciled data lines were added or updated
documents.linkedAirline PDFs were linked to data lines
  • Each call is a POST with a JSON body: the event, the engagement and links to fetch what changed.
  • Headers: Clarion-Event, Clarion-Delivery (stays the same if a call is retried) and Clarion-Signature: t=…,v1=….
  • v1 is the HMAC-SHA256 of <t>.<body> with your secret, in hex. Check it, and ignore calls more than 5 minutes old.
  • Answer with any 2xx within 10 seconds. Calls that fail are tried again automatically, with the same Clarion-Delivery. Settings shows the latest calls and lets you send a test.
Check the signature (Python)
import hashlib, hmac, time

def from_clarion(headers, body: bytes, secret: str) -> bool:
    parts = dict(p.split("=", 1) for p in headers["Clarion-Signature"].split(","))
    t, sig = int(parts["t"]), parts["v1"]
    if abs(time.time() - t) > 300:
        return False  # too old
    mac = hmac.new(secret.encode(), f"{t}.".encode() + body, hashlib.sha256)
    return hmac.compare_digest(mac.hexdigest(), sig)
Posted to your address, with Clarion-Event: upload.done
{
  "id": "d7c1…",
  "event": "upload.done",
  "created_at": "2026-11-21T11:04:52.000Z",
  "account": {
    "id": "5f0a…",
    "name": "Vertex Global Services"
  },
  "engagement": {
    "id": "8a41c2d0-…",
    "name": "Airline GST Reconciliation",
    "financial_year": "2026-27",
    "status": "active",
    "client": null
  },
  "data": {
    "upload": {
      "id": "e52f…",
      "kind": "gstr2b",
      "title": "GSTR-2B Oct 2026",
      "via": "api",
      "status": "done",
      "message": "Done. Your data and documents are in Clarion.",
      "url": "…/api/v1/uploads/e52f…"
    }
  }
}

Errors and limits

Clarion uses ordinary HTTP status codes. Errors come back as JSON with a plain-language error message you can show or log.

CodeMeaningWhat to do
200OKEverything worked.
201CreatedYour files were received. The Location header and url point to their status.
400Bad requestThe form couldn’t be read, or no file was attached. Send multipart/form-data with each file in a field called file.
401UnauthorisedThe key is missing, not valid, revoked or expired.
403ForbiddenThe key isn’t allowed to do this, is used from an address the key or your company doesn’t allow, or the account isn’t active.
404Not foundThe engagement, upload, document or report doesn’t exist, or the key can’t see it.
409ConflictThe engagement is completed and can’t take new files.
413Too largeOver 100 MB in one call, or too many PDFs for one ZIP: split it up.
415Wrong formatFiles must be sent as multipart/form-data.
422Check the requestSomething is missing or not allowed: kind, more than 50 files, a file type your account doesn’t accept, or a month or year written the wrong way.
429Too many requestsOver the per-minute limit for this key. Wait for the Retry-After seconds, then try again.
503API switched offTraCarta has paused the API for now.

Limits and keys

LimitValue
Requests per minute, per key60
Lines per page, at most1,000
Files per call50, and 100 MB in all
Before a key stops workingNo expiry, unless you set one

Over the limit you get 429 with a Retry-After header. For large pulls, use per_page=1000 and filter by financial year or dates rather than fetching everything every time.

Sandbox

Need to test first? Ask TraCarta for a sandbox account: a separate test copy with sample data, where files finish by themselves within minutes so you can try every webhook.

  • Sample data: fictional companies, GSTINs, reconciled lines, airline PDFs and reports.
  • Every webhook: files sent to a sandbox finish by themselves, so upload.processing, upload.done, report.added and data.updated all fire.
  • The same API: every endpoint, field and webhook works exactly as on the live site.

In the sandbox, engagements carry "sandbox": true, webhook calls carry account.sandbox: true, and emails start [Sandbox]. Results are sample data, not a real reconciliation. When you go live, make a new key on the live site and point your system at the live address; nothing else changes. TraCarta sets the sandbox up and shares the details with you directly.

What’s changed

New in the API, newest first.

19 Nov 2026
Sandbox accounts: sample data, and files that finish by themselves so you can test webhooks end to end.
19 Nov 2026
Engagements, sending files (travel agent report, GSTR-2B, GSTR-6A) with status, per-engagement reports, lines and a PDF ZIP, and webhooks.
16 Nov 2026
Launch on the live site: /gstins, /lines, /documents and /reports, with GSTR-2B marks (in_gstr2b and the b2 filter) and standard airline names and IATA codes from TraCarta’s airline master.