Getting started

What you need before your first call, and how a request looks.

1. Two layers of authentication

LayerWhatWhere it goesWho 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).

MarketTestProductionCurrencyDefault lang
Czech Republic https://api.petexpert.eu/cz-claim-test/v3 https://api.petexpert.eu/cz-claim/v3 CZKcz
Slovakia https://api.petexpert.eu/sk-claim-test/v2 https://api.petexpert.eu/sk-claim-prod/v2 EURsk
Poland https://api.petexpert.eu/pl-claim-test/v2 https://api.petexpert.eu/pl-claim-prod/v2 PLNpl
Belgium https://api.petexpert.eu/be-claim-test/v2 — EURen

Policy API v2

MarketTestProduction
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

ItemValue
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)

FieldRequiredNotes
swName, swVersion, langYesIdentify your software and the response language.
userName, passwordYes on clinic methodsNot needed for TestConnection, GetPolicyByPolicyID, GetPolicyByChipNr.

Main Claim methods

MethodRequired body fields
GetAccountuserName, password, swName, swVersion, lang
GetActivePolicy / GetCurrentBalance / GetOpenClaimsClinic fields + policyNumber (10 digits)
GetPolicyByChipNrchipNr (no clinic login)
AddNewClaimClinic fields + policyNumber, claimName, causeType, description, incident (with at least one cost item)
AddNewIncidentClinic fields + claimNumber, incident (with items and clinicalSignsFrom)
GetIncidentStatus / ConfirmIncident / CancelIncidentClinic fields + incidentNumber
Each cost itemname, code (may be empty / NCD), type, amount

On every Policy API call

FieldRequiredNotes
appid, appVersion, langYesIdentify your software. affilName is recommended.

Main Policy methods

MethodRequired body fields
GetProductsanimaltype, breedid, age
AddNewPolicypolicy, 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
GetPolicyStatuspolicy.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

7. Timeouts and rate limits

8. Going to production

  1. Complete testing on the test environment: a confirmed claim, a claim that goes to manual review, a follow-up incident, and a cancellation.
  2. Request production access from PetExpert: <ONBOARDING_PROCESS_AND_CONTACT>.
  3. PetExpert issues a production subscription key for your software and confirms the production base URL.
  4. Each clinic receives its own production login and password from PetExpert (<CLINIC_CREDENTIAL_PROCESS>) and enters it in your software.