Getting started
What you need before your first call, and how a request looks.
1. Two layers of authentication
| Layer | What | Where it goes | Who it identifies |
| Gateway |
Subscription key |
HTTP header Ocp-Apim-Subscription-Key |
Your software product. Issued by PetExpert per API (Claim / Policy) and per environment (test / production). |
| Clinic |
userName + password |
JSON request body |
The individual clinic. Issued by PetExpert to each clinic. Your software must store them per clinic, encrypted, and let the clinic update them. |
A missing or wrong subscription key returns HTTP 401 from the gateway.
Wrong clinic credentials return HTTP 200 with resultCode 410.
Clinic credentials are not needed for TestConnection, GetPolicyByPolicyID, GetPolicyByChipNr and the Policy API (except optionally AddNewPolicy).
Never put the subscription key or clinic passwords in client-side code, URLs or logs. Call the API from your server.
2. Environments
Pick the market in the Servers dropdown on the Claim API / Policy API page, or call POST {baseUrl}/{MethodName} with one of these base URLs.
Claim API
Czech Republic is on v3. Belgium, Slovakia and Poland are on v2 (same request bodies; only the path differs).
| Market | Test | Production | Currency | Default lang |
| Czech Republic |
https://api.petexpert.eu/cz-claim-test/v3 |
https://api.petexpert.eu/cz-claim/v3 |
CZK | cz |
| Slovakia |
https://api.petexpert.eu/sk-claim-test/v2 |
https://api.petexpert.eu/sk-claim-prod/v2 |
EUR | sk |
| Poland |
https://api.petexpert.eu/pl-claim-test/v2 |
https://api.petexpert.eu/pl-claim-prod/v2 |
PLN | pl |
| Belgium |
https://api.petexpert.eu/be-claim-test/v2 |
— |
EUR | en |
Policy API v2
| Market | Test | Production |
| Czech Republic |
https://api.petexpert.eu/cz-policy-test/v2 |
https://api.petexpert.eu/cz-policy-prod/v2 |
| Slovakia |
https://api.petexpert.eu/sk-policy-test/v2 |
https://api.petexpert.eu/sk-policy-prod/v2 |
| Poland |
https://api.petexpert.eu/pl-policy-test/v2 |
https://api.petexpert.eu/pl-policy-prod/v2 |
| Belgium |
https://api.petexpert.eu/be-policy-test/v2 |
https://api.petexpert.eu/be-policy-prod/v2 |
Ask PetExpert which markets are enabled for your subscription. Date formats in generated texts: d.m.yyyy (CZ/SK/PL), dd/mm/yyyy (BE).
3. Test data
| Item | Value |
| Test subscription key (Claim API) | <TEST_SUBSCRIPTION_KEY_CLAIM> |
| Test subscription key (Policy API) | <TEST_SUBSCRIPTION_KEY_POLICY> |
| Test clinic login | <TEST_CLINIC_LOGIN> / <TEST_CLINIC_PASSWORD> |
| Test policy (active, with vet benefit) | <TEST_POLICY_NUMBER> |
Test claims are settled automatically like production claims, but nothing is paid. You can cancel your test incidents with CancelIncident.
4. Required fields
In the API reference, required properties are marked with a red required label next to the field name.
Missing or empty required fields return HTTP 200 with resultCode 400.
Always send every call as JSON with the Ocp-Apim-Subscription-Key header.
On every Claim API call (except TestConnection)
| Field | Required | Notes |
swName, swVersion, lang | Yes | Identify your software and the response language. |
userName, password | Yes on clinic methods | Not needed for TestConnection, GetPolicyByPolicyID, GetPolicyByChipNr. |
Main Claim methods
| Method | Required body fields |
GetAccount | userName, password, swName, swVersion, lang |
GetActivePolicy / GetCurrentBalance / GetOpenClaims | Clinic fields + policyNumber (10 digits) |
GetPolicyByChipNr | chipNr (no clinic login) |
AddNewClaim | Clinic fields + policyNumber, claimName, causeType, description, incident (with at least one cost item) |
AddNewIncident | Clinic fields + claimNumber, incident (with items and clinicalSignsFrom) |
GetIncidentStatus / ConfirmIncident / CancelIncident | Clinic fields + incidentNumber |
| Each cost item | name, code (may be empty / NCD), type, amount |
On every Policy API call
| Field | Required | Notes |
appid, appVersion, lang | Yes | Identify your software. affilName is recommended. |
Main Policy methods
| Method | Required body fields |
GetProducts | animaltype, breedid, age |
AddNewPolicy | policy, animal (name, type, chipnr, dob), customer (email, fname, lname, phone) |
AddNewPolicy standard (type: st) | Also policy.productcode and policy.price |
AddNewPolicy express (type: ex) | Do not send productcode or price; type must be ex |
GetPolicyStatus | policy.pno (policy number) |
5. Your first calls
Check connectivity
curl -X POST "https://api.petexpert.eu/cz-claim-test/v3/TestConnection" \
-H "Ocp-Apim-Subscription-Key: <TEST_SUBSCRIPTION_KEY_CLAIM>" \
-H "Content-Type: application/json" \
-d "{}"
Check the clinic credentials
curl -X POST "https://api.petexpert.eu/cz-claim-test/v3/GetAccount" \
-H "Ocp-Apim-Subscription-Key: <TEST_SUBSCRIPTION_KEY_CLAIM>" \
-H "Content-Type: application/json" \
-d '{
"userName": "<TEST_CLINIC_LOGIN>",
"password": "<TEST_CLINIC_PASSWORD>",
"swName": "YourSoftware",
"swVersion": "1.0.0",
"lang": "en"
}'
Check a policy
curl -X POST "https://api.petexpert.eu/cz-claim-test/v3/GetActivePolicy" \
-H "Ocp-Apim-Subscription-Key: <TEST_SUBSCRIPTION_KEY_CLAIM>" \
-H "Content-Type: application/json" \
-d '{
"userName": "<TEST_CLINIC_LOGIN>",
"password": "<TEST_CLINIC_PASSWORD>",
"swName": "YourSoftware",
"swVersion": "1.0.0",
"lang": "en",
"policyNumber": "<TEST_POLICY_NUMBER>"
}'
6. Request and response conventions
- Every method is
POST with a JSON body in UTF-8. Send swName, swVersion and lang on every call.
- HTTP
200 is returned for both success and business errors. Always read resultCode: 100 means success. See result codes.
- Fields are case-sensitive. Use exactly the names in the reference (for example
policyNumber, not policyNr).
- Send numbers as JSON numbers (
1250.5), not strings, and booleans as true/false.
- Dates: send
yyyy-MM-dd. Responses use yyyy-MM-dd. Server time is UTC.
- Every response contains
trace. Log it with your request and quote it to PetExpert support.
- Unknown fields are ignored, so it is safe to send extra fields, but they have no effect.
7. Timeouts and rate limits
- The server processes a request for up to 120 seconds. Set your HTTP client timeout to at least 120 seconds for
AddNewClaim and AddNewIncident.
- A synchronous claim submission waits about 5 seconds for automatic settlement and usually completes in 8-20 seconds. Read and status methods usually answer within 1-3 seconds.
- Use
"async": true on AddNewClaim / AddNewIncident if your software cannot wait. The call returns immediately and you poll GetIncidentStatus.
- Gateway rate limits: <RATE_LIMITS>. When exceeded you receive HTTP
429 with a Retry-After header. Poll status no more often than every 10 seconds per incident.
8. Going to production
- Complete testing on the test environment: a confirmed claim, a claim that goes to manual review, a follow-up incident, and a cancellation.
- Request production access from PetExpert: <ONBOARDING_PROCESS_AND_CONTACT>.
- PetExpert issues a production subscription key for your software and confirms the production base URL.
- Each clinic receives its own production login and password from PetExpert (<CLINIC_CREDENTIAL_PROCESS>) and enters it in your software.