mirror of
https://github.com/bitwarden/server.git
synced 2024-11-30 13:33:24 +01:00
312 lines
10 KiB
JSON
312 lines
10 KiB
JSON
{
|
|
"id": "evt_1NvKjSIGBnsLynRrS3MTK4DZ",
|
|
"object": "event",
|
|
"account": "acct_19smIXIGBnsLynRr",
|
|
"api_version": "2024-06-20",
|
|
"created": 1695909502,
|
|
"data": {
|
|
"object": {
|
|
"id": "cus_Of54kUr3gV88lM",
|
|
"object": "customer",
|
|
"address": {
|
|
"city": null,
|
|
"country": "US",
|
|
"line1": "",
|
|
"line2": null,
|
|
"postal_code": "33701",
|
|
"state": null
|
|
},
|
|
"balance": 0,
|
|
"created": 1695056798,
|
|
"currency": "usd",
|
|
"default_source": "src_1NtAfeIGBnsLynRrYDrceax7",
|
|
"delinquent": false,
|
|
"description": "Premium User",
|
|
"discount": null,
|
|
"email": "premium@bitwarden.com",
|
|
"invoice_prefix": "C506E8CE",
|
|
"invoice_settings": {
|
|
"custom_fields": [
|
|
{
|
|
"name": "Subscriber",
|
|
"value": "Premium User"
|
|
}
|
|
],
|
|
"default_payment_method": "pm_1Nrku9IGBnsLynRrcsQ3hy6C",
|
|
"footer": null,
|
|
"rendering_options": null
|
|
},
|
|
"livemode": false,
|
|
"metadata": {
|
|
"region": "US"
|
|
},
|
|
"name": null,
|
|
"next_invoice_sequence": 2,
|
|
"phone": null,
|
|
"preferred_locales": [
|
|
],
|
|
"shipping": null,
|
|
"tax_exempt": "none",
|
|
"test_clock": null,
|
|
"account_balance": 0,
|
|
"cards": {
|
|
"object": "list",
|
|
"data": [
|
|
],
|
|
"has_more": false,
|
|
"total_count": 0,
|
|
"url": "/v1/customers/cus_Of54kUr3gV88lM/cards"
|
|
},
|
|
"default_card": null,
|
|
"default_currency": "usd",
|
|
"sources": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "src_1NtAfeIGBnsLynRrYDrceax7",
|
|
"object": "source",
|
|
"ach_credit_transfer": {
|
|
"account_number": "test_b2d1c6415f6f",
|
|
"routing_number": "110000000",
|
|
"fingerprint": "ePO4hBQanSft3gvU",
|
|
"swift_code": "TSTEZ122",
|
|
"bank_name": "TEST BANK",
|
|
"refund_routing_number": null,
|
|
"refund_account_holder_type": null,
|
|
"refund_account_holder_name": null
|
|
},
|
|
"amount": null,
|
|
"client_secret": "src_client_secret_bUAP2uDRw6Pwj0xYk32LmJ3K",
|
|
"created": 1695394170,
|
|
"currency": "usd",
|
|
"customer": "cus_Of54kUr3gV88lM",
|
|
"flow": "receiver",
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"owner": {
|
|
"address": null,
|
|
"email": "amount_0@stripe.com",
|
|
"name": null,
|
|
"phone": null,
|
|
"verified_address": null,
|
|
"verified_email": null,
|
|
"verified_name": null,
|
|
"verified_phone": null
|
|
},
|
|
"receiver": {
|
|
"address": "110000000-test_b2d1c6415f6f",
|
|
"amount_charged": 0,
|
|
"amount_received": 0,
|
|
"amount_returned": 0,
|
|
"refund_attributes_method": "email",
|
|
"refund_attributes_status": "missing"
|
|
},
|
|
"statement_descriptor": null,
|
|
"status": "pending",
|
|
"type": "ach_credit_transfer",
|
|
"usage": "reusable"
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/customers/cus_Of54kUr3gV88lM/sources"
|
|
},
|
|
"subscriptions": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "sub_1NrkuBIGBnsLynRrzjFGIjEw",
|
|
"object": "subscription",
|
|
"application": null,
|
|
"application_fee_percent": null,
|
|
"automatic_tax": {
|
|
"enabled": false
|
|
},
|
|
"billing": "charge_automatically",
|
|
"billing_cycle_anchor": 1695056799,
|
|
"billing_thresholds": null,
|
|
"cancel_at": null,
|
|
"cancel_at_period_end": false,
|
|
"canceled_at": null,
|
|
"cancellation_details": {
|
|
"comment": null,
|
|
"feedback": null,
|
|
"reason": null
|
|
},
|
|
"collection_method": "charge_automatically",
|
|
"created": 1695056799,
|
|
"currency": "usd",
|
|
"current_period_end": 1726679199,
|
|
"current_period_start": 1695056799,
|
|
"customer": "cus_Of54kUr3gV88lM",
|
|
"days_until_due": null,
|
|
"default_payment_method": null,
|
|
"default_source": null,
|
|
"default_tax_rates": [
|
|
],
|
|
"description": null,
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"invoice_customer_balance_settings": {
|
|
"consume_applied_balance_on_void": true
|
|
},
|
|
"items": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "si_Of54i3aK9I5Wro",
|
|
"object": "subscription_item",
|
|
"billing_thresholds": null,
|
|
"created": 1695056800,
|
|
"metadata": {
|
|
},
|
|
"plan": {
|
|
"id": "premium-annually",
|
|
"object": "plan",
|
|
"active": true,
|
|
"aggregate_usage": null,
|
|
"amount": 1000,
|
|
"amount_decimal": "1000",
|
|
"billing_scheme": "per_unit",
|
|
"created": 1499289328,
|
|
"currency": "usd",
|
|
"interval": "year",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"name": "Premium (Annually)",
|
|
"nickname": "Premium (Annually)",
|
|
"product": "prod_BUqgYr48VzDuCg",
|
|
"statement_description": null,
|
|
"statement_descriptor": null,
|
|
"tiers": null,
|
|
"tiers_mode": null,
|
|
"transform_usage": null,
|
|
"trial_period_days": null,
|
|
"usage_type": "licensed"
|
|
},
|
|
"price": {
|
|
"id": "premium-annually",
|
|
"object": "price",
|
|
"active": true,
|
|
"billing_scheme": "per_unit",
|
|
"created": 1499289328,
|
|
"currency": "usd",
|
|
"custom_unit_amount": null,
|
|
"livemode": false,
|
|
"lookup_key": null,
|
|
"metadata": {
|
|
},
|
|
"nickname": "Premium (Annually)",
|
|
"product": "prod_BUqgYr48VzDuCg",
|
|
"recurring": {
|
|
"aggregate_usage": null,
|
|
"interval": "year",
|
|
"interval_count": 1,
|
|
"trial_period_days": null,
|
|
"usage_type": "licensed"
|
|
},
|
|
"tax_behavior": "unspecified",
|
|
"tiers_mode": null,
|
|
"transform_quantity": null,
|
|
"type": "recurring",
|
|
"unit_amount": 1000,
|
|
"unit_amount_decimal": "1000"
|
|
},
|
|
"quantity": 1,
|
|
"subscription": "sub_1NrkuBIGBnsLynRrzjFGIjEw",
|
|
"tax_rates": [
|
|
]
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/subscription_items?subscription=sub_1NrkuBIGBnsLynRrzjFGIjEw"
|
|
},
|
|
"latest_invoice": "in_1NrkuBIGBnsLynRr40gyJTVU",
|
|
"livemode": false,
|
|
"metadata": {
|
|
"userId": "91f40b6d-ac3b-4348-804b-b0810119ac6a"
|
|
},
|
|
"next_pending_invoice_item_invoice": null,
|
|
"on_behalf_of": null,
|
|
"pause_collection": null,
|
|
"payment_settings": {
|
|
"payment_method_options": null,
|
|
"payment_method_types": null,
|
|
"save_default_payment_method": "off"
|
|
},
|
|
"pending_invoice_item_interval": null,
|
|
"pending_setup_intent": null,
|
|
"pending_update": null,
|
|
"plan": {
|
|
"id": "premium-annually",
|
|
"object": "plan",
|
|
"active": true,
|
|
"aggregate_usage": null,
|
|
"amount": 1000,
|
|
"amount_decimal": "1000",
|
|
"billing_scheme": "per_unit",
|
|
"created": 1499289328,
|
|
"currency": "usd",
|
|
"interval": "year",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"name": "Premium (Annually)",
|
|
"nickname": "Premium (Annually)",
|
|
"product": "prod_BUqgYr48VzDuCg",
|
|
"statement_description": null,
|
|
"statement_descriptor": null,
|
|
"tiers": null,
|
|
"tiers_mode": null,
|
|
"transform_usage": null,
|
|
"trial_period_days": null,
|
|
"usage_type": "licensed"
|
|
},
|
|
"quantity": 1,
|
|
"schedule": null,
|
|
"start": 1695056799,
|
|
"start_date": 1695056799,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"test_clock": null,
|
|
"transfer_data": null,
|
|
"trial_end": null,
|
|
"trial_settings": {
|
|
"end_behavior": {
|
|
"missing_payment_method": "create_invoice"
|
|
}
|
|
},
|
|
"trial_start": null
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/customers/cus_Of54kUr3gV88lM/subscriptions"
|
|
},
|
|
"tax_ids": {
|
|
"object": "list",
|
|
"data": [
|
|
],
|
|
"has_more": false,
|
|
"total_count": 0,
|
|
"url": "/v1/customers/cus_Of54kUr3gV88lM/tax_ids"
|
|
},
|
|
"tax_info": null,
|
|
"tax_info_verification": null
|
|
},
|
|
"previous_attributes": {
|
|
"email": "premium-new@bitwarden.com"
|
|
}
|
|
},
|
|
"livemode": false,
|
|
"pending_webhooks": 5,
|
|
"request": "req_2RtGdXCfiicFLx",
|
|
"type": "customer.updated",
|
|
"user_id": "acct_19smIXIGBnsLynRr"
|
|
}
|