Payment Links
Create payment link
Create a new payment link
post/payment_links
Request
- Base URLhttps://api.wetravel.com/v2
- URLhttps://api.wetravel.com/v2/payment_links
- Auth
- HTTP bearer
- or API key in header X-Api-Key
Query parameters
publish_immediatelyboolean
Whether to publish the payment link immediately upon creation.
Request body
Example request
{
"data": {
"trip": {
"title": "Amazing London Adventure",
"trip_id": "TRIP20",
"start_date": "2026-05-07",
"end_date": "2026-05-14",
"currency": "USD"
},
"pricing": {
"price": 800,
"payment_plan": {
"deposit": 654,
"installments": [
{
"price": 145.99,
"days_before_departure": 60
}
]
}
}
}
}Response
Successfully created
Example response
{
"data": {
"trip": {
"uuid": "12345678",
"title": "Amazing London Adventure",
"trip_id": "TRIP20",
"url": "https://example.com/trips/123456",
"defaultImageUrl": "https://example.com/trip-123.jpg",
"start_date": "2026-05-07",
"end_date": "2026-05-14",
"currency": "USD",
"participant_fees": "all"
},
"pricing": {
"price": 800,
"payment_plan": {
"deposit": 654,
"installments": [
{
"price": 145.99,
"days_before_departure": 60
}
]
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.