Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
curl -u <api_key>:x -H Accept:application/json -H Content-Type:application/json https://acme.chargify.com/subscriptions.json
[
{
"subscription": {
"activated_at": "2010-08-22T07:13:19-04:00",
"created_at": "2010-08-22T07:13:18-04:00",
"expires_at": null,
"cancellation_message": "Customer requested cancellation",
"trial_ended_at": null,
"updated_at": "2010-08-22T07:13:18-04:00",
"credit_card": {
"customer_vault_token": null,
"vault_token": "1",
"card_type": "bogus",
"current_vault": "bogus",
"billing_city": null,
"billing_state": null,
"expiration_year": 2014,
"billing_address_2": null,
"id": 80743,
"masked_card_number": "XXXX-XXXX-XXXX-1",
"billing_address": null,
"billing_country": null,
"billing_zip": "",
"expiration_month": 5,
"last_name": "Doe",
"customer_id": 143068,
"first_name": "John"
},
"id": 140019,
"product": {
"product_family": {
"name": "Acme Projects",
"handle": "acme-projects",
"accounting_code": null,
"id": 2526,
"description": null
},
"name": "Pro Plan",
"created_at": "2010-08-03T11:36:24-04:00",
"handle": "pro",
"return_params": null,
"price_in_cents": 5000,
"return_url": null,
"accounting_code": null,
"expiration_interval": null,
"expiration_interval_unit": null,
"trial_interval": null,
"updated_at": "2010-08-03T11:36:24-04:00",
"id": 7934,
"initial_charge_in_cents": null,
"require_credit_card": true,
"interval": 1,
"trial_price_in_cents": null,
"description": null,
"request_credit_card": true,
"archived_at": null,
"interval_unit": "month",
"trial_interval_unit": null
},
"current_period_ends_at": "2010-09-22T07:13:18-04:00",
"next_assessment_at": "2010-09-22T07:13:18-04:00",
"trial_started_at": null,
"customer": {
"address": null,
"city": null,
"reference": null,
"created_at": "2010-08-22T07:13:18-04:00",
"zip": null,
"country": null,
"updated_at": "2010-08-22T07:13:18-04:00",
"id": 143068,
"address_2": null,
"last_name": "Doe",
"phone": "",
"organization": "",
"email": "john@example.com",
"first_name": "John",
"state": null
},
"balance_in_cents": 0,
"current_period_started_at": "2010-08-22T07:13:18-04:00",
"state": "canceled"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment