Partner API · v1

Rental cars in Macedonia,one API away.

Travel agencies sell our cars on their own site. Rental companies connect their fleet software. Same live availability and the exact price the customer sees on mkrent.mk.

POST /v1/bookings
curl -X POST https://api.mkrent.mk/api/v1/bookings \
  -H "Authorization: Bearer mkp_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "vehicleId": "cm…",
    "pickupDate": "2026-12-01",
    "returnDate": "2026-12-07",
    "pickupLocationId": "cm…",
    "externalRef": "ORDER-1001",
    "driver": { "firstName": "Ana", "lastName": "Petrova",
                "email": "ana@example.com", "phone": "+389 70 000 000" },
    "extras": [{ "catalogId": "cm…", "quantity": 1 }]
  }'
201 Created
{
  "id": "cm…",
  "bookingNumber": "MK-7QK2M9P",
  "externalRef": "ORDER-1001",
  "status": "PENDING",
  "pickupDate": "2026-12-01",
  "returnDate": "2026-12-07",
  "totalDays": 7,
  "totalAmount": 232,
  "depositAmount": 200,
  "currency": "EUR"
}

For travel agencies and travel sites

Search the fleet, quote with extras and book in one call. The rental company confirms; you get a webhook.

  • Live availability and blocked days
  • Weekly and monthly rates applied automatically
  • Idempotent bookings with your own reference
  • Cancel through the API

For rental companies

Keep your fleet in your own system. Push vehicles and prices, close busy days, confirm bookings — they appear on mkrent.mk in four languages.

  • Create or update a car with one PUT
  • Images copied to our CDN automatically
  • Webhook on every new booking
  • Same rules as your partner panel

How it works

  1. 01

    Get a key

    Agencies apply below. Rental companies create a key under “API” in the partner panel.

  2. 02

    Call the API

    JSON over HTTPS. Send the key as a Bearer token. Prices are in EUR.

  3. 03

    Receive webhooks

    Set a https URL and we notify you about new bookings and every status change, signed with HMAC-SHA256.

Reference

Base URL: https://api.mkrent.mk/api/v1

Authentication

Every request carries Authorization: Bearer mkp_live_… (or X-Api-Key). Keys are shown once; we store only a hash. Keep them on your server — never in a browser or mobile app.

Webhooks

Events: booking.created (rental company), booking.status_changed (agency and rental company), ping (test). Check X-Mkrent-Signature against an HMAC-SHA256 of the raw body with your webhook secret. Answer 2xx within 5 seconds.

Catalogue and bookings (agency key)

  • GET/me

    Who owns this key

  • GET/locations

    Pickup points (airports first)

  • GET/vehicles

    Bookable cars. Filters: city, category, transmission, minSeats, pickupDate+returnDate (adds a price quote and hides booked cars), page, limit

  • GET/vehicles/{id}

    Car detail with pickup points and paid extras

  • GET/vehicles/{id}/availability

    Day-by-day calendar (from, to — max 366 days)

  • POST/quotes

    Exact price for dates and extras

  • POST/bookings

    Create a booking (status PENDING until the rental company confirms)

  • GET/bookings

    Your bookings. Filters: status, updatedSince

  • GET/bookings/{ref}

    By id, booking number or your externalRef

  • POST/bookings/{ref}/cancel

    Cancel a PENDING or CONFIRMED booking

Fleet and bookings (rental company key)

  • GET/supplier/vehicles

    All your cars, including inactive

  • PUT/supplier/vehicles/{externalRef}

    Create or update a car by your own reference

  • DELETE/supplier/vehicles/{ref}

    Take a car offline (kept, not deleted)

  • PUT/supplier/vehicles/{ref}/availability

    Block or open days

  • GET/supplier/bookings

    Bookings for your cars, with customer contact

  • PATCH/supplier/bookings/{ref}/status

    CONFIRMED, ACTIVE, COMPLETED, CANCELLED or NO_SHOW

  • GET/supplier/locations

    Your pickup points

PUT /v1/supplier/vehicles/{externalRef}
curl -X PUT https://api.mkrent.mk/api/v1/supplier/vehicles/FLEET-12 \
  -H "Authorization: Bearer mkp_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "make": "Toyota", "model": "Yaris", "year": 2023,
        "category": "ECONOMY", "transmission": "AUTOMATIC",
        "fuelType": "HYBRID", "seats": 5, "doors": 5,
        "dailyRate": 38, "weeklyRate": 230, "depositAmount": 250,
        "images": ["https://example.com/yaris-front.jpg"] }'

curl -X PUT https://api.mkrent.mk/api/v1/supplier/vehicles/FLEET-12/availability \
  -H "Authorization: Bearer mkp_live_…" -H "Content-Type: application/json" \
  -d '{ "dates": ["2026-12-24", "2026-12-25"], "isAvailable": false }'
Webhook · X-Mkrent-Signature
// Node.js — verify a webhook
import crypto from 'node:crypto';

app.post('/mkrent-webhook', express.raw({ type: 'application/json' }), (req, res) => {
  const expected = 'sha256=' + crypto
    .createHmac('sha256', process.env.MKRENT_WEBHOOK_SECRET)
    .update(req.body)            // raw bytes, not re-serialised JSON
    .digest('hex');
  const got = req.get('X-Mkrent-Signature') ?? '';
  if (got.length !== expected.length ||
      !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected))) {
    return res.sendStatus(401);
  }
  const { event, data } = JSON.parse(req.body);
  // event: booking.created | booking.status_changed | ping
  res.sendStatus(200);
});

Errors

400
Invalid input — the message says which field
401
Missing, wrong or revoked key
403
Key type cannot use this endpoint
404
Not found, or not yours
409
Dates taken, day blocked or booking no longer changeable

Questions

Does the API price differ from the website?

No. Quotes and bookings use the same calculation as mkrent.mk, including weekly and monthly rates and extras.

Who confirms a booking?

The rental company that owns the car, from its panel or through the API. Until then the booking is PENDING and the dates are held.

How is the customer paid and contacted?

The default is payment at pickup. The customer receives our booking e-mails; the rental company sees the driver’s contact details.

Is there a request limit?

No fixed limit. Please cache the catalogue and use webhooks instead of polling every few seconds.

Get access

Request an agency API key

Travel agencies, tour operators and travel sites. We reply by e-mail, usually within one business day.