Claim workflow
From a vet invoice to a booked insurance payment.
Concepts
| Object | Meaning | Identifier |
| Claim | One insured event, for example one illness or one accident. Can contain several visits. | claimNumber, 12 characters, for example CL9025123456 |
| Incident | One vet visit / one invoice within a claim, with its cost items. | incidentNumber, 12 characters, for example IN9512345678 |
| Cost item | One invoice line: name, code, category (type) and line total (amount). | - |
| Settlement | PetExpert's decision on an incident: claimed amount, covered amount and status. | sid |
Required fields for a claim
| Level | Required |
| Every clinic call | userName, password, swName, swVersion, lang |
AddNewClaim | policyNumber, claimName, causeType (1 illness / 2 accident), description, incident.items (at least one line) |
AddNewIncident | claimNumber, incident.items, incident.clinicalSignsFrom (date or "") |
| Each cost item | name, 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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
| Field | Use |
claimed | Sum of the submitted amount values. Should equal the insured part of your invoice. |
covered | Amount PetExpert pays. Book it as an insurance payment only for Confirmed / Paid. Already reduced by the policy excess and limits. |
currency | Market currency (CZK, EUR, PLN). It is not chosen by the client. |
directPay | true: PetExpert pays the clinic. false: PetExpert pays the policy holder, so the clinic should not deduct covered from the customer's invoice. |
paymentHold | true: payment is on hold (for example simulated incident confirmed with holdPayment). |
preauthorization | true: simulated incident (estimate). Do not book until ConfirmIncident. |
Synchronous vs. asynchronous submission
| Synchronous (async omitted / false) | Asynchronous (async: true) |
| Response time | Usually 8-20 s, up to 120 s | About 1-3 s |
| Response | Final settlement (or Processing) | statusCode 999, covered 0, claim and incident numbers already assigned |
| Next step | Book or poll if Processing | Poll GetIncidentStatus every 10-30 s until statusCode is not 999 / 856900000 |
| Best for | Clinic counter, customer waiting | Batch 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.
- Store
claimNumber and incidentNumber on the invoice as soon as you receive them. Never submit an invoice that already has an incident number.
- After a timeout, network error, HTTP 5xx,
resultCode 510 or 999: do not resubmit straight away. Call GetOpenClaims for the policy and GetIncidentList, look for a claim created at that time with the same amount, and continue with it.
- If a duplicate was created, cancel it with
CancelIncident.
Error handling
| Situation | Action |
| HTTP 401 | Subscription key missing/invalid. Configuration error in your software. |
| HTTP 429 | Wait Retry-After seconds. |
| HTTP 5xx / timeout | Check for duplicates (above) before retrying a submission. Read-only calls can be retried. |
400 | Fix the request (mandatory field missing, wrong number length, null where not allowed). |
410 | Ask the clinic to update its PetExpert login. |
420 | Show resultText (policy/claim/incident not found, no active vet benefit, or action not allowed in the current state). |
510 / 999 | Records may be partly created. Check GetOpenClaims, then contact support with trace. |
Body contains only trace | Update failed (CancelIncident, UpdateDayreport). Retry later. |