Skip to main content

Prerequisites

An API secret with the write:listings scope (contact info@okasie.be)
At least one dealer linked to your key by Okasie, and its Dealer ID, for example OK-00148 (see Dealer access)

Step 1: Check your key and dealers

A 200 response with the dealer in data (its Dealer ID in locationCode) means you are ready. An empty data array means no dealer is linked to your key yet; 401 means the secret is wrong.

Step 2: Publish a car

Choose your own reference for the car (here DV-123456) and PUT it. title, the dealer, postalCode and city are always required; price is required for an active car.
The response is HTTP 200:
listingUrl is the car’s public page. If a photo could not be downloaded, warnings.skippedImages says which and why.

Step 3: Update it

Send the same PUT again with the complete car and the changed values. Fields you leave out are cleared, except images and features, which stay when you leave them out. The response now has "created": false.

Step 4: Take it offline

When the car is sold or withdrawn:
The listing is marked sold and goes offline about an hour later (60 to 75 minutes).

Next steps

All fields

Every field with its format and allowed values

Error Handling

Every error code

Bulk Operations

Up to 100 cars per request

Incremental Sync

Keeping Okasie in line with your stock