This Choreo retrieves a list of successful charge events. The documentation for this Stripe API function can be found here.
Note that this Choreo has an input called ResponseMode which can be used to simplify the response and just return the charge amount.
Here's an example of acceptable inputs:
APIKey: {YOUR STRIPE API KEY}
ResponseMode: simple
The following is a sample of the JSON returned by this Choreo when setting the ResponseMode to "simple":
[
"500",
"1000"
]
When setting the ResponseMode to "verbose", the Response will look something like this:
[
{
"amount": 500,
"balance_transaction": "txn_2cY3Em2mV6fVvz",
"captured": true,
"card": {
"address_city": null,
"country": "US",
"customer": null,
"exp_month": 4,
"exp_year": 2013,
"fingerprint": "5T6DNCO0PgyqFNZY",
"id": "cc_1SF0JsOAYbEYxK",
"last4": "4242",
"object": "card",
"type": "Visa"
},
"created": 1379879773,
"currency": "usd",
"customer": "cus_1SF18d7KrdxsSr",
"dispute": null,
"disputed": false,
"failure_code": null,
"fee": 610,
"fee_details": [
{
"amount": 610,
"amount_refunded": 0,
"application": null,
"currency": "usd",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"id": "ch_2cY32yhpX5iIDk",
"invoice": "in_2cX5mqaxbgOCPj",
"livemode": false,
"object": "charge",
"paid": true,
"refunded": false
},
{
"amount": 1000,
"balance_transaction": "txn_2Z5xPl7EnA9E31",
"captured": true,
"card": {
"address_city": null,
"address_country": "united states",
"address_line1": "23806 rotunda rd",
"address_line1_check": "pass",
"address_state": "ca",
"address_zip": "91355",
"address_zip_check": "pass",
"country": "US",
"customer": null,
"exp_month": 12,
"exp_year": 2014,
"fingerprint": "5T6DNCO0PgyqFNZY",
"id": "cc_1S9SOHT690YDnk",
"last4": "4242",
"name": "jimmy huey",
"object": "card",
"type": "Visa"
},
"created": 1379083295,
"currency": "usd",
"customer": "cus_1Rqx5j5Ow5pUFF",
"dispute": null,
"disputed": false,
"failure_code": null,
"fee": 610,
"fee_details": [
{
"amount": 610,
"amount_refunded": 0,
"application": null,
"currency": "usd",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"id": "ch_2Z5xD8d9dsJGZd",
"invoice": "in_2Z4z15rZDf6ocv",
"livemode": false,
"object": "charge",
"paid": true,
"refunded": false
}
]