Code lists and field rules
All codes used by the Claim API v3 and Policy API v2.
Contents:
Result codes ·
Settlement status ·
Cause type ·
Item type ·
Identifiers ·
Mandatory fields ·
Field lengths ·
Response-only labels ·
Languages and markets ·
Policy API codes
Claim API result codes (resultCode)
Returned with HTTP 200. The text in resultText is localized according to lang.
| Code | Meaning | What to do |
100 | Success | Continue. |
400 | Mandatory data missing or in the wrong format | Fix the request. Do not retry unchanged. |
410 | Clinic authentication failed | Ask the clinic to update its PetExpert login. |
420 | Object not found or not in an allowed state (policy, vet benefit, claim, incident, settlement) | Show resultText to the user. |
510 | Record could not be created | Check GetOpenClaims for a partly created claim before retrying. |
520 | Record could not be updated | Retry later or contact support. |
999 | Unknown error, or the settlement could not be read after creation | Check GetOpenClaims / GetIncidentStatus before resubmitting. |
Gateway errors use HTTP status codes instead: 401 (subscription key), 429 (rate limit), 5xx.
Settlement status (statusCode)
| Code | Label (en) | Meaning | covered | Book insurance payment? | CancelIncident |
1 | New | Created, not yet evaluated | provisional | No - poll again | allowed |
856900000 | Processing | Under manual review by PetExpert | 0 | No - poll again | allowed |
856900001 | Confirmed | Approved, will be paid | payable amount | Yes | allowed |
856900003 | Paid | Payment sent | paid amount | Yes | refused (420) |
856900002 | Canceled/Rejected | Not covered | 0 | No | refused (420) |
856900004 | Canceled/Rejected | Cancelled | 0 | No | refused (420) |
2 | Inactive | Settlement deactivated | 0 | No | refused (420) |
999 | - | Asynchronous submission accepted; result not available yet | 0 | No - poll GetIncidentStatus | - |
Cause type (causeType)
| Value | Meaning |
1 | Illness |
2 | Accident / injury |
Any value other than 1 is treated as accident / injury. The claim type is set by PetExpert and is not an input (there is no claimType field in v2).
Cost item type (items[].type)
| Value | Meaning | Examples |
1 | Material | Bandages, implants, consumables |
2 | Treatment | Examination, surgery, anaesthesia, hospitalisation |
3 | Other services | Laboratory, imaging, external services |
4 | Medication | Drugs, vaccines, injections |
5 | Food | Diet and food (usually not covered) |
6 | Administration | Fees, reports, certificates |
7 | Other | Anything else |
Send items that are known not to be insured with exclude: true. They are stored but not settled.
Identifiers
| Field | Format | Example | Source |
policyNumber | 10 digits, sent as a string | 1234250115 | Policy document |
claimNumber / claimNr | CL + 10 digits (12 characters) | CL9025123456 | AddNewClaim |
incidentNumber / incidentNr | IN + 10 digits (12 characters) | IN9512345678 | AddNewClaim, AddNewIncident |
partnerID | Provider code | VET00123 | GetAccount (derived from the clinic login) |
sid, policyId | GUID | 6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b | Responses |
trace | 32 hex characters | 3f2b9c1e8a7d4b6f9e0a1c2d3e4f5a6b | Every response |
Mandatory fields
All clinic methods also need userName and password. Send swName, swVersion and lang on every call.
| Method | Mandatory | Optional |
AddNewClaim |
policyNumber, claimName, causeType, description, incident.clinicalSignsFrom (key present, not null), incident.items[] (at least one) with name, code, type, amount |
async, incident.medicalReport, incident.comment, incident.visitDate, incident.preauthorization, incident.externalid, item quantity, unitPrice, exclude, itemNote, mdb |
AddNewIncident |
claimNumber (12 characters), incident.clinicalSignsFrom (key present, not null), incident.items[] as above |
async, incident.incidentName, incident.medicalReport, incident.visitDate, incident.preauthorization, incident.externalid |
GetIncidentStatus, GetIncidentDetail, CancelIncident | incidentNumber | - |
ConfirmIncident | incidentNumber | holdPayment |
UpdateDayreport | incidentNumber, dayReport | - |
GetActivePolicy, GetCurrentBalance, GetOpenClaims | policyNumber | - |
GetClaim | claimNr | - |
GetIncidentList | partnerId (from GetAccount, not empty or 0) | - |
GetPolicyByPolicyID | policyId (no clinic login) | - |
Field lengths
| Field (legacy name) | Maximum | Behaviour when longer |
claimName | 200 characters | Truncated |
description (detail, causeDescription) | 10,000 characters | Truncated |
incident.medicalReport / incident.comment (incidentDetail) | 10,000 characters | Truncated |
incident.incidentName (AddNewIncident) | 200 characters | Truncated |
items[].name (itemName) | <ITEM_NAME_MAX_LENGTH> - keep to 200 | Not truncated by the API; may fail when stored |
items[].code (itemCode) | <ITEM_CODE_MAX_LENGTH> - keep to 100 | Not truncated by the API |
items[].itemNote (itemNote) | <ITEM_NOTE_MAX_LENGTH> - keep to 2,000 | Not truncated by the API |
Response-only labels
These fields are returned by GetIncidentDetail as localized text. They are not inputs and their wording can change with lang; do not parse them.
| Field | Meaning |
incidentCause | Incident reason label set by PetExpert. |
documentType | Source of the incident. Incidents created through the API have the type VetNet. |
incidentStatus | Incident processing status label (for example New, Settled). |
incidentState | Active / Inactive. Cancelled incidents are inactive. |
lastIncident | Boolean: the incident closes the claim. Always false for incidents created through the API. |
separateSettlement | Boolean: the incident has its own settlement. true for incidents created through the API. |
Languages and markets
lang | Language |
cz | Czech |
sk | Slovak |
pl | Polish |
en | English |
jp | Japanese |
| Market | Path segment | Currency |
| Czech Republic | cz | CZK |
| Slovakia | sk | EUR |
| Poland | pl | PLN |
| Belgium | be | EUR |
Policy API codes
Policy type (policy.type)
| Value | Meaning |
st | Standard - waits for payment via paylink. Default when type is omitted. |
ex | Express - issued by a vet clinic, activated by the customer. Must be sent explicitly. See Express policy. |
vt | Standby - activated later by the customer via a link |
ex2 | Express follow-up |
bc | Breeder |
tr | Travel |
Animal type and sex
| Field | Value | Meaning | Accepted aliases |
animal.type | d / 856900000 | Dog | Pes |
animal.type | c / 856900001 | Cat | Kočka, Mačka |
animal.sex | 856900000 | Female dog | Fena, Suka |
animal.sex | 856900001 | Female cat | Kočka, Mačka |
animal.sex | 856900002 | Male dog | Pes |
animal.sex | 856900003 | Male cat | Kocour, Kocúr |
Policy status (GetPolicyStatus.status)
| Value | Meaning |
0 | Waiting for payment |
1 | Active |
9 | Not found |
20 | Not activated - offer cancelled |
21 | Terminated on customer request |
22 | Terminated by insurer |
23 | Not renewed |
99 | Other state, including an express policy not yet activated by the customer |
Products and pricing
GetProducts errors: errorcode 1 breed not found or inactive, 2 age exceeds the breed's age limit.
GetNewPriceIndex: index 999 means the animal is over the breed's age limit and cannot be insured.
GetNewPriceMatrix keys: {D|C}-{product 0-3}-{excess 10|20|30|40}-{minimum 1000|2000|3000|4000}; products 0 Start, 1 Basic, 2 Premium, 3 Exclusive.
- Breeds can be referenced by the
id from GetBreeds (recommended), the breed GUID, or the exact breed name.