---
title: "/contributions SWAP"
method: POST
path: "/contributions-swap"
---

# /contributions SWAP

`POST /contributions-swap`

## Request

- Base URL: `https://api.securevan.com/v4`
- URL: `https://api.securevan.com/v4/contributions-swap`
- Auth: HTTP basic

Use this endpoint to create a new contribution with the properties provided in the request body.

If successful, the endpoint responds with HTTP Status Code `201 Created` and the integer ID of the created Contribution in the response body.

If any of the specified ids (`vanId`, `pledgeId`, `codeId`, or `extendedSourceCodeId`) are not accessible in the current context (e.g., the associated api user does not have access to the person), the response will be considered invalid.

## Request body

- object
  - `contact` object: The [Person](ref:people) who contributed
    - `vanId` string
  - `designation` object: The financial entity which will receive this contribution.
    - `designationId` integer
  - `dateReceived` string, date: The date and time of this contribution; must occur before the time of the API call.
  - `amount` number, double: The amount of the contribution. Non-positive values, and values that have more than 2 digits after the decimal point, will not be accepted.
  - `status` string: The current status of the contribution: `Declined`, `Pending`, or `Settled`.
  - `paymentType` string: A string representing the method of payment.

## Response `201`

201

## Other responses

- `400`: 400

## Changes

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

[Operation history](https://skmtc.dev/ngpvan/apis/van-crm/changes/contributions-swap/post.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)
