Payment Plans
Create or update add-on payment plan
Create new payment plan or update the existing one for the add-on
post/draft_trips/{trip_uuid}/options/{option_id}/payment_plan
Request
- Base URLhttps://api.wetravel.com/v2
- URLhttps://api.wetravel.com/v2/draft_trips/{trip_uuid}/options/{option_id}/payment_plan
- Auth
- HTTP bearer
- or API key in header X-Api-Key
Path parameters
trip_uuidstring required
option_idstring required
ID of the add-on
Request body
Example request
{
"data": {
"allow_partial_payment": true,
"enable_auto_payment": true,
"deposit": 150,
"installments": [
{
"price": 145.99,
"days_before_departure": 60
}
]
}
}Response
Successfully created
Example response
{
"data": {
"allow_partial_payment": true,
"enable_auto_payment": true,
"deposit": 150,
"installments": [
{
"price": 145.99,
"days_before_departure": 60
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.