< back to index

HTTP request

POST https://api.wevoteusa.org/apis/v1/donationWithStripe (Jump to "Try It Now")

Required Parameters

Parameter name Value Description
api_key string (from post, cookie, or get (in that order)) The unique key provided to any organization using the WeVoteServer APIs
voter_device_id string An 88 character unique identifier linked to a voter record on the server
token string A unique identifier linked to a stripe payment made on the client side
email string A unique email linked to a stripe payment made on the client side
donation_amount integer amount to be charged
monthly_donation boolean recurring donation

Response

{
  "status": string,
  "success": boolean,
  "token": string,
}

Response Status Codes

Code Description
TOKEN_MISSING Cannot proceed. A valid stripe token was not included.

Try It Now: API Variables

Process stripe payment with stripe client generated token

Parameter name Value  
voter_device_id:
token:
email:
donation_amount:
monthly_donation: True
False

(opens in new window)