Skip to content

Add Payment

Diego edited this page May 20, 2013 · 11 revisions

POST /api/movements/:movement_id/donations/add_payment(.:format)

Adds a new payment for a recurring donation

Parameters
movement_id
Mandatory
Movement Identifier Related to current Donation
transaction_id
Mandatory
New Payment Gateway Transaction Identifier Associated to current payment
subscription_id
Mandatory
Donation Subscription Identifier
amount_in_cents
Mandatory
Donation Amount
order_number
Mandatory
Invoice Number

Response

Status Code

200 if Successful
404 if Donation Not Found

Content

Field Description
text Error description if donation can not be found.

Example Request

POST /api/movements/test-movement/donations/add_payment.json
Content-Type: application/x-www-form-urlencoded

subscription_id=6a3559a376a641949c7dd32baa289645&amount_in_cents=1000&transaction_id=1aa1b2c3dd01234a7111122dddaa0fff&order_number=1e14528519c34386af3f2163693fdba5

Example Response

200 (OK)

back