Sponsored
POST/listings/{id}/sponsore
Sponsored
Sponsoring single listing.
Headers
- Name
Content-Type
- Type
- string
- Description
application/json
- Name
Authorization
- Type
- string
- Description
Beare <token>
Attributes
- Name
type
- Type
- integer
- Description
Sponsoring types.
Available options: 0,1,2
- type: 0 - without sponsoring
- type: 1 - normal sponsoring
- type: 2 - premium sponsoring
- Name
days
- Type
- integer
- Description
Number of days.
Available days: 1,2,3,5,7,14,21,30
- Name
refresh_every
- Type
- integer
- Description
Automatically refresh listing every X hours.
Available options: 0,3,6,8,24
- Name
locations
- Type
- array
- Description
Available options: "homepage"
Request
{
"type": 1,
"days": 5,
"refresh_every": 3,
"locations": [
"homepage"
]
}
GET/listings/{id}/sponsore/price
Price
Get sponsoring price.
Headers
- Name
Content-Type
- Type
- string
- Description
application/json
- Name
Authorization
- Type
- string
- Description
Beare <token>
Attributes
- Name
type
- Type
- integer
- Description
Sponsoring types.
Available options: 0,1,2
- type: 0 - without sponsoring
- type: 1 - normal sponsoring
- type: 2 - premium sponsoring
- Name
days
- Type
- integer
- Description
Number of days.
Available days: 1,2,3,5,7,14,21,30
- Name
refresh_every
- Type
- integer
- Description
Automatically refresh listing every X hours.
Available options: 0,3,6,8,24
- Name
locations
- Type
- array
- Description
Available options: "homepage"
Request
{
"type": 1,
"days": 5,
"refresh_every": 3,
"locations": [
"homepage"
]
}
Response
{
"search": 50,
"refresh": 100,
"locations": 40,
"extras": 0,
"total": 190
}
POST/listings/{id}/discount
Discount
Set discount price for listing.
ALERT: This is a premium option. OLX credits will be charged as a result.
Headers
- Name
Content-Type
- Type
- string
- Description
application/json
- Name
Authorization
- Type
- string
- Description
Beare <token>
Attributes
- Name
price
- Type
- double
- Description
New listing price
- Name
days
- Type
- integer
- Description
Number of days.
Days: 3,7,30
Request
{
"price": 100,
"days": 5
}
POST/listings/{id}/discount/finish
Finish discount
Finish active listing discount.
Headers
- Name
Content-Type
- Type
- string
- Description
application/json
- Name
Authorization
- Type
- string
- Description
Beare <token>