277 lines
7.2 KiB
JSON
277 lines
7.2 KiB
JSON
{
|
|
"id": "123",
|
|
"created_at": 1761032316983,
|
|
"name": "123",
|
|
"email": "123@example.com",
|
|
"fingerprint": null,
|
|
"stripe_id": "cus_TH8QGlLFtlDpAj",
|
|
"env": "sandbox",
|
|
"metadata": {},
|
|
"products": [
|
|
{
|
|
"id": "pro",
|
|
"name": "Pro",
|
|
"group": null,
|
|
"status": "trialing",
|
|
"canceled_at": null,
|
|
"started_at": 1761122358550,
|
|
"is_default": false,
|
|
"is_add_on": false,
|
|
"version": 5,
|
|
"current_period_start": 1761032316000,
|
|
"current_period_end": 1762073321000,
|
|
"items": [
|
|
{
|
|
"type": "price",
|
|
"feature_id": null,
|
|
"feature": null,
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"price": 20
|
|
},
|
|
{
|
|
"type": "priced_feature",
|
|
"feature_id": "messages",
|
|
"feature_type": "single_use",
|
|
"feature": {
|
|
"id": "messages",
|
|
"name": "messages",
|
|
"type": "single_use",
|
|
"display": {
|
|
"singular": "message",
|
|
"plural": "messages"
|
|
},
|
|
"archived": false
|
|
},
|
|
"included_usage": 200,
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"price": 0.5,
|
|
"usage_model": "pay_per_use",
|
|
"billing_units": 1,
|
|
"reset_usage_when_enabled": true,
|
|
"entity_feature_id": null
|
|
},
|
|
{
|
|
"type": "priced_feature",
|
|
"feature_id": "websites",
|
|
"feature_type": "continuous_use",
|
|
"feature": {
|
|
"id": "websites",
|
|
"name": "Websites",
|
|
"type": "continuous_use",
|
|
"display": {
|
|
"singular": "website",
|
|
"plural": "websites"
|
|
},
|
|
"archived": false
|
|
},
|
|
"included_usage": 3,
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"price": 20,
|
|
"usage_model": "pay_per_use",
|
|
"billing_units": 1,
|
|
"reset_usage_when_enabled": false,
|
|
"entity_feature_id": null
|
|
},
|
|
{
|
|
"type": "feature",
|
|
"feature_id": "discord_notifications",
|
|
"feature_type": "static",
|
|
"feature": {
|
|
"id": "discord_notifications",
|
|
"name": "Discord notifications",
|
|
"type": "boolean",
|
|
"display": {
|
|
"singular": "Discord notification",
|
|
"plural": "Discord notifications"
|
|
},
|
|
"archived": false
|
|
},
|
|
"entity_feature_id": null
|
|
},
|
|
{
|
|
"type": "feature",
|
|
"feature_id": "messages",
|
|
"feature_type": "single_use",
|
|
"feature": {
|
|
"id": "messages",
|
|
"name": "messages",
|
|
"type": "single_use",
|
|
"display": {
|
|
"singular": "message",
|
|
"plural": "messages"
|
|
},
|
|
"archived": false
|
|
},
|
|
"included_usage": 500,
|
|
"interval": null,
|
|
"interval_count": 1,
|
|
"reset_usage_when_enabled": true,
|
|
"entity_feature_id": null
|
|
},
|
|
{
|
|
"type": "feature",
|
|
"feature_id": "projects",
|
|
"feature_type": "continuous_use",
|
|
"feature": {
|
|
"id": "projects",
|
|
"name": "Projects",
|
|
"type": "continuous_use",
|
|
"display": {
|
|
"singular": "project",
|
|
"plural": "projects"
|
|
},
|
|
"archived": false
|
|
},
|
|
"included_usage": 12,
|
|
"interval": null,
|
|
"interval_count": 1,
|
|
"reset_usage_when_enabled": false,
|
|
"entity_feature_id": null
|
|
},
|
|
{
|
|
"type": "feature",
|
|
"feature_id": "swag",
|
|
"feature_type": "single_use",
|
|
"feature": {
|
|
"id": "swag",
|
|
"name": "Swag",
|
|
"type": "single_use",
|
|
"display": {
|
|
"singular": "swag",
|
|
"plural": "swags"
|
|
},
|
|
"archived": false
|
|
},
|
|
"included_usage": "inf",
|
|
"interval": null,
|
|
"interval_count": 1,
|
|
"reset_usage_when_enabled": true,
|
|
"entity_feature_id": null
|
|
}
|
|
],
|
|
"quantity": 1
|
|
}
|
|
],
|
|
"features": {
|
|
"discord_notifications": {
|
|
"id": "discord_notifications",
|
|
"type": "static",
|
|
"name": "Discord notifications",
|
|
"unlimited": false,
|
|
"balance": 0,
|
|
"usage": 0,
|
|
"included_usage": 0,
|
|
"next_reset_at": null,
|
|
"overage_allowed": false
|
|
},
|
|
"swag": {
|
|
"id": "swag",
|
|
"type": "single_use",
|
|
"name": "Swag",
|
|
"unlimited": true,
|
|
"balance": 0,
|
|
"usage": 0,
|
|
"included_usage": 0,
|
|
"next_reset_at": null,
|
|
"overage_allowed": false
|
|
},
|
|
"messages": {
|
|
"id": "messages",
|
|
"type": "single_use",
|
|
"name": "messages",
|
|
"interval": "multiple",
|
|
"interval_count": null,
|
|
"unlimited": false,
|
|
"balance": 550,
|
|
"usage": 150,
|
|
"included_usage": 700,
|
|
"next_reset_at": 1764665321000,
|
|
"overage_allowed": false,
|
|
"breakdown": [
|
|
{
|
|
"interval": "lifetime",
|
|
"interval_count": 1,
|
|
"balance": 350,
|
|
"usage": 150,
|
|
"included_usage": 500,
|
|
"next_reset_at": null
|
|
},
|
|
{
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"balance": 200,
|
|
"usage": 0,
|
|
"included_usage": 200,
|
|
"next_reset_at": 1764665321000,
|
|
"usage_limit": 500
|
|
}
|
|
],
|
|
"usage_limit": 1000
|
|
},
|
|
"projects": {
|
|
"id": "projects",
|
|
"type": "continuous_use",
|
|
"name": "Projects",
|
|
"interval": "lifetime",
|
|
"interval_count": 1,
|
|
"unlimited": false,
|
|
"balance": 12,
|
|
"usage": 0,
|
|
"included_usage": 12,
|
|
"next_reset_at": null,
|
|
"overage_allowed": false
|
|
},
|
|
"websites": {
|
|
"id": "websites",
|
|
"type": "continuous_use",
|
|
"name": "Websites",
|
|
"interval": "lifetime",
|
|
"interval_count": 1,
|
|
"unlimited": false,
|
|
"balance": 3,
|
|
"usage": 0,
|
|
"included_usage": 3,
|
|
"next_reset_at": null,
|
|
"overage_allowed": false,
|
|
"usage_limit": 10
|
|
}
|
|
},
|
|
"invoices": [
|
|
{
|
|
"product_ids": [
|
|
"pro"
|
|
],
|
|
"stripe_id": "in_1SKi259mx3u0jkgOr86nPA3R",
|
|
"status": "paid",
|
|
"total": 0,
|
|
"currency": "usd",
|
|
"created_at": 1761467921000,
|
|
"hosted_invoice_url": "http://localhost:8080/invoices/hosted_invoice_url/inv_34Nmt7zkME1IpjKXCBj0Mr6EBOx"
|
|
},
|
|
{
|
|
"product_ids": [
|
|
"pro"
|
|
],
|
|
"stripe_id": "in_1SKi1F9mx3u0jkgO38q4Vf2B",
|
|
"status": "paid",
|
|
"total": 0,
|
|
"currency": "usd",
|
|
"created_at": 1761467921000,
|
|
"hosted_invoice_url": "http://localhost:8080/invoices/hosted_invoice_url/inv_34Nmmg52fFTqhf1rJhzKgCjEvzj"
|
|
},
|
|
{
|
|
"product_ids": [
|
|
"pro"
|
|
],
|
|
"stripe_id": "in_1SKa9U9mx3u0jkgOpZa0MZFx",
|
|
"status": "paid",
|
|
"total": 0,
|
|
"currency": "usd",
|
|
"created_at": 1761032316000,
|
|
"hosted_invoice_url": "http://localhost:8080/invoices/hosted_invoice_url/inv_34MnUDUGNVi0hdc21Rg3gb8h24d"
|
|
}
|
|
]
|
|
} |