Skip to main content
GET
/
api
/
external
/
v1
/
locations
/
{id}
/
listings
curl -X GET "https://www.okasie.be/api/external/v1/locations/7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f/listings?status=active&includeChildren=true" \
  -H "Authorization: Bearer YOUR_API_SECRET"
{
  "data": [
    {
      "id": "46c7f6c9-70f7-4f98-8c32-12f1a67c6f2e",
      "title": "Opel Corsa 1.2 Turbo",
      "status": "active",
      "price": 19995,
      "brand": "Opel",
      "model": "Corsa",
      "dealer": {
        "id": "7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f",
        "locationCode": "DEX-GENT",
        "displayName": "DEX Gent"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 50,
    "totalItems": 45,
    "totalPages": 1
  },
  "meta": {
    "partner": {
      "id": "partner-id"
    }
  }
}

Get Location Listings

Retrieve all listings for a specific dealer location. Supports the same filters as the main listings endpoint.

Path Parameters

id
string
required
Location profile UUID

Query Parameters

includeChildren
boolean
default:"false"
Include listings from child locations
page
integer
default:"1"
Page number (1-based)
pageSize
integer
default:"50"
Number of items per page (max 200)
status
string
default:"active"
Filter by listing status: active, pending, sold, draft, or all
updatedSince
string
ISO 8601 datetime for incremental sync

Response

Same response format as List Listings.
curl -X GET "https://www.okasie.be/api/external/v1/locations/7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f/listings?status=active&includeChildren=true" \
  -H "Authorization: Bearer YOUR_API_SECRET"
{
  "data": [
    {
      "id": "46c7f6c9-70f7-4f98-8c32-12f1a67c6f2e",
      "title": "Opel Corsa 1.2 Turbo",
      "status": "active",
      "price": 19995,
      "brand": "Opel",
      "model": "Corsa",
      "dealer": {
        "id": "7f7f7f7f-7f7f-407f-a7f7-7f7f7f7f7f7f",
        "locationCode": "DEX-GENT",
        "displayName": "DEX Gent"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 50,
    "totalItems": 45,
    "totalPages": 1
  },
  "meta": {
    "partner": {
      "id": "partner-id"
    }
  }
}

Error Responses

StatusCodeDescription
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDLocation not found or no access