API: Statements
Chargify Statements give you and your customers a breakdown of Subscription charges, payments, credits, and activity on a period-by-period basis. A Statement is similar to an “Invoice” because it is marked as currently paid or unpaid. Statements display all account activity for a specific usage period.
All of the statement attribute fields are returned from GET (read) operations. Note, all of these attributes are read only.
idThe unique identifier for this statement within Chargifysubscription_idThe unique identifier of the subscription associated with the statementopened_atThe date that the statement was openedclosed_atThe date that the statement was closedsettled_atThe date that the statement was settledtext_viewA text representation of the statementbasic_html_viewA simple HTML representation of the statementhtml_viewA more robust HTML representation of the statementfuture_paymentsA collection of payments from future statements that pay charges on this statementstarting_balance_in_centsThe subscription’s balance at the time the statement was openedending_balance_in_centsThe subscription’s balance at the time the statement was closedcustomer_first_nameThe customer’s first namecustomer_last_nameThe customer’s last namecustomer_organizationThe customer’s organizationcustomer_shipping_addressThe customer’s shipping addresscustomer_shipping_address_2The customer’s shipping address, line 2customer_shipping_cityThe customer’s shipping citycustomer_shipping_stateThe customer’s shipping statecustomer_shipping_countryThe customer’s shipping countrycustomer_shipping_zipThe customer’s shipping zipcustomer_billing_addressThe customer’s billing addresscustomer_billing_address_2The customer’s billing address, line 2customer_billing_cityThe customer’s billing citycustomer_billing_stateThe customer’s billing statecustomer_billing_countryThe customer’s billing countrycustomer_billing_zipThe customer’s billing ziptransactionsA collection of the transaction objects associated with the statementeventsA collection of the event objects associated with the statementcreated_atThe creation date for this statementupdated_atThe date of last update for this statement
Methods
List Statement IDs for a Subscription
URL: https://<subdomain>.chargify.com/subscriptions/<subscription_id>/statements/ids.<format>
Method: GET
Optional Parameters: page
Response: An array of Statement IDs for a subscription
Note that the per_page parameter is preset to 10,000.
List Statement IDs for a Site
URL: https://<subdomain>.chargify.com/statements/ids.<format>
Method: GET
Optional Parameters: page
Response: An array of Statement IDs for a site
Note that the per_page parameter is preset to 10,000.
JSON Output
{
"statement_ids":[1,2,3,4 ... 9999,10000]
}
XML Output
<statement_ids>
<id>1</id>
<id>2</id>
...
<id>9999</id>
<id>10000</id>
</statement_ids>
List Statements for a Subscription
URL: https://<subdomain>.chargify.com/subscriptions/<subscription_id>/statements.<format>
Method: GET
Optional Parameters: page
Response: An array of Statements
Read/Show (via Chargify ID)
URL: https://<subdomain>.chargify.com/statements/<id>.<format>
Method: GET
Required Parameters: id
Response: An single Statement
Rendering Statements on Your Site
The Statements API offers three ways to easily render a statement on your site. You can include a text representation of the statement or one of two HTML views that can be styled to your liking.
text_viewA text representation of the statementbasic_html_viewA simple HTML representation of the statementhtml_viewA more robust HTML representation of the statement