By following the recommended export process and staying proactive in monitoring your listings, you can ensure that your ads listed via API on Autovit.ro are visible on OLX.ro, reaching a broader audience of potential buyers.
POST: https://www.autovit.ro/api/open/account/adverts/:adId/promotions/
Permission: write
Header
| Field | Type | Description |
|---|---|---|
| User-Agent | string | Account email. |
Parameter
| Field | Type | Description |
|---|---|---|
| payment_type | String | Payment type |
| promotion_ids | Array | An array with the ID of each promotion tool to use on this advert |
Request example:
POST /account/adverts/8000040812/promotions/ HTTP/1.1
{
"payment_type": "account",
"promotion_ids": [49]
}
User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN
Copied to clipboard
Success response:
HTTP/1.1 200 OK
{
message": "The promotion has been add to queue, waiting to activation"
}
Copied to clipboard
Error response example:
HTTP/1.1 400 Bad Request
{
"error": {
"type": "BadRequestException",
"message": "Error payment1",
"error_human_title": "Error payment",
"error_human_message": "Invalid:"
}
}
Copied to clipboard