---
title: "/commitments/{commitmentId} SWAP"
method: PATCH
path: "/commitments/{commitmentId} SWAP"
---

# /commitments/{commitmentId} SWAP

`PATCH /commitments/{commitmentId} SWAP`

## Request

- Base URL: `https://api.securevan.com/v4`
- URL: `https://api.securevan.com/v4/commitments/{commitmentId} SWAP`
- Auth: HTTP basic

Use this endpoint to update a recurring commitment. You can currently:
1. Cancel a commitment
2. Update the next transaction date
3. Update the commitment amount

Please note that you **cannot** update a commitment you are attempting to cancel. **The cancellation will be processed first**, and any other changes will be ignored.

## Path parameters

- `commitmentId` integer, required

## Request body

- object
  - `status` 'InactiveCancelled': The status of the commitment
  - `NextTransactionDate` string, date
  - `Amount` number, double: Decimal amount of currency to process each transaction

## Response `202`

202

## Other responses

- `400`: 400
- `404`: 404

## Changes

- **2026-11-03** `4f2049fba5af`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ngpvan/apis/van-crm/changes/commitments/:commitmentId%20SWAP/patch.md)

---

[API](https://skmtc.dev/ngpvan/apis/van-crm.md) - [All operations](https://skmtc.dev/ngpvan/apis/van-crm/llms.txt) - [OpenAPI document](https://skmtc.dev/ngpvan/apis/van-crm/revisions/4f2049fba5af?raw)
