---
title: "Create or update add-on payment plan"
method: POST
path: "/draft_trips/{trip_uuid}/options/{option_id}/payment_plan"
tags: ["Payment Plans"]
---

# Create or update add-on payment plan

`POST /draft_trips/{trip_uuid}/options/{option_id}/payment_plan`

## Request

- Base URL: `https://api.wetravel.com/v2`
- URL: `https://api.wetravel.com/v2/draft_trips/{trip_uuid}/options/{option_id}/payment_plan`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`

Create new payment plan or update the existing one for the add-on

## Path parameters

- `trip_uuid` string, required
- `option_id` string, required

## Request body

- object
  - `data` CreateOptionPaymentPlan: Create PaymentPlan
    - `allow_partial_payment` boolean, required: Allow participants to make partial payments
    - `enable_auto_payment` boolean, required: Participants will automatically be auto-billed to their default payment method when each payment is due.
    - `deposit` integer: Deposit price of the add-on option
    - `installments` Installment[]
      - `price` number, double, required: Amount of the installment
      - `days_before_departure` integer, required: Defines the date on which the installment is due in relation to the trip start date. E.g. if this setting is set to “5” and the trip starts on January 15, then the installment due date will be January 10.

## Response `201`

Successfully created

- object
  - `data` PaymentPlan: PaymentPlan model
    - `allow_partial_payment` boolean: Allow participants to make partial payments
    - `enable_auto_payment` boolean: Participants will automatically be auto-billed to their default payment method when each payment is due.
    - `deposit` integer: Deposit price of the package
    - `installments` Installment[]
      - `price` number, double, required: Amount of the installment
      - `days_before_departure` integer, required: Defines the date on which the installment is due in relation to the trip start date. E.g. if this setting is set to “5” and the trip starts on January 15, then the installment due date will be January 10.

---

[API](https://skmtc.dev/wetravel/apis/trips-builder-api.md) - [All operations](https://skmtc.dev/wetravel/apis/trips-builder-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wetravel/apis/trips-builder-api/revisions/57bdbcf06273?raw)
