Discounts
Get discount
Get Discount
get/draft_trips/{trip_uuid}/discounts/{id}
Request
- Base URLhttps://api.wetravel.com/v2
- URLhttps://api.wetravel.com/v2/draft_trips/{trip_uuid}/discounts/{id}
- Auth
- HTTP bearer
- or API key in header X-Api-Key
Path parameters
trip_uuidstring required
idstring required
ID of the discount
Response
Get Discount
Example response
{
"data": {
"id": "2510177931054358528",
"name": "TRIPDISCOUNT",
"amount": 40,
"quantity": 10,
"discount_type": "percentage",
"duration": {
"duration_reference": "absolute",
"start_date": "2025-08-01",
"end_date": "2025-08-15",
"start_offset_days": 30,
"end_offset_days": 20
},
"created_at": 1445443
}
}Changes
No recorded changes to this operation across all 1 revision of this API.