{
  "id": "AzymDoTjgzDShlvd",
  "plan_id": "somiibo-premium-monthly-1",
  "plan_quantity": 1,
  "plan_unit_price": 1995,
  "billing_period": 1,
  "billing_period_unit": "month",
  "trial_end": 1689068274,
  "customer_id": "AzymDoTjgzDShlvd",
  "plan_amount": 1995,
  "plan_free_quantity": 0,
  "status": "cancelled",
  "trial_start": 1689068267,
  "current_term_start": 1689068274,
  "current_term_end": 1689427395,
  "created_at": 1689068267,
  "started_at": 1689068267,
  "activated_at": 1689068274,
  "cancelled_at": 1689427395,
  "created_from_ip": "78.123.110.217",
  "updated_at": 1689427395,
  "has_scheduled_changes": false,
  "channel": "web",
  "resource_version": 1689427395475,
  "deleted": false,
  "object": "subscription",
  "currency_code": "USD",
  "shipping_address": {
    "first_name": "biran",
    "last_name": "faya",
    "line1": "31 Rue Salvador Allende",
    "city": "La Talaudière",
    "state": "Auvergne-Rhône-Alpes",
    "country": "FR",
    "zip": "42350",
    "validation_status": "not_validated",
    "object": "shipping_address"
  },
  "due_invoices_count": 0,
  "mrr": 0,
  "cf_clientorderid": "1689067920988-0495",
  "has_scheduled_advance_invoices": false,
  "invoices": [{
    "invoice": {
      "id": "3328",
      "customer_id": "AzymDoTjgzDShlvd",
      "subscription_id": "AzymDoTjgzDShlvd",
      "recurring": true,
      "status": "paid",
      "price_type": "tax_exclusive",
      "date": 1689068274,
      "due_date": 1689068274,
      "net_term_days": 0,
      "exchange_rate": 1,
      "total": 1995,
      "amount_paid": 1995,
      "amount_adjusted": 0,
      "write_off_amount": 0,
      "credits_applied": 0,
      "amount_due": 0,
      "paid_at": 1689068274,
      "updated_at": 1690341671,
      "resource_version": 1690341671655,
      "deleted": false,
      "object": "invoice",
      "first_invoice": true,
      "amount_to_collect": 0,
      "round_off_amount": 0,
      "new_sales_amount": 1995,
      "has_advance_charges": false,
      "currency_code": "USD",
      "base_currency_code": "USD",
      "generated_at": 1689068274,
      "is_gifted": false,
      "term_finalized": true,
      "channel": "web",
      "tax": 0,
      "line_items": [{
        "id": "li_16BQpCTjh0LWhkWe",
        "date_from": 1689068274,
        "date_to": 1691746674,
        "unit_amount": 1995,
        "quantity": 1,
        "amount": 1995,
        "pricing_model": "flat_fee",
        "is_taxed": false,
        "tax_amount": 0,
        "object": "line_item",
        "subscription_id": "AzymDoTjgzDShlvd",
        "customer_id": "AzymDoTjgzDShlvd",
        "description": "Somiibo Premium (Monthly)",
        "entity_type": "plan",
        "entity_id": "somiibo-premium-monthly-1",
        "tax_exempt_reason": "tax_not_configured",
        "discount_amount": 0,
        "item_level_discount_amount": 0
      }],
      "sub_total": 1995,
      "linked_payments": [{
        "txn_id": "txn_16BQpCTjh0LXqkWf",
        "applied_amount": 1995,
        "applied_at": 1689068276,
        "txn_status": "success",
        "txn_date": 1689068274,
        "txn_amount": 1995
      }],
      "applied_credits": [],
      "adjustment_credit_notes": [],
      "issued_credit_notes": [{
        "cn_id": "CN-102",
        "cn_reason_code": "product_unsatisfactory",
        "cn_create_reason_code": "Product Unsatisfactory",
        "cn_date": 1690341670,
        "cn_total": 1995,
        "cn_status": "refunded"
      }],
      "linked_orders": [],
      "dunning_attempts": [],
      "billing_address": {
        "first_name": "biran",
        "last_name": "faya",
        "line1": "31 Rue Salvador Allende",
        "city": "La Talaudière",
        "state": "Auvergne-Rhône-Alpes",
        "country": "FR",
        "zip": "42350",
        "validation_status": "not_validated",
        "object": "billing_address"
      },
      "shipping_address": {
        "first_name": "biran",
        "last_name": "faya",
        "line1": "31 Rue Salvador Allende",
        "city": "La Talaudière",
        "state": "Auvergne-Rhône-Alpes",
        "country": "FR",
        "zip": "42350",
        "validation_status": "not_validated",
        "object": "shipping_address"
      }
    }
  }]
}
