/contributions SWAP

Changed on

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.

post/contributions-swap

Request

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

Request body

dateReceivedstring date

The date and time of this contribution; must occur before the time of the API call.

amountnumber 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.

statusstring

The current status of the contribution: Declined, Pending, or Settled.

paymentTypestring

A string representing the method of payment.

Response

201

Changes