Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. {
  2. "created": 1326853478,
  3. "livemode": false,
  4. "id": "customer.subscription.updated_00000000000000",
  5. "type": "customer.subscription.updated",
  6. "object": "event",
  7. "request": null,
  8. "pending_webhooks": 1,
  9. "api_version": "2018-02-28",
  10. "data": {
  11. "object": {
  12. "id": "sub_00000000000000",
  13. "object": "subscription",
  14. "application_fee_percent": null,
  15. "billing": "charge_automatically",
  16. "billing_cycle_anchor": 1467049692,
  17. "cancel_at_period_end": false,
  18. "canceled_at": 1469049273,
  19. "created": 1466452097,
  20. "current_period_end": 1469641692,
  21. "current_period_start": 1467049692,
  22. "customer": "cus_00000000000000",
  23. "days_until_due": null,
  24. "default_source": null,
  25. "discount": null,
  26. "ended_at": 1469049273,
  27. "items": {
  28. "object": "list",
  29. "data": [
  30. {
  31. "id": "si_00000000000000",
  32. "object": "subscription_item",
  33. "created": 1466452098,
  34. "metadata": {},
  35. "plan": {
  36. "id": "free_00000000000000",
  37. "object": "plan",
  38. "active": true,
  39. "aggregate_usage": null,
  40. "amount": 0,
  41. "billing_scheme": "per_unit",
  42. "created": 1469049102,
  43. "currency": "usd",
  44. "interval": "month",
  45. "interval_count": 1,
  46. "livemode": false,
  47. "metadata": {},
  48. "nickname": null,
  49. "product": "prod_00000000000000",
  50. "tiers": null,
  51. "tiers_mode": null,
  52. "transform_usage": null,
  53. "trial_period_days": null,
  54. "usage_type": "licensed"
  55. },
  56. "quantity": 1,
  57. "subscription": "sub_00000000000000"
  58. }
  59. ],
  60. "has_more": false,
  61. "total_count": 1,
  62. "url": "/v1/subscription_items?subscription=sub_8fuB1DvSYjw8QN"
  63. },
  64. "livemode": false,
  65. "metadata": {},
  66. "plan": {
  67. "id": "free_00000000000000",
  68. "object": "plan",
  69. "active": true,
  70. "aggregate_usage": null,
  71. "amount": 0,
  72. "billing_scheme": "per_unit",
  73. "created": 1469049102,
  74. "currency": "usd",
  75. "interval": "month",
  76. "interval_count": 1,
  77. "livemode": false,
  78. "metadata": {},
  79. "nickname": null,
  80. "product": "prod_00000000000000",
  81. "tiers": null,
  82. "tiers_mode": null,
  83. "transform_usage": null,
  84. "trial_period_days": null,
  85. "usage_type": "licensed"
  86. },
  87. "quantity": 1,
  88. "start": 1469049193,
  89. "status": "canceled",
  90. "tax_percent": null,
  91. "trial_end": null,
  92. "trial_start": null
  93. },
  94. "previous_attributes": {
  95. "plan": {
  96. "id": "OLD_00000000000000",
  97. "object": "plan",
  98. "active": true,
  99. "aggregate_usage": null,
  100. "amount": 5000,
  101. "billing_scheme": "per_unit",
  102. "created": 1495895227,
  103. "currency": "usd",
  104. "interval": "month",
  105. "interval_count": 1,
  106. "livemode": false,
  107. "metadata": {
  108. "A": "Value-A",
  109. "B": "Value-B",
  110. "C": "Value-C"
  111. },
  112. "nickname": null,
  113. "product": "prod_00000000000000",
  114. "tiers": null,
  115. "tiers_mode": null,
  116. "transform_usage": null,
  117. "trial_period_days": 1,
  118. "usage_type": "licensed",
  119. "name": "Old plan"
  120. }
  121. }
  122. }
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement