Sponsor listing (PAID)
sponsor_listingSponsor a listing with specified type, duration, and refresh interval. Displays total cost for user confirmation before spending credits.
Instructions
Purchase sponsorship/promotion for a listing (POST /listings/:id/sponsore). THIS SPENDS OLX CREDITS. Call get_sponsor_price first, present the total to the user, and only proceed after explicit confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Listing id | |
| days | Yes | Duration in days | |
| type | Yes | Sponsorship type: 0, 1 or 2 | |
| locations | No | Promotion locations, e.g. ["homepage"] | |
| refresh_every | Yes | Auto-refresh interval in hours (0 = none) |