Skip to content

Offers API

Manage offers and offer applications.


Endpoints

MethodEndpoint
POST/api/v1/offers
GET/api/v1/offers
GET/api/v1/offers/
PUT/api/v1/offers/
DELETE/api/v1/offers/
POST/api/v1/offers/{offerId}/applications
GET/api/v1/offers/applications
GET/api/v1/offers/applications/
PUT/api/v1/offers/applications/{applicationId}/status

Create Offer Fields

FieldTypeRequiredDescription
offer_typestring✅ YesHotel, Flight, Package_Tour, Visa, Tour
quotaint✅ YesMinimum 1
countrystring✅ YesCountry
citystring✅ YesCity
min_peopleint✅ YesMinimum 1
max_peopleint✅ YesMinimum 1
price_per_personnumber✅ Yes>= 0
valid_untilstring✅ YesRFC3339 or 2006-01-02
descriptionstringNoDescription
image_urlstringNoImage URL
statusstringNoActive, Inactive, Suspended, Waiting
is_activebooleanNoActive flag
search_vectorstringNoSearch string
titlestringNoOffer title
flight_detailsobjectNoRequired when offer_type = Flight
hotel_detailsobjectNoRequired when offer_type = Hotel
package_tour_detailsobjectNoRequired when offer_type = Package_Tour
tour_detailsobjectNoRequired when offer_type = Tour
visa_detailsobjectNoRequired when offer_type = Visa

Update Offer Fields

All fields are optional. Same fields as Create Offer.


Offer List Filters

ParameterTypeDescription
pageintPage number
page_sizeintPage size
agency_idstringFilter by agency (admins only)
offer_typestringHotel, Flight, Package_Tour, Visa, Tour
statusstringActive, Inactive, Suspended, Waiting
is_activeboolFilter by active
citystringFilter by city
countrystringFilter by country
searchstringSearch term
valid_fromstringRFC3339 or 2006-01-02
valid_untilstringRFC3339 or 2006-01-02

Apply To Offer Fields

FieldTypeRequiredDescription
number_of_personsint✅ YesMinimum 1
contact_phonestringNoContact phone
notestringNoNote

Offer Application List Filters

ParameterTypeDescription
offer_idstringOffer ID
user_idstringUser ID
statusstringPending, Approved, Rejected, Cancelled
pageintPage number
page_sizeintPage size

Update Application Status Fields

FieldTypeRequiredDescription
statusstring✅ YesPending, Approved, Rejected, Cancelled

Unified API Documentation