ClarionbySign in
Clarion guides

Clarion API for travel management companies

API guide for IT teams

Connect your systems to Clarion: send each client’s files to TraCarta, then pull their reconciled lines, airline PDFs and reports, your client list and usage. REST and JSON, with signed webhooks.

Download PDFProduct guideUpdated 1 December 2026
Contents
  1. 1Introduction
  2. 2Quick start
  3. 3Authentication and keys
  4. 4For travel management companies
  5. 5Your clients and usage
  6. 6Engagements
  7. 7Sending files
  8. 8Companies and GSTINs
  9. 9Reconciled lines
  10. 10Airline PDFs
  11. 11Reconciliation reports
  12. 12Webhooks
  13. 13Errors and limits
  14. 14Sandbox
  15. 15What’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: one client and one financial year of work. So each call works on one client at a time, and one client’s data never appears under another.

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.
Clients and usageYour client list with its figures, and documents delivered per client per month.
WebhooksA call to your system the moment something changes.
Base URL
https://clarion.tracarta.com/api/v1

Using Clarion rather than code? Read the product guide for TMCs.

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 /clients to see your clients, then use each client’s engagement to send files or fetch reports, lines and PDFs.
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.
  • A key made by a TMC Admin sees every client. A key made by a Team Member sees only the clients given to them, and stops seeing a client the moment that access is removed.
Every request
Authorization: Bearer clr_live_8f2a…
Without a valid key: 401
{
  "error": "This key isn't valid or has been turned off."
}

For travel management companies

A TMC works for many clients, so every engagement belongs to one client and one year. The API follows the same path as Clarion: clients, then the client’s engagement, then its files, lines, PDFs and reports.

  • GET /clients lists your clients with the figures from My Clients, and the engagement that opens by default.
  • GET /engagements?client=<id> lists every year for one client, active and completed.
  • Use that engagement’s id everywhere else: send files to it, and fetch its uploads, lines, reports and PDFs.
  • GET /usage?fy=2026-27 gives the airline documents delivered per client per month, for your own billing.
  • Reports and GSTR-2B marks are there only for clients where TraCarta does the reconciliation (reconciliation: true). For the others you get data and airline PDFs.
  • Webhooks carry the engagement with its client, so one address can serve every client.
Every client, its year, and usage (Python)
import os, requests

API = "https://clarion.tracarta.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['CLARION_KEY']}"}

# 1. Your clients and their figures
clients = requests.get(f"{API}/clients", headers=H).json()
for c in clients["clients"]:
    e = c["engagement"]  # active year
    if not e:
        continue
    # 2. That client's lines for the year
    r = requests.get(f"{API}/lines", headers=H,
                     params={"engagement": e["id"], "per_page": 1000})
    print(c["name"], r.json()["total"])

# 3. Usage, for your own billing
u = requests.get(f"{API}/usage", headers=H, params={"fy": "2026-27"}).json()
for c in u["clients"]:
    print(c["name"], c["total"])

Your clients and usage

Two calls only travel management companies have: your client list with its figures, and the documents delivered per client per month.

GET/api/v1/clients

Your clients (TMCs)

Travel management companies only. Every client the key can see, with the same figures as the All clients page: the engagement that opens by default, files with TraCarta, airline invoices delivered this month and in the engagement, lines still waiting for an airline document, lines not in GSTR-2B, and alerts.

  • Keys of a TMC's team members see only the clients assigned to that person.
  • invoices_delivered counts airline invoices, credit notes and debit notes by the day TraCarta delivered them. A document linked to several lines counts once.
  • needs_attention is true when lines aren't in GSTR-2B, or the client has no active engagement.
  • Full-service accounts get 403: use /engagements.

Query parameters

attentiontrue
Only clients that need attention.
curl "https://clarion.tracarta.com/api/v1/clients?attention=true" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "total": 1,
  "month": "2026-11",
  "clients": [
    {
      "id": "c41b…",
      "name": "Lotus Pharma Ltd",
      "reconciliation": true,
      "gstins": 2,
      "engagement": {
        "id": "8a41c2d0-…",
        "name": "Airline GST Reconciliation",
        "financial_year": "2026-27",
        "status": "active"
      },
      "active_engagements": 1,
      "files_with_tracarta": 1,
      "invoices_delivered": {
        "this_month": 18,
        "in_engagement": 60
      },
      "lines": 65,
      "waiting_for_airline": 5,
      "not_in_gstr2b": 4,
      "needs_attention": true,
      "alerts": [
        "4 not in GSTR-2B",
        "4 new invoices"
      ],
      "last_activity": "2026-11-22T10:12:00.000Z",
      "links": {
        "engagements": "https://clarion.tracarta.com/api/v1/engagements?client=c41b…"
      }
    }
  ]
}
GET/api/v1/usage

Usage (TMCs)

Travel management companies only. Airline documents TraCarta delivered for each client, month by month, split into invoices, credit notes and debit notes. The same figures as "Download usage" on the All clients page, ready for your own billing.

  • Months run April to March. Months with nothing delivered show zeros.
  • Keys of a TMC's team members see only their clients.

Query parameters

fytext
Financial year. Leave out for the current one. For example 2026-27
curl "https://clarion.tracarta.com/api/v1/usage?fy=2026-27" \
  -H "Authorization: Bearer $CLARION_KEY"
200 OKResponse
{
  "financial_year": "2026-27",
  "months": [
    "2026-04",
    "2026-05",
    "…",
    "2027-03"
  ],
  "total": 93,
  "clients": [
    {
      "id": "c41b…",
      "name": "Lotus Pharma Ltd",
      "total": 60,
      "months": {
        "2026-10": {
          "invoices": 31,
          "credit_notes": 3,
          "debit_notes": 0,
          "total": 34
        },
        "2026-11": {
          "invoices": 17,
          "credit_notes": 1,
          "debit_notes": 0,
          "total": 18
        }
      }
    }
  ]
}

Engagements

Each client’s years of work. Pick the engagement to work on one client.

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.

  • Travel management companies: each engagement belongs to one of your clients (see client), so pick the engagement to work on one client.
  • Any valid key can list engagements.

Query parameters

clienttext
Travel management companies: only this client's engagements (the client id from this list or /gstins).
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

Every client company and GSTIN the key can see.

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.

  • Travel management companies: each engagement belongs to one of your clients (see client), so pick the engagement to work on one client.

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 with its client, 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": "9b2e…",
    "name": "Meridian Travels"
  },
  "engagement": {
    "id": "8a41c2d0-…",
    "name": "Airline GST Reconciliation",
    "financial_year": "2026-27",
    "status": "active",
    "client": {
      "id": "c41b…",
      "name": "Lotus Pharma Ltd"
    }
  },
  "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.

23 Nov 2026
For travel management companies: GET /clients (every client with files with TraCarta, invoices delivered, lines waiting for an airline document, GSTR-2B gaps and alerts) and GET /usage (documents delivered per client per month, by type).
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 (one per client and year), 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.