One seller
GET
/v1/market/sellers/{seller_id}
const url = 'https://api.avtopodatki.si/v1/market/sellers/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.avtopodatki.si/v1/market/sellers/1 \ --header 'Authorization: Bearer <token>'One seller with contact details and opening hours.
Opening hours are minutes after midnight; 0/0 means closed that day.
Requires the market.read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”seller_id
required
Seller Id
Seller id.
integer
Seller id.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SellerOut
object
id
required
Id
integer
site_id
required
Site Id
integer
seller_type
required
SellerType
Who placed a listing: a business or a private person.
UNKNOWN is the source not saying, an exception to the module’s rule
that “not stated” is no value: a seller is always stored with a type, so
the column is never NULL.
string
first_seen_at
required
First Seen At
string format: date-time
last_seen_at
required
Last Seen At
string format: date-time
phones
opening_hours
Opening Hours
Array<object>
SellerOpeningHourOutobject
day
required
Day
string
open_from
required
Open From
Minutes after midnight; 0/0 means closed.
integer
open_to
required
Open To
integer
Example
{ "seller_type": "company"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}