Any POST or PUT requests must have its content-type set to application/json and the payload must be sent in the body of the request.
GET: https://www.autovit.ro/api/open/account/adverts/:adId/promotions/
Permission: read
Header
| Field | Type | Description |
|---|---|---|
| User-Agent | string | Account email. |
Example request:
GET /account/adverts/8000040812/promotions/ HTTP/1.1
User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN
Copied to clipboard
Success response:
HTTP/1.1 200 OK
{
"promotions": {
"export_olx": {
"promotion_name": "Export advert to OLX",
"promotion_id": "49",
"promotion_code": "export_olx",
"payments": {
"account": {
"payment_type": "account",
"price": 0,
"formated_price": "0 EUR"
},
"paypal": {
"payment_type": "paypal",
"price": 0,
"formated_price": "0 EUR"
},
"payshop": {
"payment_type": "payshop",
"price": 0,
"formated_price": "0 EUR"
},
"mb": {
"payment_type": "mb",
"price": 0,
"formated_price": "0 EUR"
}
}
},
}
Copied to clipboard
Error response example:
HTTP/1.1 400 Bad Request
{
"error": {
"type": "BadRequestException",
"message": "You have to provide correct ID."
}
}
Copied to clipboard