调至内容部分
创建账户
或
登录
Stripe 文档徽标
/
询问人工智能
创建账户
登录
开始
付款
财务自动化
平台和交易市场
资金管理
开发人员工具
开始
付款
财务自动化
开始
付款
财务自动化
平台和交易市场
资金管理
概览
Billing
    概览
    关于 Billing API
    订阅
    开账单
    基于用量的计费
    Connect 和 Billing
    Tax 和 Billing
    报价
    收入恢复
    自动化
    脚本
    收入确认
    客户管理
    资格
    测试您的集成
      测试时钟
        模拟订阅
        API 和高级用法
      测试您的开账单集成
税务
报告
数据
创业公司
首页财务自动化BillingTest your integrationTest clocks

Simulate subscriptions

Learn how to simulate subscriptions in a sandbox.

复制页面

Simulating a subscription shows you the events of a subscription, such as invoices and renewals, that are expected over the course of the simulation time.

注意

When you run a simulation on a subscription, it appears in the Test clocks tab of the Subscriptions page. You can delete it by clicking Finish simulation. Finishing a simulation deletes all objects associated with it, including the customer and subscription, from the sandbox. It doesn’t affect live mode.

To simulate a subscription:

  1. Open the Dashboard and create a sandbox.
  2. In the subscriptions page, click the subscription to test.
  3. Click Run simulation in the banner at the top of the page.

    Customer ineligible for simulation

    The Run simulation button might be disabled if the subscription’s customer:

    • Is attached to more than three subscriptions, including scheduled subscriptions
    • Has a complex profile, with many quotes, invoices or other related objects
  4. In the modal, set the date and time to simulate and click Advance time.

You can advance time by any increment, but you can only advance them two intervals at a time from the initial frozen time. For example, if you have a monthly subscription, you can only advance the clock up to two months at a time.

When the clock is done advancing, the banner updates and displays the clock’s current time.

You can continue to make changes to your simulation and advance the time for simulations like:

  • Adding a customer balance.
  • Making a mid-cycle upgrade.
  • Adding one-off invoice items.

Repeat as many times as you need to satisfy your test case.

此页面的内容有帮助吗?
是否
需要帮助?联系支持。
加入我们的早期使用计划。
查看我们的更改日志。
有问题?联系销售。
LLM? Read llms.txt.
Powered by Markdoc