Claim workflow

From a vet invoice to a booked insurance payment.

Concepts

ObjectMeaningIdentifier
ClaimOne insured event, for example one illness or one accident. Can contain several visits.claimNumber, 12 characters, for example CL9025123456
IncidentOne vet visit / one invoice within a claim, with its cost items.incidentNumber, 12 characters, for example IN9512345678
Cost itemOne invoice line: name, code, category (type) and line total (amount).-
SettlementPetExpert's decision on an incident: claimed amount, covered amount and status.sid

Required fields for a claim

LevelRequired
Every clinic calluserName, password, swName, swVersion, lang
AddNewClaimpolicyNumber, claimName, causeType (1 illness / 2 accident), description, incident.items (at least one line)
AddNewIncidentclaimNumber, incident.items, incident.clinicalSignsFrom (date or "")
Each cost itemname, code (empty or NCD allowed), type (1–7), amount (line total as a number)

Optional but useful: incident.medicalReport, incident.visitDate, incident.preauthorization, incident.externalid, item quantity / unitPrice. Full detail: Getting started — Required fields.

Recommended integration

  1. Clinic setup (once). The clinic enters its PetExpert login and password in your software. Call GetAccount to verify them, then store them encrypted together with the returned partnerID.
  2. Identify the policy. Read the policy number from the customer's policy document (10 digits) and store it on the animal record. Call GetActivePolicy: continue only if status is Active (localized). Show balance (remaining limit), dateQualifying and policyNote to the vet.
  3. New event or follow-up? For a new illness or accident, use AddNewClaim. For a follow-up visit of the same event, use AddNewIncident with the stored claimNumber. GetOpenClaims lists the policy's open claims.
  4. Submit the invoice. Map each invoice line to a cost item (name, code, type, amount, optionally quantity and unitPrice). Store the returned claimNumber and incidentNumber on the invoice immediately.
  5. Read the result.
    • resultCode not 100: show resultText; nothing to book.
    • statusCode 856900001 (Confirmed) or 856900003 (Paid): book covered as an insurance payment on the invoice. The customer pays claimed - covered.
    • statusCode 856900000 (Processing) or 999 (async): the customer pays in full or you hold the invoice open; poll GetIncidentStatus later.
    • statusCode 856900002 / 856900004 (Rejected / Cancelled): covered is 0; the customer pays in full.
  6. Corrections. If the invoice is cancelled or was sent by mistake, call CancelIncident (allowed while New, Processing or Confirmed; not once Paid) and reverse the insurance payment. Then submit the corrected invoice as a new incident.

Booking the covered amount

FieldUse
claimedSum of the submitted amount values. Should equal the insured part of your invoice.
coveredAmount PetExpert pays. Book it as an insurance payment only for Confirmed / Paid. Already reduced by the policy excess and limits.
currencyMarket currency (CZK, EUR, PLN). It is not chosen by the client.
directPaytrue: PetExpert pays the clinic. false: PetExpert pays the policy holder, so the clinic should not deduct covered from the customer's invoice.
paymentHoldtrue: payment is on hold (for example simulated incident confirmed with holdPayment).
preauthorizationtrue: simulated incident (estimate). Do not book until ConfirmIncident.

Synchronous vs. asynchronous submission

Synchronous (async omitted / false)Asynchronous (async: true)
Response timeUsually 8-20 s, up to 120 sAbout 1-3 s
ResponseFinal settlement (or Processing)statusCode 999, covered 0, claim and incident numbers already assigned
Next stepBook or poll if ProcessingPoll GetIncidentStatus every 10-30 s until statusCode is not 999 / 856900000
Best forClinic counter, customer waitingBatch submission, software that cannot block

Simulated incidents (cost estimates)

Send incident.preauthorization: true to get a settlement for a planned treatment without triggering payment. When the treatment is done, call ConfirmIncident with the incident number (optionally holdPayment: true while the final invoice is pending). If the final invoice differs, cancel the simulated incident with CancelIncident and submit the final invoice with AddNewIncident.

Avoiding duplicate claims

PetExpert does not detect duplicate submissions. Each AddNewClaim / AddNewIncident call creates new records, even for an identical invoice.

Error handling

SituationAction
HTTP 401Subscription key missing/invalid. Configuration error in your software.
HTTP 429Wait Retry-After seconds.
HTTP 5xx / timeoutCheck for duplicates (above) before retrying a submission. Read-only calls can be retried.
400Fix the request (mandatory field missing, wrong number length, null where not allowed).
410Ask the clinic to update its PetExpert login.
420Show resultText (policy/claim/incident not found, no active vet benefit, or action not allowed in the current state).
510 / 999Records may be partly created. Check GetOpenClaims, then contact support with trace.
Body contains only traceUpdate failed (CancelIncident, UpdateDayreport). Retry later.