v1
latestOpenAPI 3.0.12026-07-247756110.6 KBPayment Plans
Create or update package payment plan
Create new payment plan or update the existing one for the package
post/draft_trips/{trip_uuid}/packages/{package_id}/payment_plan
Path parameters
trip_uuidstring required
package_idstring required
ID of the package
Request body
Example request
{
"data": {
"allow_partial_payment": true,
"enable_auto_payment": true,
"deposit": 150,
"installments": [
{
"type": "installment",
"total": 5000,
"previous_payment": 5000,
"paid": true,
"date": "2021-06-25T00:00:00.000Z"
}
]
}
}Response
Successfully created
Example response
{
"data": {
"installments": [
{
"amount": 100000,
"type": "installment",
"days_before_departure": 60
}
],
"allow_partial_payment": true,
"enable_auto_payment": true
}
}