Webhooks are sent as HTTP POST requests to your URL with a form-encoded body (content-type: application/x-www-form-urlencoded)
for easy parsing in almost any programming language.
All Webhooks contain the following keys:
id |
A unique, numeric, identifier for the webhook. You can use this value to record which webhooks you’ve already seen or recorded or acted on |
event |
An identifier for the type of event that occurred. See Events, below |
payload |
A “hash” of pertinent data about the event. Keys and sub-keys in the hash are denoted using square bracket notation in the key. For example, the product name would be included as the following form-encoded key/pair value in the content body of a |
Webhook Limitations
Chargify places two limitations on your site for how webhooks can be used. We limit the data retention (amount of time we store old webhooks) and the amount of endpoints you can have per site. For more information on how webhooks are limited, please view the information published under My Account.
Webhook Timestamps
Webhook Acknowledgement and Automatic Retries
Upon receipt of a webhook, you should accept it by returning an HTTP “200 OK” response as quickly as possible. Sending any other response (i.e. “500 Internal Server Error”, “404 Not Found”, etc.) OR failing to return a response within approximately 15 seconds will result in automatic retries of the webhooks.
Chargify will attempt to send each webhook event 5 times before giving up. The webhook retries will follow a backoff schedule:
Attempt | Approximate Timing |
1 | As soon as possible after the original event |
2 | 10 seconds after most recent failure |
3 | 15 seconds after most recent failure |
4 | 90 seconds after most recent failure |
5 | 180 seconds after most recent failure |
If you use the webhook replay feature (available via the webhook API or the webhook panel), please be aware that it is possible to perform a manual replay while automatic replays are still active. Because of this, it is your responsibility to avoid taking duplicate action. Suggestions for avoiding duplicate actions are:
- Use the unique webhook id to remember which webhooks you’ve already recorded
- Do not attempt to replay webhooks until the
last_attempt
_at timestamp (see Metadata) is well outside of the automatic replay intervals.
Inoperative Endpoints
We’ve found often merchants set up a temporary webhook endpoint in order to test or review their integration. It can be easy to forget that these endpoints are active. Unfortunately, webhook endpoints have the potential to generate extremely large amounts of work on the Chargify systems as we build and then try to reliably deliver them to the merchant.
If Chargify experiences multiple failures when trying to get a successful acknowledgement from a configured endpoint, this begins a process of pausing or disabling the inoperative endpoint. There’s many moving parts to the webhook attempt-pause-retry functionality, so please continue onward to fully understand the process.
Earlier in this article, we touched on the backoff schedule for an individual webhook event. For example:
- A singular webhook event that Chargify attempts to deliver 5 times – has failed 5 times in a row
- This webhook is now considered to be in the failed state
- These 5 attempts contribute to the running total of endpoint attempts, which are discussed below.
- The current endpoint attempt for the example cited about is 5.
- At this stage, the endpoint is unaffected and webhooks will still be successfully delivered.
Further webhook endpoint failure calculation examples:
- If you have 5 webhook events that have failed, your failure count is 25
- If you have 6 webhook events that have failed, your failure count is 30
- etc.
We do not expose your running total of failure counts in the Chargify application. However, we will promptly alert you to configuration issues with your account. You will be informed of an inoperative endpoint by a notification in your account or email. If you have a paused or disabled endpoint, you simply need to edit the URL to your new URL to re-activate it.
Failure count | State | System behavior |
1 to 25 | Enabled | Retries proceed automatically (as above) |
26 to 50 | Paused |
Webhooks are generated in the |
51 and over | Disabled | Webhooks are no longer generated for this endpoint |
Events
The following events are monitored within Chargify and can generate Webhooks:
Event Key | Trigger | Payload |
billing_date_change |
Any change to the billing date that is initiated explicitly by altering,the billing date via the application or the API. This will not be triggered,upon a normal renewal and period advancement, or a migration. |
event_id , site , subscription 1 (with previous_billing_date) |
component_allocation_change |
Any change to a subscription’s quantity-based component allocation, enabled status of an on/off component, or a purchase of a prepaid component allocation that is made after signup. This webhook does not fire if allocations are set as a part of the subscription creation (i.e. signup) – it only fires upon subsequent changes. previous_allocation and new_allocation give the allocation,values before and after the change. These will be either 0 or 1 for On/Off Components to represent off and on , respectively. timestamp provides the date and time the allocation was recorded and is listed in ISO8601 format in the UTC timezone. Note: this timestamp format differs slightly from the format of existing timestamps in other event types and represents our new direction for webhook timestamps. |
event_id , site , component , subscription , product , previous_allocation , new_allocation , memo ,timestamp
|
customer_create |
A new customer is created. |
event_id , site , customer
|
customer_update |
Any change to the following customer fields: first_name , last_name ,organization , email , reference , address , address 2 , city ,state , zip , country , phone , vat_number , parent_id , cc_email . |
event_id , site , customer
|
dunning_step_reached |
When a subscription reaches any step of the dunning process, a webhook will be generated. |
event_id , site , subscription ,product , dunner , current_step , next_step
|
expiration_date_change |
Any change to an existing expiration_date for a subscription. |
event_id , site , subscription
|
expiring_card |
A periodic event sent by Chargify |
event_id , site , subscription 1, 6
|
invoice_issued |
Invoices issued towards a subscription on Relationship Invoicing site |
event_id , site , subscription 1, invoice
|
metered_usage |
Any reported usage for a subscription’s metered components. This webhook,will not fire when the unit balance is reset to 0 at the time of,renewal.timestamp provides the date and time the usage was recorded and,is listed in ISO8601 format in,the UTC timezone. Note: this timestamp format differs slightly from the,format of existing timestamps in other event types and represents our,new direction for webhook timestamps. |
event_id , site ,component , subscription , product , previous_unit_balance , new_unit_balance , usage_quantity , memo , timestamp
|
payment_failure |
Any failed payment attempt 4 example payload |
event_id , site , subscription , transaction
|
payment_success |
Any payment attempt 4 that does not result in an immediate failure. example payload |
event_id , site , subscription , transaction
|
direct_debit_payment_pending |
When Direct Debit Payment was created in the gateway and it is waiting for being processes (currently only Stripe and GoCardless are supported) |
event_id , site , subscription , transaction
|
direct_debit_payment_paid_out |
When Direct Debit Payment was successfully processed in the gateway (currently only Stripe and GoCardless are supported) |
event_id , site , subscription , transaction
|
direct_debit_payment_rejected |
When Direct Debit Payment was rejected in the gateway, e.g. insufficient funds on the customer account (currently only Stripe and GoCardless are supported) |
event_id , site , subscription , transaction
|
pending_payment_created |
When a Pending Payment was created in the gateway and it is waiting for being processes (currently only Digital River is supported) |
event_id , site , subscription , transaction
|
pending_payment_completed |
When a Pending Payment was successfully processed in the gateway (currently only Digital River is supported) |
event_id , site , subscription , transaction
|
pending_payment_failed |
When a Pending Payment was rejected in the gateway (currently only Digital River is supported) |
event_id , site , subscription , transaction
|
prepaid_subscription_balance_changed |
Any change to a prepaid subscription’s usage or prepayment balance |
event_id , site , subscription , prepaid_configuration , customer , product , product_family , credit_card , group
|
prepaid_usage |
Any recorded usage for a subscription’s prepaid component will fire off this webhook. Note that changes in allocation are reflected in a component_allocation_change webhook. |
event_id , site , component , subscription , product , previous_unit_balance , usage_quantity , previous_overage_unit_balance , new_overage_unit_balance , overage_usage_quantity , price_point_id
|
renewal_failure |
A failed periodic renewal, i.e. the credit card is declined3 |
event_id , site , subscription 1, transaction
|
renewal_success |
A successful periodic renewal3 |
event_id , site , subscription , transaction
|
signup_success |
Any successful signup (Subscription created) via the API, application, or Public Pages |
event_id , site , subscription 1,8
|
signup_failure |
Any failed signup (Subscription failed to begin) via the API, application, or Public Pages2 |
event_id , site , subscription 1
|
subscription_card_update |
Any change to the active credit card type payment profile. This includes partial card / billing address updates. Deletion of PayPal payment profiles.7 |
event_id , site , subscription ,product , previous_payment_profile , updated_payment_profile , customer
|
subscription_group_card_update |
Any change to the active credit card type payment profile on the subscription group. |
event_id , site , subscription_group , previous_payment_profile , updated_payment_profile , customer
|
subscription_product_change |
A successful change from an old product to a new product for a subscription. This webhook will fire for a product version change. |
event_id , site , previous_product , subscription 1
|
subscription_state_change |
Any change to the subscription state. This is the “workhorse” of the events – watching this event can tell you if a subscription ever moves to a “bad” state, i.e. past_due
|
event_id , site , subscription 1,5
|
upcoming_renewal_notice |
A webhook will be generated 3 days before a subscription is set to renew. |
event_id , site , customer , email_sent , estimated_renewal_amount_in_cents , message , payment_profile , product ,subscription (condensed) |
upgrade_downgrade_failure |
Any failed upgrade/downgrade |
event_id , site , subscription 1, previous_product
|
upgrade_downgrade_success |
Any successful upgrade/downgrade |
event_id , site , subscription 1, previous_product
|
pending_cancellation_change |
When a subscription is canceled with delay (cancel at end of period) or delayed pending cancellation is cleared. |
event_id , site , subscription 1 , cancellation_state , cancels_at
|
1 The subscription
object also contains information on the Customer and Product.
2 This is usually caused by a failure at the payment gateway. This event is not generated for input validation errors (i.e. forgetting to fill in a field).
3 At the end of every recurring interval, either a renewal_success
or a renewal_failure
event is triggered once. If a card is declined and a renewal_failure
is triggered, a subsequent payment that brings the account current will not generate a renewal_success
(although it will generate a payment_success
and a subscription_state_change
)
4 payment_success
or payment_failure
are triggered for every payment attempted, whether it is for a normal renewal, a One-time Charge, a retry after failure, or a payment applied to an Invoice. Note that in some cases the payment may fail later, most commonly with ACH/eCheck and Direct Debit.
5 Note that the subscription
object you are given contains keys for both previous_state
and state
so you can track the changes.
6 The expiring_card
webhook is sent on the 1st, 15th and 7 days before the end of the month. This will identify all cards expiring in the current month.
7Additions of new PayPal accounts, changes/deletions of bank account / ACH type payment profiles do not currently generate any webhooks.
8 Component allocations are not currently included in the signup_success
webhook.
Statement Events
At the end of every period (i.e. at renewal) there will be either a statement_closed
or a statement_settled
webhook. statement_settled
means the statement closed and payment was successfully received simultaneously (or payment was not needed). statement_closed
means the statement closed but payment was not successfully received.
For example, if you receive a statement_closed
webhook for statement #3, you will also receive a statement_settled
webhook for statement #3 at a later time, if the statement becomes paid (i.e. out of dunning retry or card update).
Payloads
The resource objects sent as payload typically contain the same information as the corresponding API resource. Site payload objects contain the site’s id
and subdomain
. Examples of payloads for each type of event are given below under Example Payloads
Webhook Verification
Using your Site shared key and a “signature” (called signature_hmac_sha_256
) that is calculated and sent with the Webhook, you can verify the contents of a Webhook as being authentic and un-tampered.
Deprecation
Webhook Signature
Webhooks are signed with a signature generated by taking an HMAC-SHA-256 hex digest of the raw HTTP Body of the Webhook post, using your shared key as the secret. In ruby:
OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), site.shared_key, webhook.body)
If your site shared key is 123
and the Webhook request body contents are payload[chargify]=testing&event=test
, then the signature_hmac_sha_256
for this Webhook is 19826d51b9f866b26eda1f154de192593360f8d0bcb63df8a28540a5dcf733f1.
This signature is sent with the Webhook post in the header X-Chargify-Webhook-Signature-Hmac-Sha-256
, and can also be sent as a query param in your URL by using the {signature_hmac_sha_256}
replacement variable.
For example, you could give us the following URL as your Webhook target URL:
http://example.com/?signature_hmac_sha_256={signature_hmac_sha_256}
We would post the example Webhook to the following address:
http://example.com/?signature_hmac_sha_256=19826d51b9f866b26eda1f154de192593360f8d0bcb63df8a28540a5dcf733f1
You can thus verify the contents of the POST by taking the same hash yourself and comparing.
Finding Your Site Shared Key
When you create a Site, a shared key is automatically generated for you. You can find its current value, and change it if you choose, by clicking “Edit current Site” from the Site dropdown menu in the utility bar near the top of the screen.
Configuring Webhooks
You can configure your Webhooks from the Settings tab for each Site. You can choose to enable Webhooks, provide a target Webhook URL, and subscribe to individual Webhooks. The target Webhook URL cannot contain any port number except 80 and 443 (which you can specify using http
and https
protocol).
Webhook Testing
The Webhook Testing tab, accessed under the Tools navigation, will allow you to send test Webhook data to any of your configured endpoints.
When using this feature, the payload sent won’t match what you would receive from a real environment. In other words, it is mostly meant to ensure that your endpoint is operational. Test webhooks are sent with the following body:
id=123456&event=test&payload[chargify]=testing
For a more in-depth test, creating test subscriptions on a sandbox account and completing the actions you expect to happen in production will trigger live webhooks. Full examples of payloads for all event types may be referenced in the section on Example Payloads.
Webhook Metadata
The webhook records contain information about the acceptance or non-acceptance by your application, along with information about any error received that indicated non-acceptance.
This data is available via the Webhook API or the Webhook Panel, if that feature is available on your plan.
The webhook metadata attributes are:
-
id
The unique identifier for the webhooks (unique across all of Chargify). This is not changed on a retry/replay of the same webhook, so it may be used to avoid duplicate action for the same event. -
successful
A boolean flag describing whether the webhook was accepted by the webhook endpoint for the most recent attempt. (Acceptance is defined by receiving a “200 OK” HTTP response within a reasonable timeframe, i.e. 15 seconds) -
created_at
Timestamp indicating when the Webhook was created -
accepted_at
Timestamp indicating when the Webhook was accepted by the merchant endpoint. When a webhook is explicitly replayed by the merchant, this value will be cleared until it is accepted again. -
last_sent_at
Timestamp indicating when the most recent attempt was made to send the Webhook -
last_error_at
Timestamp indicating when the last non-acceptance occurred. If a webhooks is later resent and accepted, this field will be cleared. -
last_error
Text describing the status code and/or error from the last failed attempt to send the Webhook. When a webhook is retried and accepted, this field will be cleared.
Webhooks also maintain their event and payload data (accessible via the API). For a full listing of attributes available for each webhook, please see the webhook API documentation.
Once a webhook is accepted, the accepted_at timestamp will be filled (which can be viewed via the webhooks API or in the webhooks panel, if it is available for your plan).
Population of webhook data
Each event in Chargify will create a unique webhook payload that contains relevant data for your subscriber. In most cases, not all of the values will be populated in the webhook payload. We ask that you use your best judgement in these cases to understand if the data exists or not.
For example: we will not deliver the data for reason_code
in a signup_success
webhook. Stay tuned, as we will be populating this section of our documentation for more examples of nil
results in a payload data.
Example Payloads
- billing_date_change payload
- component_allocation_change payload
- customer_create payload
- customer_update payload
- dunning_step_reached payload
- expiring_card payload
- expiration_date_change payload
- metered_usage payload
- payment_failure payload
- payment_success payload
- direct_debit_payment_pending payload
- direct_debit_payment_paid_out payload
- direct_debit_payment_rejected payload
- pending_payment_created payload
- pending_payment_completed payload
- pending_payment_failed payload
- prepaid_subscription_balance_changed payload
- prepaid_usage payload
- refund_failure payload
- refund_success payload
- renewal_failure payload
- renewal_success payload
- signup_failure payload
- signup_success payload
- statement_closed payload
- statement_settled payload
- subscription_card_update payload
- subscription_group_card_update payload
- subscription_product_change payload
- subscription_state_change payload
- trial_end_notice payload
- upcoming_renewal_notice payload
- upgrade_downgrade_failure payload
- upgrade_downgrade_success payload
- pending_cancellation_change payload
billing_date_change payload
{"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"subscription"=>
{"id"=>16372192,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:39:20 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Thu, 13 Apr 2017 14:28:00 EDT -04:00,
"next_assessment_at"=>Thu, 13 Apr 2017 14:28:00 EDT -04:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 13:28:05 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>173961106,
"signup_revenue"=>"60.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>22000,
"product_price_in_cents"=>5000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"cz8wdq",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doris@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>nil,
"portal_customer_created_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4442358,
"name"=>"Gold Product",
"handle"=>"gold-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"updated_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"price_in_cents"=>5000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306012,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/7dbsnjd8t8cx/gold-product"},
{"id"=>310598,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ksjh9py5fn5h/gold-product"},
{"id"=>311132,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/kjmks49g8d3d/gold-product"}]},
"credit_card"=>
{"id"=>10914352,
"first_name"=>"Doris",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>2,
"expiration_year"=>2018,
"customer_id"=>15826583,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>"",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"},
"previous_billing_date"=>Mon, 13 Mar 2017 14:28:05 EDT -04:00},
"event_id"=>377604301}
component_allocation_change payload
If a payment is attempted at the time of the allocation, sites will show the result in the webhook payload.
On/Off Component Change
"component"=>
{"id"=>375117,
"kind"=>"on_off_component",
"name"=>"Cancellation fee",
"unit_name"=>"on/off"},
"subscription"=>{"id"=>16372192, "name"=>"Doris Tester"},
"product"=>{"id"=>4443536, "name"=>"Business Monthly"},
"memo"=>"Adding cancellation fee for Doris",
"timestamp"=>"2017-02-13T18:46:49Z",
"previous_allocation"=>0,
"new_allocation"=>1,
"payment"=>nil,
"event_id"=>377608723}
Quantity-based Component Change
"component"=>
{"id"=>375250,
"kind"=>"quantity_based_component",
"name"=>"Quantity Component",
"unit_name"=>"Quantity Component"},
"subscription"=>{"id"=>16372192, "name"=>"Doris Tester"},
"product"=>{"id"=>4443536, "name"=>"Business Monthly"},
"memo"=>"Adding 90 components for Doris",
"timestamp"=>"2017-02-13T18:49:58Z",
"previous_allocation"=>10,
"new_allocation"=>90,
"payment"=>
{"id"=>1078634,
"success"=>true,
"amount_in_cents"=>800,
"memo"=>"Payment for: Full-price component allocation changes."},
"event_id"=>377609562}
Prepaid Component Change
"component"=>
{"id"=>957864,
"kind"=>"prepaid_usage_component",
"name"=>"Minutes",
"unit_name"=>"minutes",
"handle"=>nil},
"subscription"=>
{"id"=>32304660,
"name"=>"Mario Smith",
"organization"=>"",
"state"=>"active",
"product"=>
{"id"=>4607690,
"product_price_point_id"=>322106,
"product_price_point_handle"=>"uuid:8e1f3840-c44a-0136-fd09-02d0e580fd36",
"name"=>"v-1",
"interval"=>1,
"interval_unit"=>"month"}},
"product"=>
{"id"=>4607690,
"name"=>"Silver Plan",
"interval"=>1,
"interval_unit"=>"month"},
"allocation"=>
{"id"=>571895482,
"proration_upgrade_scheme"=>"full-price-attempt-capture",
"proration_downgrade_scheme"=>"no-prorate"},
"previous_allocation"=>0,
"new_allocation"=>10,
"memo"=>"",
"timestamp"=>"2020-04-28T18:34:28Z",
"price_point_id"=>821647,
"payment"=>
{"id"=>381732923,
"success"=>true,
"amount_in_cents"=>2000,
"memo"=>"Payment for: Full-price component allocation changes."},
"allocated_quantity"=>10,
"expires_at"=>nil,
"renews"=>true,
"total_used"=>0,
"total_overage"=>0,
"event_id"=>1064815277}
customer_create payload
{"address"=>"123 Main St",
"address_2"=>"Apt 123",
"city"=>"Pleasantville",
"country"=>"US",
"created_at"=>"2012-09-09 11:38:32 -0400",
"email"=>"john@example.com",
"first_name"=>"John",
"id"=>"0",
"last_name"=>"Doe",
"organization"=>"Acme, Inc.",
"phone"=>"555-555-1234",
"reference"=>"johndoe",
"state"=>"NC",
"updated_at"=>"2012-09-09 11:38:32 -0400",
"zip"=>"12345",
"parent_id"=>nil},
"site"=>{"id"=>2, "subdomain"=>"acme"},
"event_id"=>855147013}
customer_update payload
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doristester@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:42:07 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"portal_invite_last_accepted_at"=>Mon, 13 Feb 2017 12:50:55 EST -05:00,
"verified"=>false,
"portal_customer_created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"vat_number"=>737291901,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>7
},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377607274}
dunning_step_reached payload
"subscription" => {
"id" => 37,
"state" => "past_due",
"trial_started_at" => Wed, 25 Jan 2017 15:48:56 EST -05:00,
"trial_ended_at" => Wed, 25 Jan 2017 15:49:35 EST -05:00,
"activated_at" => nil,
"created_at" => Wed, 25 Jan 2017 15:48:56 EST -05:00,
"updated_at" => Wed, 25 Jan 2017 15:49:40 EST -05:00,
"expires_at" => nil,
"balance_in_cents" => 2400,
"current_period_ends_at" => Sat, 25 Feb 2017 15:49:35 EST -05:00,
"next_assessment_at" => Wed, 25 Jan 2017 15:49:35 EST -05:00,
"canceled_at" => nil,
"cancellation_message" => nil,
"next_product_id" => nil,
"cancel_at_end_of_period" => false,
"payment_collection_method" => "automatic",
"snap_day" => nil,
"cancellation_method" => nil,
"current_period_started_at" => Wed, 25 Jan 2017 15:49:35 EST -05:00,
"previous_state" => "past_due",
"signup_payment_id" => 101,
"signup_revenue" => "0.00",
"delayed_cancel_at" => nil,
"coupon_code" => nil,
"total_revenue_in_cents" => 0,
"product_price_in_cents" => 2400,
"product_version_number" => 1,
"payment_type" => nil,
"referral_code" => nil,
"coupon_use_count" => nil,
"coupon_uses_allowed" => nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer" => {
"id" => 37,
"first_name" => "Ella",
"last_name" => "Gertrude",
"organization" => "",
"email" => "ella@example.com",
"created_at" => Wed, 25 Jan 2017 15:48:56 EST -05:00,
"updated_at" => Wed, 25 Jan 2017 15:48:56 EST -05:00,
"reference" => nil,
"address" => "",
"address_2" => "",
"city" => "",
"state" => "",
"zip" => "",
"country" => "",
"phone" => "",
"portal_invite_last_sent_at" => nil,
"portal_invite_last_accepted_at" => nil,
"verified" => false,
"portal_customer_created_at" => nil,
"vat_number"=>"123456789"
"cc_emails" => nil,
"tax_exempt" => false,
"parent_id" => nil},
"product" => {
"id" => 24,
"name" => "Basic",
"handle" => "basic",
"description" => "Magni porro sint iste illum. Qui aut reiciendis voluptatum. Est et aut.",
"accounting_code" => nil,
"request_credit_card" => true,
"expiration_interval" => nil,
"expiration_interval_unit" => nil,
"created_at" => Mon, 23 Jan 2017 15:33:40 EST -05:00,
"updated_at" => Mon, 23 Jan 2017 15:33:40 EST -05:00,
"price_in_cents" => 2400,
"interval" => 1,
"interval_unit" => "month",
"initial_charge_in_cents" => nil,
"trial_price_in_cents" => 0,
"trial_interval" => 1,
"trial_interval_unit" => "month",
"archived_at" => nil,
"require_credit_card" => true,
"return_params" => nil,
"taxable" => false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial" => false,
"version_number" => 1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family" => {
"id" => 4,
"name" => "Acme Online",
"description" => nil,
"handle" => "acme-online",
"accounting_code" => nil},
"public_signup_pages" => [ {
"id" => 5,
"return_url" => nil,
"return_params" => nil,
"url" => "http://acme-test.chargify.dev/subscribe/y884dzrgd9r9/basic"}]}},
"dunner" => {
"subscription_id" => 37,
"state" => "active",
"attempts" => 1,
"last_attempted_at" => Wed, 25 Jan 2017 15:49:42 EST -05:00,
"created_at" => Wed, 25 Jan 2017 15:49:42 EST -05:00,
"revenue_at_risk_in_cents" => nil},
"current_step" => {
"day_threshold" => 1,
"action" => "retry",
"email_body" => "Hello ,\n\nWe just tried to process your current amount due of \nfor , but there is no credit card on file for this subscription. \n\nPlease use the following link to quickly and easily update your billing information:\n\n\nWe will attempt to retry the card on file prior to cancellation. If we are unable to successfully charge the outstanding balance of , your account will be canceled in 27 days.\n\nThank you for choosing us!\n\nSincerely,\n\n\n",
"email_subject" => "NOTICE: ",
"send_email" => true,
"send_bcc_email" => false,
"send_sms" => false,
"sms_body" => nil},
"next_step" => {
"day_threshold" => 28,
"action" => "cancel",
"email_body" => "Hello ,\n\n\nWe've made several attempts to bill you for your account but you have not yet provided us with a valid credit card profile.\n\nAs a result, your account has been canceled.\n\nIf you did not intend to cancel your account, please contact us to reactivate your account and avoid further interruption of your service.\n\nThank you for choosing us!\n\nSincerely,\n\n\n",
"email_subject" => "NOTICE: Account Canceled",
"send_email" => true,
"send_bcc_email" => false,
"send_sms" => false,
"sms_body" => nil},
"event_id" => 165}
expiring_card payload
{"id"=>16474328,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 20 Feb 2017 18:28:48 EST -05:00,
"created_at"=>Mon, 20 Feb 2017 18:28:47 EST -05:00,
"updated_at"=>Mon, 20 Feb 2017 18:32:14 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Mon, 20 Mar 2017 19:28:47 EDT -04:00,
"next_assessment_at"=>Mon, 20 Mar 2017 19:28:47 EDT -04:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 20 Feb 2017 18:28:47 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>174876340,
"signup_revenue"=>"0.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>0,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"ww6mq5",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer"=>
{"id"=>15102905,
"first_name"=>"Amelia",
"last_name"=>"Example",
"organization"=>"",
"email"=>"amelia@example.com",
"created_at"=>Thu, 15 Dec 2016 09:33:15 EST -05:00,
"updated_at"=>Thu, 15 Dec 2016 09:34:09 EST -05:00,
"reference"=>nil,
"address"=>"",
"address_2"=>"",
"city"=>"",
"state"=>"",
"zip"=>"",
"country"=>"",
"phone"=>"",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>nil,
"portal_customer_created_at"=>Thu, 15 Dec 2016 09:33:21 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false},
"product"=>
{"id"=>4461042,
"name"=>"Gold Product",
"handle"=>"gold-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 20 Feb 2017 18:28:18 EST -05:00,
"updated_at"=>Mon, 20 Feb 2017 18:28:18 EST -05:00,
"price_in_cents"=>0,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>312984,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/yt4ybcgk7998/zero-dollar-product"}]},
"credit_card"=>
{"id"=>10548239,
"first_name"=>"Amelia",
"last_name"=>"Example",
"masked_card_number"=>"XXXX-XXXX-XXXX-2",
"card_type"=>"bogus",
"expiration_month"=>2,
"expiration_year"=>2017,
"customer_id"=>15102905,
"current_vault"=>"bogus",
"vault_token"=>"2",
"billing_address"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>"",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>380080310}
expiration_date_change payload
"subscription"=>
{"id"=>16945349,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Fri, 03 Mar 2017 13:00:08 EST -05:00,
"created_at"=>Fri, 03 Mar 2017 13:00:02 EST -05:00,
"updated_at"=>Fri, 03 Mar 2017 13:03:55 EST -05:00,
"expires_at"=>Sun, 15 Oct 2017 00:00:00 EDT -04:00,
"balance_in_cents"=>0,
"current_period_ends_at"=>Sun, 05 Mar 2017 13:00:02 EST -05:00,
"next_assessment_at"=>Sat, 04 Mar 2017 13:00:02 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Fri, 03 Mar 2017 13:00:02 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>176501894,
"signup_revenue"=>"1.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>100,
"product_price_in_cents"=>100,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"968js9",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"reason_code"=>nil,
"customer"=>
{"id"=>16428076,
"first_name"=>"Expiring ",
"last_name"=>"Subscription",
"organization"=>"",
"email"=>"expiring@example.com",
"created_at"=>Fri, 03 Mar 2017 13:00:02 EST -05:00,
"updated_at"=>Fri, 03 Mar 2017 13:00:02 EST -05:00,
"reference"=>nil,
"address"=>"",
"address_2"=>"",
"city"=>"",
"state"=>"",
"zip"=>"",
"country"=>"",
"phone"=>"",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>nil,
"portal_customer_created_at"=>nil,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4464208,
"name"=>"Product that expires",
"handle"=>"product-that-expires",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>1,
"expiration_interval_unit"=>"day",
"created_at"=>Fri, 03 Mar 2017 12:02:38 EST -05:00,
"updated_at"=>Fri, 03 Mar 2017 12:02:38 EST -05:00,
"price_in_cents"=>100,
"interval"=>2,
"interval_unit"=>"day",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>314126,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/zs8352q9qtyz/product-that-expires"}]},
"credit_card"=>
{"id"=>11380641,
"first_name"=>"Expiring ",
"last_name"=>"Subscription",
"masked_card_number"=>"XXXX-XXXX-XXXX-1",
"card_type"=>"bogus",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>16428076,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>"",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"},
"previous_expires_at"=>Wed, 15 Jul 2015 00:00:00 EDT -04:00},
"event_id"=>384446169}
invoice_issued payload
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"subscription"=>
{"id"=>28224225,
"current_period_ends_at"=>Wed, 31 Jul 2019 15:25:54 CDT -05:00},
"invoice"=>
{"role"=>"renewal",
"due_date"=>"2019-07-31",
"issue_date"=>"2019-07-31",
"paid_date"=>"",
"due_amount"=>"$3,000.00",
"paid_amount"=>"$0.00",
"refund_amount"=>"$0.00",
"tax_amount"=>"$0.00",
"total_amount"=>"$3,000.00",
"status_amount"=>"$3,000.00",
"product_name"=>"2000",
"line_items"=>
{"0"=>
{"uid"=>"li_8tjw5rjzyt287",
"title"=>"2000",
"description"=>"31 Jul 2019 - 31 Aug 2019",
"quantity"=>1,
"unit_price"=>"$3,000.00",
"period_range_start"=>"2019-07-31",
"period_range_end"=>"2019-08-31",
"amount"=>"$3,000.00",
"line_references"=>"",
"pricing_details_index"=>nil,
"pricing_details"=>{},
"tax_code"=>nil,
"tax_amount"=>"0.0"}}},
"event_id"=>854499834}
metered_usage payload
"component"=>
{"id"=>375042,
"kind"=>"metered_component",
"name"=>"Test Metered",
"unit_name"=>"Test Metered"},
"subscription"=>{"id"=>16372192, "name"=>"Doris Tester"},
"product"=>{"id"=>4443536, "name"=>"Business Monthly"},
"memo"=>"Recording Metered Component Usage",
"timestamp"=>"2017-02-13T18:50:23Z",
"previous_unit_balance"=>#<BigDecimal:7f097c4b7d28,'0.0',9(18)>,
"new_unit_balance"=>1000,
"usage_quantity"=>1000,
"event_id"=>377609676}
payment_failure payload
"subscription"=>
{"id"=>16090357,
"state"=>"past_due",
"trial_started_at"=>Mon, 23 Jan 2017 09:59:26 EST -05:00,
"trial_ended_at"=>Mon, 23 Jan 2017 09:59:49 EST -05:00,
"activated_at"=>nil,
"created_at"=>Mon, 23 Jan 2017 09:59:26 EST -05:00,
"updated_at"=>Mon, 30 Jan 2017 12:07:40 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>1000,
"current_period_ends_at"=>Thu, 23 Feb 2017 09:59:49 EST -05:00,
"next_assessment_at"=>Tue, 31 Jan 2017 12:07:40 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 23 Jan 2017 09:59:49 EST -05:00,
"previous_state"=>"past_due",
"signup_payment_id"=>171203419,
"signup_revenue"=>"0.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>1000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"4nvrr2",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"currency"=>"USD",
"customer"=>
{"id"=>15547334,
"first_name"=>"No obligation",
"last_name"=>"Bad Card",
"organization"=>"",
"email"=>"nobbad@example.com",
"created_at"=>Mon, 23 Jan 2017 09:59:26 EST -05:00,
"updated_at"=>Mon, 23 Jan 2017 09:59:28 EST -05:00,
"reference"=>nil,
"address"=>"",
"address_2"=>"",
"city"=>"",
"state"=>"",
"zip"=>"",
"country"=>"",
"phone"=>"",
"portal_invite_last_sent_at"=>Mon, 23 Jan 2017 09:59:28 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>nil,
"portal_customer_created_at"=>Mon, 23 Jan 2017 09:59:28 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4453830,
"name"=>"Trial No obligation",
"handle"=>"trial-no-obligation",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 23 Jan 2017 09:53:23 EST -05:00,
"updated_at"=>Thu, 26 Jan 2017 13:35:29 EST -05:00,
"price_in_cents"=>1000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>0,
"trial_interval"=>1,
"trial_interval_unit"=>"day",
"archived_at"=>nil,
"require_credit_card"=>false,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>310559,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ngbsvxv4hq7q/trial-no-obligation"}]},
"credit_card"=>
{"id"=>10734525,
"first_name"=>"Chester",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-2",
"card_type"=>"bogus",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>15547334,
"current_vault"=>"bogus",
"vault_token"=>"2",
"billing_address"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>"",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"}},
"transaction"=>
{"id"=>172084191,
"subscription_id"=>16090357,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>false,
"amount_in_cents"=>1000,
"memo"=>"Bogus Gateway: Forced failure",
"created_at"=>Mon, 30 Jan 2017 12:07:39 EST -05:00,
"starting_balance_in_cents"=>1000,
"ending_balance_in_cents"=>1000,
"gateway_used"=>"bogus",
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4453830,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>84491989,
"customer_id"=>15547334,
"card_number"=>"XXXX-XXXX-XXXX-2",
"card_expiration"=>"01/2027",
"card_type"=>"bogus",
"refunded_amount_in_cents"=>0,
"invoice_uids"=>["inv_9hchn3xc84mgm"],
"invoice_id"=>nil,
"currency"=>"USD"},
"event_id"=>372846073}
payment_success payload
"subscription"=>
{"id"=>16327080,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Thu, 09 Feb 2017 11:42:28 EST -05:00,
"created_at"=>Thu, 09 Feb 2017 11:42:26 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 12:03:41 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Wed, 08 Mar 2017 12:00:00 EST -05:00,
"next_assessment_at"=>Wed, 08 Mar 2017 12:00:00 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>"8",
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 12:00:00 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>0,
"signup_revenue"=>"0.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>5667,
"product_price_in_cents"=>6900,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"6zcsxw",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"payer_id"=>15780191,
"currency"=>"USD",
"customer"=>
{"id"=>15780191,
"first_name"=>"Test "
"last_name"=>"Test",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Thu, 09 Feb 2017 11:42:26 EST -05:00,
"updated_at"=>Thu, 09 Feb 2017 11:42:29 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"zip"=>nil,
"country"=>nil,
"phone"=>"",
"portal_invite_last_sent_at"=>Thu, 09 Feb 2017 11:42:29 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>Thu, 09 Feb 2017 11:42:29 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4458204,
"name"=>"Monthly product ",
"handle"=>"monthly-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"updated_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"price_in_cents"=>6900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>312067,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/5x8sbq29vgkn/monthly-product"},
{"id"=>312068,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/vsmzkwvmfqqx/monthly-product"}]},
"credit_card"=>
{"id"=>10881632,
"first_name"=>"Test",
"last_name"=>"Page",
"masked_card_number"=>"XXXX-XXXX-XXXX-1",
"card_type"=>"bogus",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>15780191,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>"",
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"payment_type"=>"credit_card"}},
"transaction"=>
{"id"=>173963435,
"subscription_id"=>16327080,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>5667,
"memo"=>"Test Monthly - Monthly product : Renewal payment",
"created_at"=>Mon, 13 Feb 2017 12:03:40 EST -05:00,
"starting_balance_in_cents"=>5667,
"ending_balance_in_cents"=>0,
"gateway_used"=>"bogus",
"gateway_transaction_id"=>"53433",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4458204,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85701746,
"customer_id"=>15780191,
"card_number"=>"XXXX-XXXX-XXXX-1",
"card_expiration"=>"01/2027",
"card_type"=>"bogus",
"refunded_amount_in_cents"=>0,
"invoice_uids"=>["inv_9hchn3xc84mgm"],
"invoice_id"=>nil,
"currency"=>"USD"},
"event_id"=>377575306}
direct_debit_payment_pending payload
"subscription"=>
{"id"=>102485,
"state"=>"pending",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>nil,
"created_at"=>Thu, 25 Feb 2021 03:32:54 EST -05:00,
"updated_at"=>Thu, 25 Feb 2021 03:33:00 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>nil,
"next_assessment_at"=>nil,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Thu, 25 Feb 2021 03:32:54 EST -05:00,
"previous_state"=>"pending",
"signup_payment_id"=>34793,
"signup_revenue"=>"30,00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>3000,
"product_price_in_cents"=>3000,
"product_version_number"=>1,
"payment_type"=>"bank_account",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>466,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"EUR",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>4260,
"first_name"=>"Test",
"last_name"=>"Test",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Thu, 25 Feb 2021 03:32:53 EST -05:00,
"updated_at"=>Thu, 25 Feb 2021 03:32:53 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"state_name"=>nil,
"zip"=>nil,
"country"=>nil,
"country_name"=>nil,
"phone"=>"",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>372,
"name"=>"test",
"handle"=>"test",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 09 Dec 2020 05:06:07 EST -05:00,
"updated_at"=>Thu, 21 Jan 2021 09:28:12 EST -05:00,
"price_in_cents"=>3000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"",
"tax_code"=>"",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>466,
"request_billing_address"=>false,
"require_billing_address"=>false,
"require_shipping_address"=>false,
"product_price_point_id"=>466,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:14078c50-1c34-0139-f2b7-08e9fe639598",
"product_family"=>
{"id"=>131,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"test-billing-plans",
"accounting_code"=>nil,
"created_at"=>Wed, 09 Dec 2020 04:37:03 EST -05:00,
"updated_at"=>Wed, 09 Dec 2020 04:37:03 EST -05:00},
"public_signup_pages"=>
[{"id"=>199,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://test-71.chargifypay.test/subscribe/3gx9xh5z8gj2/test"}]},
"bank_account"=>
{"id"=>5847,
"first_name"=>"Test",
"last_name"=>"Test",
"customer_id"=>4260,
"current_vault"=>"stripe_connect",
"vault_token"=>"cus_J0gewnaw35SKLd",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>nil,
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"bank_name"=>nil,
"masked_bank_routing_number"=>nil,
"masked_bank_account_number"=>"XXXX3000",
"bank_account_type"=>"checking",
"bank_account_holder_type"=>"personal",
"payment_type"=>"bank_account",
"verified"=>true,
"site_gateway_setting_id"=>402},
"group"=>nil},
"transaction"=>
{"id"=>34793,
"subscription_id"=>102485,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>3000,
"memo"=>"Test Test - test: Signup payment",
"created_at"=>Thu, 25 Feb 2021 03:33:00 EST -05:00,
"starting_balance_in_cents"=>3000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"stripe_connect",
"gateway_transaction_id"=>"pi_1IOfHLKajOcZzbwkfsXCKj1P",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>372,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>24750,
"customer_id"=>4260,
"item_name"=>nil,
"period_range_start"=>nil,
"period_range_end"=>nil,
"currency"=>"EUR",
"exchange_rate"=>1,
"component_handle"=>nil,
"component_price_point_id"=>nil,
"component_price_point_handle"=>nil,
"parent_id"=>nil,
"role"=>nil,
"card_number"=>nil,
"card_expiration"=>nil,
"card_type"=>nil,
"refunded_amount_in_cents"=>0,
"invoice_id"=>nil},
"event_id"=>51595}
direct_debit_payment_paid_out payload
"subscription"=>
{"id"=>102485,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Thu, 25 Feb 2021 03:33:01 EST -05:00,
"created_at"=>Thu, 25 Feb 2021 03:32:54 EST -05:00,
"updated_at"=>Thu, 25 Feb 2021 03:33:10 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Thu, 25 Mar 2021 04:32:54 EDT -04:00,
"next_assessment_at"=>Thu, 25 Mar 2021 04:32:54 EDT -04:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Thu, 25 Feb 2021 03:32:54 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>34793,
"signup_revenue"=>"30,00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>3000,
"product_price_in_cents"=>3000,
"product_version_number"=>1,
"payment_type"=>"bank_account",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>466,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"EUR",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>4260,
"first_name"=>"Test",
"last_name"=>"Test",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Thu, 25 Feb 2021 03:32:53 EST -05:00,
"updated_at"=>Thu, 25 Feb 2021 03:32:53 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"state_name"=>nil,
"zip"=>nil,
"country"=>nil,
"country_name"=>nil,
"phone"=>"",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>372,
"name"=>"test",
"handle"=>"test",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 09 Dec 2020 05:06:07 EST -05:00,
"updated_at"=>Thu, 21 Jan 2021 09:28:12 EST -05:00,
"price_in_cents"=>3000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"",
"tax_code"=>"",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>466,
"request_billing_address"=>false,
"require_billing_address"=>false,
"require_shipping_address"=>false,
"product_price_point_id"=>466,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:14078c50-1c34-0139-f2b7-08e9fe639598",
"product_family"=>
{"id"=>131,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"test-billing-plans",
"accounting_code"=>nil,
"created_at"=>Wed, 09 Dec 2020 04:37:03 EST -05:00,
"updated_at"=>Wed, 09 Dec 2020 04:37:03 EST -05:00},
"public_signup_pages"=>
[{"id"=>199,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://test-71.chargifypay.test/subscribe/3gx9xh5z8gj2/test"}]},
"bank_account"=>
{"id"=>5847,
"first_name"=>"Test",
"last_name"=>"Test",
"customer_id"=>4260,
"current_vault"=>"stripe_connect",
"vault_token"=>"cus_J0gewnaw35SKLd",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>nil,
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"bank_name"=>nil,
"masked_bank_routing_number"=>nil,
"masked_bank_account_number"=>"XXXX3000",
"bank_account_type"=>"checking",
"bank_account_holder_type"=>"personal",
"payment_type"=>"bank_account",
"verified"=>true,
"site_gateway_setting_id"=>402},
"group"=>nil},
"transaction"=>
{"id"=>34793,
"subscription_id"=>102485,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>3000,
"memo"=>"Test Test - test: Signup payment",
"created_at"=>Thu, 25 Feb 2021 03:33:00 EST -05:00,
"starting_balance_in_cents"=>3000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"stripe_connect",
"gateway_transaction_id"=>"pi_1IOfHLKajOcZzbwkfsXCKj1P",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>372,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>24750,
"customer_id"=>4260,
"item_name"=>nil,
"period_range_start"=>nil,
"period_range_end"=>nil,
"currency"=>"EUR",
"exchange_rate"=>1,
"component_handle"=>nil,
"component_price_point_id"=>nil,
"component_price_point_handle"=>nil,
"parent_id"=>nil,
"role"=>nil,
"card_number"=>nil,
"card_expiration"=>nil,
"card_type"=>nil,
"refunded_amount_in_cents"=>0,
"invoice_id"=>nil},
"event_id"=>51601}
direct_debit_payment_rejected payload
"subscription"=>
{"id"=>102493,
"state"=>"past_due",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Thu, 25 Feb 2021 05:27:47 EST -05:00,
"created_at"=>Thu, 25 Feb 2021 05:27:38 EST -05:00,
"updated_at"=>Thu, 25 Feb 2021 05:28:06 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>3000,
"current_period_ends_at"=>Thu, 25 Mar 2021 06:27:38 EDT -04:00,
"next_assessment_at"=>Fri, 26 Feb 2021 05:28:06 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Thu, 25 Feb 2021 05:27:38 EST -05:00,
"previous_state"=>"past_due",
"signup_payment_id"=>34807,
"signup_revenue"=>"30,00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>3000,
"product_version_number"=>1,
"payment_type"=>"bank_account",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>466,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"EUR",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>4268,
"first_name"=>"Test",
"last_name"=>"Test",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Thu, 25 Feb 2021 05:27:38 EST -05:00,
"updated_at"=>Thu, 25 Feb 2021 05:27:38 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"state_name"=>nil,
"zip"=>nil,
"country"=>nil,
"country_name"=>nil,
"phone"=>"",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>372,
"name"=>"test",
"handle"=>"test",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 09 Dec 2020 05:06:07 EST -05:00,
"updated_at"=>Thu, 21 Jan 2021 09:28:12 EST -05:00,
"price_in_cents"=>3000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"",
"tax_code"=>"",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>466,
"request_billing_address"=>false,
"require_billing_address"=>false,
"require_shipping_address"=>false,
"product_price_point_id"=>466,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:14078c50-1c34-0139-f2b7-08e9fe639598",
"product_family"=>
{"id"=>131,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"test-billing-plans",
"accounting_code"=>nil,
"created_at"=>Wed, 09 Dec 2020 04:37:03 EST -05:00,
"updated_at"=>Wed, 09 Dec 2020 04:37:03 EST -05:00},
"public_signup_pages"=>
[{"id"=>199,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://test-71.chargifypay.test/subscribe/3gx9xh5z8gj2/test"}]},
"bank_account"=>
{"id"=>5855,
"first_name"=>"Test",
"last_name"=>"Test",
"customer_id"=>4268,
"current_vault"=>"stripe_connect",
"vault_token"=>"cus_J0iV6HHEeYiAX4",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>nil,
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"bank_name"=>nil,
"masked_bank_routing_number"=>nil,
"masked_bank_account_number"=>"XXXX3001",
"bank_account_type"=>"checking",
"bank_account_holder_type"=>"personal",
"payment_type"=>"bank_account",
"verified"=>true,
"site_gateway_setting_id"=>402},
"group"=>nil},
"transaction"=>
{"id"=>34807,
"subscription_id"=>102493,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>false,
"amount_in_cents"=>3000,
"memo"=>"Test Test - test: Signup payment",
"created_at"=>Thu, 25 Feb 2021 05:27:45 EST -05:00,
"starting_balance_in_cents"=>3000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"stripe_connect",
"gateway_transaction_id"=>"pi_1IOh4NKajOcZzbwkC2xrThzC",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>372,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>24757,
"customer_id"=>4268,
"item_name"=>nil,
"period_range_start"=>nil,
"period_range_end"=>nil,
"currency"=>"EUR",
"exchange_rate"=>1,
"component_handle"=>nil,
"component_price_point_id"=>nil,
"component_price_point_handle"=>nil,
"parent_id"=>nil,
"role"=>nil,
"card_number"=>nil,
"card_expiration"=>nil,
"card_type"=>nil,
"refunded_amount_in_cents"=>0,
"invoice_id"=>nil},
"event_id"=>51655}
pending_payment_created payload
"subscription"=>
{"id"=>784,
"state"=>"pending",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>nil,
"created_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"updated_at"=>Wed, 18 Aug 2021 05:58:43 EDT -04:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>nil,
"next_assessment_at"=>nil,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"previous_state"=>"pending",
"signup_payment_id"=>3556,
"signup_revenue"=>"500.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>50000,
"product_price_in_cents"=>50000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>168,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"USD",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>708,
"first_name"=>"John",
"last_name"=>"Doe",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"updated_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"reference"=>nil,
"address"=>"Street",
"address_2"=>"",
"city"=>"San Francisco",
"state"=>"CA",
"state_name"=>"California",
"zip"=>"66785",
"country"=>"US",
"country_name"=>"United States",
"phone"=>"123456789",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>154,
"name"=>"golder",
"handle"=>"golderrr",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 05 Jul 2021 08:32:52 EDT -04:00,
"updated_at"=>Tue, 20 Jul 2021 08:08:49 EDT -04:00,
"price_in_cents"=>50000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>true,
"update_return_url"=>"",
"tax_code"=>"4512.100",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>168,
"request_billing_address"=>true,
"require_billing_address"=>true,
"require_shipping_address"=>true,
"product_price_point_id"=>168,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:0a6d2640-bfbb-0139-c94b-2cde48001122",
"product_family"=>
{"id"=>65,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"chargify-billing-plans",
"accounting_code"=>nil,
"created_at"=>Mon, 21 Jun 2021 08:22:16 EDT -04:00,
"updated_at"=>Mon, 21 Jun 2021 08:22:16 EDT -04:00},
"public_signup_pages"=>
[{"id"=>101,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://some-subdomain.chargifypay.test/subscribe/nmxwp8gsjh3t/golderrr"}]},
"credit_card"=>
{"id"=>885,
"first_name"=>"John",
"last_name"=>"Doe",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>1,
"expiration_year"=>2029,
"customer_id"=>708,
"current_vault"=>"digital_river",
"vault_token"=>"b0aeda54-7576-4457-a36b-e775d2730df8",
"billing_address"=>"Street",
"billing_city"=>"San Francisco",
"billing_state"=>"CA",
"billing_zip"=>"66785",
"billing_country"=>"US",
"customer_vault_token"=>"541159940336",
"billing_address_2"=>"",
"payment_type"=>"credit_card",
"disabled"=>false,
"site_gateway_setting_id"=>71},
"group"=>nil},
"transaction"=>
{"id"=>3556,
"subscription_id"=>784,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>50000,
"memo"=>"John Doe - golder: Signup payment",
"created_at"=>Wed, 18 Aug 2021 05:58:43 EDT -04:00,
"starting_balance_in_cents"=>50000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"digital_river",
"gateway_transaction_id"=>"3daa894a-77e5-4bd9-88b9-8e6dd1e84185",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>154,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>1553,
"customer_id"=>708,
"item_name"=>nil,
"period_range_start"=>nil,
"period_range_end"=>nil,
"currency"=>"USD",
"exchange_rate"=>1,
"component_handle"=>nil,
"component_price_point_id"=>nil,
"component_price_point_handle"=>nil,
"parent_id"=>nil,
"role"=>nil,
"card_number"=>"XXXX-XXXX-XXXX-1111",
"card_expiration"=>"01/2029",
"card_type"=>"visa",
"refunded_amount_in_cents"=>0,
"invoice_id"=>nil},
"event_id"=>5432}
pending_payment_completed payload
"subscription"=>
{"id"=>784,
"state"=>"pending",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>nil,
"created_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"updated_at"=>Wed, 18 Aug 2021 05:58:43 EDT -04:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>nil,
"next_assessment_at"=>nil,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"previous_state"=>"pending",
"signup_payment_id"=>3556,
"signup_revenue"=>"500.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>50000,
"product_price_in_cents"=>50000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>168,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"USD",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>708,
"first_name"=>"John",
"last_name"=>"Doe",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"updated_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"reference"=>nil,
"address"=>"Street",
"address_2"=>"",
"city"=>"San Francisco",
"state"=>"CA",
"state_name"=>"California",
"zip"=>"66785",
"country"=>"US",
"country_name"=>"United States",
"phone"=>"123456789",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>154,
"name"=>"golder",
"handle"=>"golderrr",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 05 Jul 2021 08:32:52 EDT -04:00,
"updated_at"=>Tue, 20 Jul 2021 08:08:49 EDT -04:00,
"price_in_cents"=>50000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>true,
"update_return_url"=>"",
"tax_code"=>"4512.100",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>168,
"request_billing_address"=>true,
"require_billing_address"=>true,
"require_shipping_address"=>true,
"product_price_point_id"=>168,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:0a6d2640-bfbb-0139-c94b-2cde48001122",
"product_family"=>
{"id"=>65,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"chargify-billing-plans",
"accounting_code"=>nil,
"created_at"=>Mon, 21 Jun 2021 08:22:16 EDT -04:00,
"updated_at"=>Mon, 21 Jun 2021 08:22:16 EDT -04:00},
"public_signup_pages"=>
[{"id"=>101,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://some-subdomain.chargifypay.test/subscribe/nmxwp8gsjh3t/golderrr"}]},
"credit_card"=>
{"id"=>885,
"first_name"=>"John",
"last_name"=>"Doe",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>1,
"expiration_year"=>2029,
"customer_id"=>708,
"current_vault"=>"digital_river",
"vault_token"=>"b0aeda54-7576-4457-a36b-e775d2730df8",
"billing_address"=>"Street",
"billing_city"=>"San Francisco",
"billing_state"=>"CA",
"billing_zip"=>"66785",
"billing_country"=>"US",
"customer_vault_token"=>"541159940336",
"billing_address_2"=>"",
"payment_type"=>"credit_card",
"disabled"=>false,
"site_gateway_setting_id"=>71},
"group"=>nil},
"transaction"=>
{"id"=>3556,
"subscription_id"=>784,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>50000,
"memo"=>"John Doe - golder: Signup payment",
"created_at"=>Wed, 18 Aug 2021 05:58:43 EDT -04:00,
"starting_balance_in_cents"=>50000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"digital_river",
"gateway_transaction_id"=>"3daa894a-77e5-4bd9-88b9-8e6dd1e84185",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>154,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>1553,
"customer_id"=>708,
"item_name"=>nil,
"period_range_start"=>nil,
"period_range_end"=>nil,
"currency"=>"USD",
"exchange_rate"=>1,
"component_handle"=>nil,
"component_price_point_id"=>nil,
"component_price_point_handle"=>nil,
"parent_id"=>nil,
"role"=>nil,
"card_number"=>"XXXX-XXXX-XXXX-1111",
"card_expiration"=>"01/2029",
"card_type"=>"visa",
"refunded_amount_in_cents"=>0,
"invoice_id"=>nil},
"event_id"=>5432}
pending_payment_failed payload
"subscription"=>
{"id"=>784,
"state"=>"pending",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>nil,
"created_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"updated_at"=>Wed, 18 Aug 2021 05:58:43 EDT -04:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>nil,
"next_assessment_at"=>nil,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"previous_state"=>"pending",
"signup_payment_id"=>3556,
"signup_revenue"=>"500.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>50000,
"product_price_in_cents"=>50000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>168,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"USD",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>708,
"first_name"=>"John",
"last_name"=>"Doe",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"updated_at"=>Wed, 18 Aug 2021 05:58:29 EDT -04:00,
"reference"=>nil,
"address"=>"Street",
"address_2"=>"",
"city"=>"San Francisco",
"state"=>"CA",
"state_name"=>"California",
"zip"=>"66785",
"country"=>"US",
"country_name"=>"United States",
"phone"=>"123456789",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>154,
"name"=>"golder",
"handle"=>"golderrr",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 05 Jul 2021 08:32:52 EDT -04:00,
"updated_at"=>Tue, 20 Jul 2021 08:08:49 EDT -04:00,
"price_in_cents"=>50000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>true,
"update_return_url"=>"",
"tax_code"=>"4512.100",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>168,
"request_billing_address"=>true,
"require_billing_address"=>true,
"require_shipping_address"=>true,
"product_price_point_id"=>168,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:0a6d2640-bfbb-0139-c94b-2cde48001122",
"product_family"=>
{"id"=>65,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"chargify-billing-plans",
"accounting_code"=>nil,
"created_at"=>Mon, 21 Jun 2021 08:22:16 EDT -04:00,
"updated_at"=>Mon, 21 Jun 2021 08:22:16 EDT -04:00},
"public_signup_pages"=>
[{"id"=>101,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://some-subdomain.chargifypay.test/subscribe/nmxwp8gsjh3t/golderrr"}]},
"credit_card"=>
{"id"=>885,
"first_name"=>"John",
"last_name"=>"Doe",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>1,
"expiration_year"=>2029,
"customer_id"=>708,
"current_vault"=>"digital_river",
"vault_token"=>"b0aeda54-7576-4457-a36b-e775d2730df8",
"billing_address"=>"Street",
"billing_city"=>"San Francisco",
"billing_state"=>"CA",
"billing_zip"=>"66785",
"billing_country"=>"US",
"customer_vault_token"=>"541159940336",
"billing_address_2"=>"",
"payment_type"=>"credit_card",
"disabled"=>false,
"site_gateway_setting_id"=>71},
"group"=>nil},
"transaction"=>
{"id"=>3556,
"subscription_id"=>784,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>50000,
"memo"=>"John Doe - golder: Signup payment",
"created_at"=>Wed, 18 Aug 2021 05:58:43 EDT -04:00,
"starting_balance_in_cents"=>50000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"digital_river",
"gateway_transaction_id"=>"3daa894a-77e5-4bd9-88b9-8e6dd1e84185",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>154,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>1553,
"customer_id"=>708,
"item_name"=>nil,
"period_range_start"=>nil,
"period_range_end"=>nil,
"currency"=>"USD",
"exchange_rate"=>1,
"component_handle"=>nil,
"component_price_point_id"=>nil,
"component_price_point_handle"=>nil,
"parent_id"=>nil,
"role"=>nil,
"card_number"=>"XXXX-XXXX-XXXX-1111",
"card_expiration"=>"01/2029",
"card_type"=>"visa",
"refunded_amount_in_cents"=>0,
"invoice_id"=>nil},
"event_id"=>5432}
prepaid_subscription_balance_change payload
"subscription"=>
{"id"=>129431,
"state"=>"expired",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 09 Nov 2020 11:33:10 MST -07:00,
"created_at"=>Mon, 09 Nov 2020 11:33:09 MST -07:00,
"updated_at"=>Mon, 09 Nov 2020 11:57:26 MST -07:00,
"expires_at"=>Mon, 09 Nov 2020 11:37:00 MST -07:00,
"balance_in_cents"=>0,
"current_period_ends_at"=>nil,
"next_assessment_at"=>nil,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>nil,
"payment_collection_method"=>"prepaid",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>nil,
"previous_state"=>"active",
"signup_payment_id"=>3129166,
"signup_revenue"=>"30.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>22000,
"product_price_in_cents"=>0,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>nil,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>16695,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>22000,
"net_terms"=>nil,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"USD",
"on_hold_at"=>nil,
"scheduled_cancellation_at"=>nil,
"customer"=>
{"id"=>214718,
"first_name"=>"Baylee",
"last_name"=>"Brekke",
"organization"=>"Hickle, Strosin and Rice",
"email"=>"Caden20@example.com",
"created_at"=>Mon, 09 Nov 2020 11:32:39 MST -07:00,
"updated_at"=>Mon, 09 Nov 2020 11:33:11 MST -07:00,
"reference"=>nil,
"address"=>"7563 Gutkowski Crescent",
"address_2"=>"Apt. 499",
"city"=>"West Michael",
"state"=>"AZ",
"zip"=>"44635-5049",
"country"=>"US",
"phone"=>"270-305-7838",
"portal_invite_last_sent_at"=>Mon, 09 Nov 2020 11:33:11 MST -07:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>Mon, 09 Nov 2020 11:33:11 MST -07:00,
"vat_number"=>nil,
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>17900,
"name"=>"expires",
"handle"=>nil,
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>1,
"expiration_interval_unit"=>"month",
"created_at"=>Mon, 09 Nov 2020 11:29:50 MST -07:00,
"updated_at"=>Mon, 09 Nov 2020 11:29:50 MST -07:00,
"price_in_cents"=>0,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>false,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"",
"tax_code"=>"",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"",
"default_product_price_point_id"=>16695,
"request_billing_address"=>false,
"require_billing_address"=>false,
"require_shipping_address"=>false,
"product_price_point_id"=>16695,
"product_price_point_name"=>"Original",
"product_price_point_handle"=>"uuid:79d63630-04e7-0139-d7d7-029b6d08343c",
"product_family"=>
{"id"=>10712,
"name"=>"Billing Plans",
"description"=>nil,
"handle"=>"acme-inc-billing-plans",
"accounting_code"=>nil,
"created_at"=>Mon, 27 Apr 2020 07:36:52 MDT -06:00,
"updated_at"=>Mon, 27 Apr 2020 07:36:52 MDT -06:00},
"public_signup_pages"=>[]},
"credit_card"=>
{"id"=>124033,
"first_name"=>"Ciara",
"last_name"=>"Heathcote",
"masked_card_number"=>"XXXX-XXXX-XXXX-1",
"card_type"=>"bogus",
"expiration_month"=>11,
"expiration_year"=>2021,
"customer_id"=>214718,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>"1816 Brekke Wall",
"billing_city"=>"East Milo",
"billing_state"=>"IN",
"billing_zip"=>"00451-1348",
"billing_country"=>"US",
"customer_vault_token"=>nil,
"billing_address_2"=>"Apt. 650",
"payment_type"=>"credit_card",
"disabled"=>false,
"site_gateway_setting_id"=>nil},
"prepaid_configuration"=>
{"id"=>624,
"initial_funding_amount_in_cents"=>3000,
"auto_replenish"=>true,
"replenish_to_amount_in_cents"=>8000,
"replenish_threshold_amount_in_cents"=>3000},
"group"=>nil},
"reason"=>"usage changed",
"current_account_balance_in_cents"=>22000,
"event_id"=>4917496}
prepaid_usage payload
"component"=>
{"id"=>957864,
"kind"=>"prepaid_usage_component",
"name"=>"Minutes",
"unit_name"=>"minutes",
"handle"=>nil},
"subscription"=>{"id"=>32304660, "name"=>"Mario Smith"},
"product"=>{"id"=>4607690, "name"=>"Silver Plan"},
"memo"=>"",
"timestamp"=>"2020-04-28T18:34:36Z",
"price_point_id"=>821647,
"previous_unit_balance"=>"0.0",
"new_unit_balance"=>15,
"usage_quantity"=>15,
"previous_overage_unit_balance"=>"0.0",
"new_overage_unit_balance"=>5,
"overage_usage_quantity"=>5,
"event_id"=>1064815585}
proforma_invoice_issued payload
"site"=>{"id"=>51836, "subdomain"=>"subroll"},
"subscription"=>
{"id"=>39169926,
"current_period_ends_at"=>Sat, 12 Jun 2021 11:48:12 CDT -05:00},
"proforma_invoice"=>
{"uid"=>"pro_9gb7qdmvmyy7y",
"number"=>"45",
"role"=>"proforma_adhoc",
"delivery_date"=>"2021-06-12",
"created_at"=>Thu, 10 Jun 2021 14:03:56 CDT -05:00,
"due_amount"=>"$30,124.00",
"paid_amount"=>"$0.00",
"tax_amount"=>"$0.00",
"total_amount"=>"$30,124.00",
"product_name"=>"trial ",
"line_items"=>
{"0"=>
{"uid"=>"li_9gb7qdmyc4cv7",
"title"=>"trial ",
"description"=>"12 Jun 2021 - 12 Jul 2021",
"quantity"=>1,
"unit_price"=>"$1.00",
"period_range_start"=>"2021-06-12",
"period_range_end"=>"2021-07-12",
"amount"=>"$1.00",
"pricing_details_index"=>nil,
"pricing_details"=>{},
"tax_code"=>nil,
"tax_amount"=>"0.0"},
"1"=>
{"uid"=>"li_9gb7qdmyz5zw6",
"title"=>"Quantity Component",
"description"=>"12 Jun 2021 - 12 Jul 2021",
"quantity"=>30000,
"unit_price"=>"$1.00",
"period_range_start"=>"2021-06-12",
"period_range_end"=>"2021-07-12",
"amount"=>"$30,000.00",
"pricing_details_index"=>nil,
"pricing_details"=>
{"0"=>{"label"=>"30000 at $1.00 each", "amount"=>"$30,000.00"}},
"tax_code"=>nil,
"tax_amount"=>"0.0"},
"2"=>
{"uid"=>"li_9gb7qdmzyd8hj",
"title"=>"onoff",
"description"=>"12 Jun 2021 - 12 Jul 2021",
"quantity"=>1,
"unit_price"=>"$123.00",
"period_range_start"=>"2021-06-12",
"period_range_end"=>"2021-07-12",
"amount"=>"$123.00",
"pricing_details_index"=>nil,
"pricing_details"=>
{"0"=>{"label"=>"1 at $123.00 each", "amount"=>"$123.00"}},
"tax_code"=>nil,
"tax_amount"=>"0.0"}}},
"event_id"=>1504857570}
refund_failure payload
"customer_id"=>15826583,
"customer_email"=>"doristester@example.com",
"customer_name"=>"Doris Tester",
"customer_reference"=>"123456789",
"errors"=>
["Cannot process a refund for a subscription without a payment profile."],
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"gateway_used"=>"bogus",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"memo"=>"Refund for services",
"payment_amount_in_cents"=>6000,
"payment_id"=>173961106,
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"subscription_id"=>16372192,
"timestamp"=>"2017-02-13T19:57:13Z",
"event_id"=>377635202,
"currency"=>"USD"}
refund_success payload
"amount_in_cents"=>16000,
"customer_id"=>15826583,
"customer_email"=>"doristester@example.com",
"customer_name"=>"Doris Tester",
"customer_reference"=>"123456789",
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"gateway_used"=>"bogus",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"memo"=>"Refund for services",
"payment_amount_in_cents"=>16000,
"payment_id"=>173973102,
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"subscription_id"=>16372192,
"timestamp"=>"2017-02-13T19:56:40Z",
"event_id"=>377635077,
"currency"=>"USD"}
renewal_failure payload
{"id"=>16372192,
"state"=>"past_due",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>16000,
"current_period_ends_at"=>Mon, 13 Mar 2017 14:28:05 EDT -04:00,
"next_assessment_at"=>Tue, 14 Feb 2017 13:28:06 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 13:28:05 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>173961106,
"signup_revenue"=>"60.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>6000,
"product_price_in_cents"=>5000,
"product_version_number"=>1,
"payment_type"=>nil,
"referral_code"=>"cz8wdq",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"currency"=>"USD",
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doris@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>nil,
"portal_customer_created_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4442358,
"name"=>"Gold Product",
"handle"=>"gold-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"updated_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"price_in_cents"=>5000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306012,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/7dbsnjd8t8cx/gold-product"},
{"id"=>310598,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ksjh9py5fn5h/gold-product"},
{"id"=>311132,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/kjmks49g8d3d/gold-product"}]}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377601653}
renewal_success payload
{"id"=>16327080,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Thu, 09 Feb 2017 11:42:28 EST -05:00,
"created_at"=>Thu, 09 Feb 2017 11:42:26 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 12:03:41 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>5667,
"current_period_ends_at"=>Wed, 08 Mar 2017 12:00:00 EST -05:00,
"next_assessment_at"=>Wed, 08 Mar 2017 12:00:00 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>"8",
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 12:00:00 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>0,
"signup_revenue"=>"0.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>6900,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"6zcsxw",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"currency"=>"USD",
"customer"=>
{"id"=>15780191,
"first_name"=>"Test ",
"last_name"=>"Monthly",
"organization"=>"",
"email"=>"test@example.com",
"created_at"=>Thu, 09 Feb 2017 11:42:26 EST -05:00,
"updated_at"=>Thu, 09 Feb 2017 11:42:29 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"zip"=>nil,
"country"=>nil,
"phone"=>"",
"portal_invite_last_sent_at"=>Thu, 09 Feb 2017 11:42:29 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>Thu, 09 Feb 2017 11:42:29 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4458204,
"name"=>"Monthly product ",
"handle"=>"monthly-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"updated_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"price_in_cents"=>6900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>312067,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/5x8sbq29vgkn/monthly-product"},
{"id"=>312068,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/vsmzkwvmfqqx/monthly-product"}]},
"credit_card"=>
{"id"=>10881632,
"first_name"=>"Test",
"last_name"=>"Page",
"masked_card_number"=>"XXXX-XXXX-XXXX-1",
"card_type"=>"bogus",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>15780191,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>"",
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"payment_type"=>"credit_card"}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377575304}
signup_failure payload
{"id"=>16374036,
"state"=>"failed_to_create",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>nil,
"created_at"=>Mon, 13 Feb 2017 13:08:30 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:08:31 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>6900,
"current_period_ends_at"=>Wed, 08 Mar 2017 12:00:00 EST -05:00,
"next_assessment_at"=>nil,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>"8",
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 13:08:30 EST -05:00,
"previous_state"=>"failed_to_create",
"signup_payment_id"=>173970546,
"signup_revenue"=>"69.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>6900,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"k9f3h5",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"payer_id"=>15828506,
"currency"=>"USD",
"customer"=>
{"id"=>15828506,
"first_name"=>"Joe",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"joetester@example.com",
"created_at"=>Mon, 13 Feb 2017 13:08:30 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:08:30 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"zip"=>nil,
"country"=>nil,
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false,
"parent_id"=>nil},
"product"=>
{"id"=>4458204,
"name"=>"Monthly product ",
"handle"=>"monthly-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"updated_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"price_in_cents"=>6900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>312067,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/5x8sbq29vgkn/monthly-product"},
{"id"=>312068,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/vsmzkwvmfqqx/monthly-product"}]},
"credit_card"=>
{"id"=>10913241,
"first_name"=>"Joe",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-2",
"card_type"=>"bogus",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>15828506,
"current_vault"=>"bogus",
"vault_token"=>"2",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>"02120",
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"payment_type"=>"credit_card"}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377594843}
signup_success payload
{"id"=>16372192,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>6000,
"current_period_ends_at"=>Mon, 13 Mar 2017 12:50:55 EDT -04:00,
"next_assessment_at"=>Mon, 13 Mar 2017 12:50:55 EDT -04:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>173961106,
"signup_revenue"=>"60.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>5000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"cz8wdq",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>64,
"payer_id"=>15826583,
"currency"=>"USD",
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doris@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"vat_number"=>"123456789"
"verified"=>nil,
"portal_customer_created_at"=>nil,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false},
"product"=>
{"id"=>4442358,
"name"=>"Gold Product",
"handle"=>"gold-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"updated_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"price_in_cents"=>5000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"tax_code"=>"PC040100",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306012,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/7dbsnjd8t8cx/gold-product"},
{"id"=>310598,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ksjh9py5fn5h/gold-product"},
{"id"=>311132,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/kjmks49g8d3d/gold-product"}]},
"credit_card"=>
{"id"=>10911728,
"first_name"=>"Doris",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>15826583,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>"123 Anywhere Street",
"billing_city"=>"Boston",
"billing_state"=>"MA",
"billing_zip"=>"02120",
"billing_country"=>"US",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377569865}
statement_closed payload
"subscription"=>
{"id"=>16372192, "state"=>"past_due", "balance_in_cents"=>16000, "currency"=>"USD"},
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"reference"=>"123456789",
"organization"=>"Acme",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"email"=>"doris@example.com",
"phone"=>"555-555-1212"},
"statement"=>
{"closed_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 13:15:22 EST -05:00,
"id"=>85705040,
"opened_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"settled_at"=>nil,
"subscription_id"=>16372192,
"updated_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>0,
"ending_balance_in_cents"=>16000,
"total_in_cents"=>16000,
"memo"=>"We thank you for your continued business!",
"events"=>
{"0"=>
{"id"=>377601643,
"key"=>"billing_date_change",
"message"=>
"Billing date changed on Doris Tester's subscription to Gold Product from 03/13/2017 to 02/13/2017"}},
"transactions"=>
{"0"=>
{"id"=>173970824,
"subscription_id"=>16372192,
"type"=>"Adjustment",
"kind"=>nil,
"transaction_type"=>"adjustment",
"success"=>true,
"amount_in_cents"=>10000,
"memo"=>"100",
"created_at"=>Mon, 13 Feb 2017 13:15:22 EST -05:00,
"starting_balance_in_cents"=>0,
"ending_balance_in_cents"=>10000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85705040,
"customer_id"=>15826583,
"currency"=>"USD"},
"1"=>
{"id"=>173972839,
"subscription_id"=>16372192,
"type"=>"Charge",
"kind"=>"baseline",
"transaction_type"=>"charge",
"success"=>true,
"amount_in_cents"=>5000,
"memo"=>"Gold Product (02/13/2017 - 03/13/2017)",
"created_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>10000,
"ending_balance_in_cents"=>15000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85705040,
"customer_id"=>15826583,
"original_amount_in_cents"=>nil,
"discount_amount_in_cents"=>nil,
"taxable_amount_in_cents"=>nil,
"currency"=>"USD",
"taxations"=>{}},
"2"=>
{"id"=>173972840,
"subscription_id"=>16372192,
"type"=>"Charge",
"kind"=>"quantity_based_component",
"transaction_type"=>"charge",
"success"=>true,
"amount_in_cents"=>1000,
"memo"=>"Quantity Component: 10 Quantity Components",
"created_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>15000,
"ending_balance_in_cents"=>16000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>375250,
"statement_id"=>85705040,
"customer_id"=>15826583,
"original_amount_in_cents"=>nil,
"discount_amount_in_cents"=>nil,
"taxable_amount_in_cents"=>nil,
"currency"=>"USD",
"taxations"=>{}},
"3"=>
{"id"=>173972841,
"subscription_id"=>16372192,
"type"=>"InfoTransaction",
"kind"=>nil,
"transaction_type"=>"info",
"success"=>false,
"amount_in_cents"=>0,
"memo"=>"No credit card was on file for the $160.00 balance",
"created_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>16000,
"ending_balance_in_cents"=>16000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85705040,
"customer_id"=>15826583,
"currency"=>"USD"}},
"future_payments"=>{}},
"product"=>{"id"=>4442358, "name"=>"Gold Product"},
"product_family"=>{"id"=>986840, "name"=>"Acme Products"},
"payment_profile"=>{},
"event_id"=>377601654}
statement_settled payload
"subscription"=>{"id"=>16372192, "state"=>"active", "balance_in_cents"=>0, "currency"=>"USD"},
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"reference"=>"123456789",
"organization"=>"Acme",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"email"=>"doris@example.com",
"phone"=>"555-555-1212"},
"statement"=>
{"closed_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 13:15:22 EST -05:00,
"id"=>85705040,
"opened_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"settled_at"=>Mon, 13 Feb 2017 13:33:13 EST -05:00,
"subscription_id"=>16372192,
"updated_at"=>Mon, 13 Feb 2017 13:33:13 EST -05:00,
"starting_balance_in_cents"=>0,
"ending_balance_in_cents"=>16000,
"total_in_cents"=>16000,
"memo"=>"We thank you for your continued business!",
"events"=>
{"0"=>
{"id"=>377601643,
"key"=>"billing_date_change",
"message"=>
"Billing date changed on Doris Tester's subscription to Gold Product from 03/13/2017 to 02/13/2017"},
"1"=>
{"id"=>377601650,
"key"=>"subscription_state_change",
"message"=>
"State changed on Doris Tester's subscription to Gold Product from active to past_due"},
"2"=>
{"id"=>377601653,
"key"=>"renewal_failure",
"message"=>
"Failed renewal for Doris Tester's subscription to Gold Product"}},
"transactions"=>
{"0"=>
{"id"=>173970824,
"subscription_id"=>16372192,
"type"=>"Adjustment",
"kind"=>nil,
"transaction_type"=>"adjustment",
"success"=>true,
"amount_in_cents"=>10000,
"memo"=>"100",
"created_at"=>Mon, 13 Feb 2017 13:15:22 EST -05:00,
"starting_balance_in_cents"=>0,
"ending_balance_in_cents"=>10000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85705040,
"customer_id"=>15826583,
"currency"=>"USD"},
"1"=>
{"id"=>173972839,
"subscription_id"=>16372192,
"type"=>"Charge",
"kind"=>"baseline",
"transaction_type"=>"charge",
"success"=>true,
"amount_in_cents"=>5000,
"memo"=>"Gold Product (02/13/2017 - 03/13/2017)",
"created_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>10000,
"ending_balance_in_cents"=>15000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>173973102,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85705040,
"customer_id"=>15826583,
"original_amount_in_cents"=>nil,
"discount_amount_in_cents"=>nil,
"taxable_amount_in_cents"=>nil,
"currency"=>"USD",
"taxations"=>{}},
"2"=>
{"id"=>173972840,
"subscription_id"=>16372192,
"type"=>"Charge",
"kind"=>"quantity_based_component",
"transaction_type"=>"charge",
"success"=>true,
"amount_in_cents"=>1000,
"memo"=>"Quantity Component: 10 Quantity Components",
"created_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>15000,
"ending_balance_in_cents"=>16000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>173973102,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>375250,
"statement_id"=>85705040,
"customer_id"=>15826583,
"original_amount_in_cents"=>nil,
"discount_amount_in_cents"=>nil,
"taxable_amount_in_cents"=>nil,
"currency"=>"USD",
"taxations"=>{}},
"3"=>
{"id"=>173972841,
"subscription_id"=>16372192,
"type"=>"InfoTransaction",
"kind"=>nil,
"transaction_type"=>"info",
"success"=>false,
"amount_in_cents"=>0,
"memo"=>"No credit card was on file for the $160.00 balance",
"created_at"=>Mon, 13 Feb 2017 13:28:06 EST -05:00,
"starting_balance_in_cents"=>16000,
"ending_balance_in_cents"=>16000,
"gateway_used"=>nil,
"gateway_transaction_id"=>nil,
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85705040,
"customer_id"=>15826583,
"currency"=>"USD"}},
"future_payments"=>
{"0"=>
{"id"=>173973102,
"subscription_id"=>16372192,
"type"=>"Payment",
"kind"=>nil,
"transaction_type"=>"payment",
"success"=>true,
"amount_in_cents"=>16000,
"memo"=>"Doris Tester - Gold Product: Renewal payment",
"created_at"=>Mon, 13 Feb 2017 13:33:13 EST -05:00,
"starting_balance_in_cents"=>16000,
"ending_balance_in_cents"=>0,
"gateway_used"=>"bogus",
"gateway_transaction_id"=>"53433",
"gateway_order_id"=>nil,
"payment_id"=>nil,
"product_id"=>4442358,
"tax_id"=>nil,
"component_id"=>nil,
"statement_id"=>85706001,
"customer_id"=>15826583,
"card_number"=>"XXXX-XXXX-XXXX-1111",
"card_expiration"=>"02/2018",
"card_type"=>"visa",
"refunded_amount_in_cents"=>0}}},
"product"=>{"id"=>4442358, "name"=>"Gold Product"},
"product_family"=>{"id"=>986840, "name"=>"Acme Products"},
"payment_profile"=>
{"id"=>10914352,
"first_name"=>"Doris",
"last_name"=>"Tester",
"billing_address"=>"",
"billing_address_2"=>"",
"billing_city"=>"",
"billing_country"=>"",
"billing_state"=>"",
"billing_zip"=>""},
"event_id"=>377602845}
subscription_card_update payload
"subscription"=>{"id"=>16372192, "state"=>"active", "balance_in_cents"=>0},
"product"=>
{"id"=>4442358,
"name"=>"Gold Product",
"product_family_id"=>986840,
"product_family_name"=>"Acme Products"},
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"reference"=>"123456789",
"organization"=>"Acme",
"email"=>"doris@example.com"},
"previous_payment_profile"=>{},
"updated_payment_profile"=>
{"id"=>10914352,
"first_name"=>"Doris",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>2,
"expiration_year"=>2018,
"current_vault"=>"bogus",
"vault_token"=>"1",
"customer_vault_token"=>nil,
"billing_address"=>"",
"billing_address_2"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>""},
"event_id"=>377602844}
subscription_group_card_update payload
"subscription_group"=>{"uid"=>"grp_96w3wg7hhnbjk", "state"=>"active"},
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"reference"=>"123456789",
"organization"=>"Acme",
"email"=>"doris@example.com"},
"previous_payment_profile"=>{},
"updated_payment_profile"=>
{"id"=>10914352,
"first_name"=>"Doris",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>2,
"expiration_year"=>2018,
"current_vault"=>"bogus",
"vault_token"=>"1",
"customer_vault_token"=>nil,
"billing_address"=>"",
"billing_address_2"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>""},
"event_id"=>377602844}
subscription_product_change payload
{"id"=>16372192,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:40:29 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Thu, 13 Apr 2017 14:28:00 EDT -04:00,
"next_assessment_at"=>Thu, 13 Apr 2017 14:28:00 EDT -04:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 13:28:05 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>173961106,
"signup_revenue"=>"60.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>22000,
"product_price_in_cents"=>4900,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"cz8wdq",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doris@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"vat_number"=>"123456789"
"verified"=>nil,
"portal_customer_created_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false},
"product"=>
{"id"=>4443536,
"name"=>"Business Monthly",
"handle"=>"pd_plans_v2_business_mn_1_10",
"description"=>"Business Monthly",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 19 Dec 2016 15:58:09 EST -05:00,
"updated_at"=>Mon, 19 Dec 2016 15:58:09 EST -05:00,
"price_in_cents"=>4900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>0,
"trial_interval"=>1,
"trial_interval_unit"=>"day",
"archived_at"=>nil,
"require_credit_card"=>false,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306548,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/jtvkftj84jsq/pd_plans_v2_business_mn_1_10"}]},
"credit_card"=>
{"id"=>10914352,
"first_name"=>"Doris",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>2,
"expiration_year"=>2018,
"customer_id"=>15826583,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>"",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"}},
"previous_product"=>
{"id"=>4442358,
"name"=>"Gold Product",
"handle"=>"gold-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"updated_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"price_in_cents"=>5000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306012,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/7dbsnjd8t8cx/gold-product"},
{"id"=>310598,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ksjh9py5fn5h/gold-product"},
{"id"=>311132,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/kjmks49g8d3d/gold-product"}]},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377604632}
subscription_state_change payload
{"id"=>16372192,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:33:14 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>16000,
"current_period_ends_at"=>Mon, 13 Mar 2017 14:28:05 EDT -04:00,
"next_assessment_at"=>Tue, 14 Feb 2017 13:28:06 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 13:28:05 EST -05:00,
"previous_state"=>"past_due",
"signup_payment_id"=>173961106,
"signup_revenue"=>"60.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>6000,
"product_price_in_cents"=>5000,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"cz8wdq",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doris@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"vat_number"=>"123456789"
"verified"=>nil,
"portal_customer_created_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>nil,
"tax_exempt"=>false},
"product"=>
{"id"=>4442358,
"name"=>"Gold Product",
"handle"=>"gold-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"updated_at"=>Thu, 15 Dec 2016 09:32:36 EST -05:00,
"price_in_cents"=>5000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306012,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/7dbsnjd8t8cx/gold-product"},
{"id"=>310598,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ksjh9py5fn5h/gold-product"},
{"id"=>311132,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/kjmks49g8d3d/gold-product"}]},
"credit_card"=>
{"id"=>10914352,
"first_name"=>"Doris",
"last_name"=>"Tester",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>2,
"expiration_year"=>2018,
"customer_id"=>15826583,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>"",
"billing_city"=>"",
"billing_state"=>"",
"billing_zip"=>"",
"billing_country"=>"",
"customer_vault_token"=>nil,
"billing_address_2"=>"",
"payment_type"=>"credit_card"}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"event_id"=>377602840}
trial_end_notice payload
"customer"=>
{"id"=>16609933,
"first_name"=>"Chester",
"last_name"=>"Tester",
"reference"=>"4363421",
"organization"=>nil,
"email"=>"chester.tester@example.com"},
"email_sent"=>false,
"estimated_renewal_amount_in_cents"=>2995,
"message"=>
"End of trial for trial ending on 03/23/2017 for Chester Tester's subscription to Monthly Plan",
"payment_profile"=>
{"id"=>12345678,
"first_name"=>"Chester",
"last_name"=>"Tester",
"card_type"=>"master",
"masked_card_number"=>"XXXX-XXXX-XXXX-6404",
"expiration_month"=>10,
"expiration_year"=>2019},
"product"=>
{"id"=>3768589,
"name"=>"Monthly Plan",
"product_family_id"=>453572,
"product_family_name"=>"Forms"},
"subscription"=>
{"id"=>17127660,
"state"=>"trialing",
"current_period_ends_at"=>Thu, 23 Mar 2017 13:58:14 EDT -04:00},
"event_id"=>390281866}
upcoming_renewal_notice payload
"customer" => {
"id" => 15146757,
"first_name" => "Katharine",
"last_name" => "Ross",
"reference" => nil,
"organization" => "",
"email" => "kross@example.com"},
"email_sent" => true,
"estimated_renewal_amount_in_cents" => 5000,
"message" =>
"Upcoming renewal notice sent for period ending on 02/20/2017 for Katharine Ross's subscription to Gold Product",
"payment_profile" => {
"id" => 10485399,
"first_name" => "Katharine",
"last_name" => "Ross",
"card_type" => "bogus",
"masked_card_number" => "XXXX-XXXX-XXXX-1",
"expiration_month" => 1,
"expiration_year" => 2026},
"product" => {
"id" => 4442358,
"name" => "Gold Product",
"product_family_id" => 986840,
"product_family_name" => "Acme Products"},
"subscription" => {
"id" => 15690494,
"state" => "active",
"current_period_ends_at" => Mon, 20 Feb 2017 12: 00: 00 EST - 05: 00},
"event_id" => 378968302}
upgrade_downgrade_failure payload
{"id"=>16372192,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Mon, 13 Feb 2017 11:50:57 EST -05:00,
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 14:59:39 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Fri, 17 Feb 2017 14:28:00 EST -05:00,
"next_assessment_at"=>Fri, 17 Feb 2017 14:28:00 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 13:28:05 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>173961106,
"signup_revenue"=>"60.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>6000,
"product_price_in_cents"=>4900,
"product_version_number"=>1,
"payment_type"=>nil,
"referral_code"=>"cz8wdq",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer"=>
{"id"=>15826583,
"first_name"=>"Doris",
"last_name"=>"Tester",
"organization"=>"Acme",
"email"=>"doristester@example.com",
"created_at"=>Mon, 13 Feb 2017 11:50:55 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 13:42:07 EST -05:00,
"reference"=>"123456789",
"address"=>"123 Anywhere Street",
"address_2"=>"",
"city"=>"Boston",
"state"=>"MA",
"zip"=>"02120",
"country"=>"US",
"phone"=>"555-555-1212",
"portal_invite_last_sent_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>Mon, 13 Feb 2017 11:50:58 EST -05:00,
"vat_number"=>"123456789"
"cc_emails"=>"",
"tax_exempt"=>false},
"product"=>
{"id"=>4443536,
"name"=>"Business Monthly",
"handle"=>"pd_plans_v2_business_mn_1_10",
"description"=>"Business Monthly",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 19 Dec 2016 15:58:09 EST -05:00,
"updated_at"=>Mon, 19 Dec 2016 15:58:09 EST -05:00,
"price_in_cents"=>4900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>0,
"trial_interval"=>1,
"trial_interval_unit"=>"day",
"archived_at"=>nil,
"require_credit_card"=>false,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306548,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/jtvkftj84jsq/pd_plans_v2_business_mn_1_10"}]}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"target_product"=>
{"id"=>4458204,
"name"=>"Monthly product ",
"handle"=>"monthly-product",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"updated_at"=>Wed, 08 Feb 2017 16:48:54 EST -05:00,
"price_in_cents"=>6900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>"month",
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>312067,
"return_url"=>nil,
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/5x8sbq29vgkn/monthly-product"},
{"id"=>312068,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/vsmzkwvmfqqx/monthly-product"}]},
"event_id"=>377635953}
upgrade_downgrade_success payload
{"id"=>16297395,
"state"=>"trialing",
"trial_started_at"=>Mon, 13 Feb 2017 15:00:02 EST -05:00,
"trial_ended_at"=>Tue, 14 Feb 2017 15:00:02 EST -05:00,
"activated_at"=>Wed, 08 Feb 2017 16:23:22 EST -05:00,
"created_at"=>Tue, 07 Feb 2017 16:06:06 EST -05:00,
"updated_at"=>Mon, 13 Feb 2017 15:00:02 EST -05:00,
"expires_at"=>nil,
"balance_in_cents"=>177,
"current_period_ends_at"=>Tue, 14 Feb 2017 15:00:02 EST -05:00,
"next_assessment_at"=>Tue, 14 Feb 2017 15:00:02 EST -05:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"invoice",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Mon, 13 Feb 2017 15:00:01 EST -05:00,
"previous_state"=>"active",
"signup_payment_id"=>173249657,
"signup_revenue"=>"0.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>0,
"product_price_in_cents"=>4900,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>"j63942",
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"product_price_point_id"=>1,
"next_product_price_point_id"=>nil,
"customer"=>
{"id"=>15751842,
"first_name"=>"Steve",
"last_name"=>"Test",
"organization"=>"",
"email"=>"steve@example.com",
"created_at"=>Tue, 07 Feb 2017 16:06:06 EST -05:00,
"updated_at"=>Tue, 07 Feb 2017 16:06:10 EST -05:00,
"reference"=>nil,
"address"=>nil,
"address_2"=>nil,
"city"=>nil,
"state"=>nil,
"zip"=>nil,
"country"=>nil,
"phone"=>"",
"portal_invite_last_sent_at"=>Tue, 07 Feb 2017 16:06:10 EST -05:00,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>Tue, 07 Feb 2017 16:06:10 EST -05:00,
"cc_emails"=>nil,
"tax_exempt"=>false},
"product"=>
{"id"=>4443536,
"name"=>"Business Monthly",
"handle"=>"pd_plans_v2_business_mn_1_10",
"description"=>"Business Monthly",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 19 Dec 2016 15:58:09 EST -05:00,
"updated_at"=>Mon, 19 Dec 2016 15:58:09 EST -05:00,
"price_in_cents"=>4900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>0,
"trial_interval"=>1,
"trial_interval_unit"=>"day",
"archived_at"=>nil,
"require_credit_card"=>false,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>306548,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/jtvkftj84jsq/pd_plans_v2_business_mn_1_10"}]},
"credit_card"=>
{"id"=>10865912,
"first_name"=>"Steve",
"last_name"=>"Test",
"masked_card_number"=>"XXXX-XXXX-XXXX-1",
"card_type"=>"bogus",
"expiration_month"=>1,
"expiration_year"=>2027,
"customer_id"=>15751842,
"current_vault"=>"bogus",
"vault_token"=>"1",
"billing_address"=>nil,
"billing_city"=>nil,
"billing_state"=>nil,
"billing_zip"=>"",
"billing_country"=>nil,
"customer_vault_token"=>nil,
"billing_address_2"=>nil,
"payment_type"=>"credit_card"}},
"site"=>{"id"=>31615, "subdomain"=>"general-goods"},
"previous_product"=>
{"id"=>4453830,
"name"=>"Trial No obligation",
"handle"=>"trial-no-obligation",
"description"=>"",
"accounting_code"=>"",
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>"never",
"created_at"=>Mon, 23 Jan 2017 09:53:23 EST -05:00,
"updated_at"=>Thu, 26 Jan 2017 13:35:29 EST -05:00,
"price_in_cents"=>1000,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>0,
"trial_interval"=>1,
"trial_interval_unit"=>"day",
"archived_at"=>nil,
"require_credit_card"=>false,
"return_params"=>"",
"taxable"=>false,
"update_return_url"=>"http://www.example.com",
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>"id={subscription_id}&ref={customer_reference}",
"default_product_price_point_id"=>1,
"product_price_point_id"=>1,
"product_price_point_handle"=>nil,
"product_family"=>
{"id"=>986840,
"name"=>"Acme Products",
"description"=>"",
"handle"=>"acme-products",
"accounting_code"=>nil},
"public_signup_pages"=>
[{"id"=>310559,
"return_url"=>"",
"return_params"=>"",
"url"=>
"https://general-goods.chargifypay.com/subscribe/ngbsvxv4hq7q/trial-no-obligation"}]},
"event_id"=>377636059}
pending_cancellation_change payload
"subscription"=>
{"id"=>13,
"state"=>"active",
"trial_started_at"=>nil,
"trial_ended_at"=>nil,
"activated_at"=>Sat, 01 Feb 2020 10:38:50 EST -05:00,
"created_at"=>Sat, 01 Feb 2020 10:38:49 EST -05:00,
"updated_at"=>Fri, 10 Apr 2020 04:22:55 EDT -04:00,
"expires_at"=>nil,
"balance_in_cents"=>0,
"current_period_ends_at"=>Thu, 07 May 2020 04:33:39 EDT -04:00,
"next_assessment_at"=>Thu, 07 May 2020 04:33:39 EDT -04:00,
"canceled_at"=>nil,
"cancellation_message"=>nil,
"next_product_id"=>nil,
"next_product_handle"=>nil,
"cancel_at_end_of_period"=>false,
"payment_collection_method"=>"automatic",
"snap_day"=>nil,
"cancellation_method"=>nil,
"current_period_started_at"=>Tue, 07 Apr 2020 04:33:39 EDT -04:00,
"previous_state"=>"canceled",
"signup_payment_id"=>0,
"signup_revenue"=>"0.00",
"delayed_cancel_at"=>nil,
"coupon_code"=>nil,
"total_revenue_in_cents"=>31918,
"product_price_in_cents"=>29900,
"product_version_number"=>1,
"payment_type"=>"credit_card",
"referral_code"=>nil,
"coupon_use_count"=>nil,
"coupon_uses_allowed"=>nil,
"reason_code"=>nil,
"automatically_resume_at"=>nil,
"coupon_codes"=>[],
"offer_id"=>nil,
"payer_id"=>8,
"receives_invoice_emails"=>nil,
"product_price_point_id"=>114,
"next_product_price_point_id"=>nil,
"credit_balance_in_cents"=>0,
"prepayment_balance_in_cents"=>0,
"net_terms"=>2,
"stored_credential_transaction_id"=>nil,
"locale"=>nil,
"reference"=>nil,
"currency"=>"USD",
"customer"=>
{"id"=>8,
"first_name"=>"Marty",
"last_name"=>"McFly",
"organization"=>nil,
"email"=>"timetraveller1985@example.com",
"created_at"=>Sat, 01 Feb 2020 10:40:43 EST -05:00,
"updated_at"=>Fri, 03 Apr 2020 05:58:47 EDT -04:00,
"reference"=>nil,
"address"=>"100 Shipping St.",
"address_2"=>"Apt 200",
"city"=>"Pleasantville",
"state"=>"NC",
"zip"=>"12345",
"country"=>"US",
"phone"=>nil,
"portal_invite_last_sent_at"=>nil,
"portal_invite_last_accepted_at"=>nil,
"verified"=>false,
"portal_customer_created_at"=>nil,
"vat_number"=>nil,
"cc_emails"=>"john@example.com, sue@example.com",
"tax_exempt"=>false,
"parent_id"=>nil,
"locale"=>nil},
"product"=>
{"id"=>114,
"name"=>"Professional Plan",
"handle"=>"server-professional",
"description"=>
"Voluptatem et quod delectus ut. Reiciendis repudiandae nemo et doloribus. Maxime velit ut.",
"accounting_code"=>nil,
"request_credit_card"=>true,
"expiration_interval"=>nil,
"expiration_interval_unit"=>nil,
"created_at"=>Sat, 01 Feb 2020 10:40:43 EST -05:00,
"updated_at"=>Sat, 01 Feb 2020 10:40:43 EST -05:00,
"price_in_cents"=>29900,
"interval"=>1,
"interval_unit"=>"month",
"initial_charge_in_cents"=>nil,
"trial_price_in_cents"=>nil,
"trial_interval"=>nil,
"trial_interval_unit"=>nil,
"archived_at"=>nil,
"require_credit_card"=>true,
"return_params"=>nil,
"taxable"=>true,
"update_return_url"=>nil,
"tax_code"=>nil,
"initial_charge_after_trial"=>false,
"version_number"=>1,
"update_return_params"=>nil,
"default_product_price_point_id"=>114,
"product_price_point_id"=>114,
"product_price_point_name"=>"Default",
"product_price_point_handle"=>"uuid:213b0f81-2737-0138-4a11-2cde48001122",
"product_family"=>
{"id"=>29,
"name"=>"Cloud Compute Servers",
"description"=>nil,
"handle"=>"cloud-compute-servers",
"accounting_code"=>nil},
"public_signup_pages"=>[]},
"credit_card"=>
{"id"=>8,
"first_name"=>"Marty",
"last_name"=>"McFly",
"masked_card_number"=>"XXXX-XXXX-XXXX-1111",
"card_type"=>"visa",
"expiration_month"=>12,
"expiration_year"=>2022,
"customer_id"=>8,
"current_vault"=>"",
"vault_token"=>"1",
"billing_address"=>"200 Billing Rd.",
"billing_city"=>"Needham",
"billing_state"=>"MA",
"billing_zip"=>"02494",
"billing_country"=>"US",
"customer_vault_token"=>nil,
"billing_address_2"=>"Suite 100",
"payment_type"=>"credit_card",
"disabled"=>false}},
"cancellation_state"=>"cleared",
"cancels_at"=>nil,
"event_id"=>315}