# Set the billing cycle date Set a subscription's billing cycle anchor to a fixed date. # Full hosted page > This is a Full hosted page for when payment-ui is stripe-hosted. View the full page at https://docs.stripe.com/payments/checkout/billing-cycle?payment-ui=stripe-hosted. Lors de la création d’une session Checkout, vous pouvez définir explicitement le [début du cycle de facturation](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-subscription_data-billing_cycle_anchor) d’un abonnement à une date fixe (par exemple, le 1er du mois suivant). Le début du cycle de facturation détermine la date de la première facture du montant total, lorsque le montant total de l’abonnement est facturé aux clients. L’ancre du cycle de facturation et l’intervalle récurrent de son [tarif](https://docs.stripe.com/products-prices/overview.md) déterminent également les dates de facturation futures d’un abonnement. Par exemple, un abonnement mensuel créé le 15 mai avec une date de début du cycle de facturation fixée au 1er juin est facturé au client le 15 mai, puis tous les 1er du mois. Pour la période de facturation initiale jusqu’à la date de la première facture du montant total, vous pouvez personnaliser le traitement des [calculs au prorata](https://docs.stripe.com/billing/subscriptions/prorations.md) avec le paramètre [proration_behavior](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-subscription_data-proration_behavior). Par défaut, `proration_behavior` est défini à `create_prorations` et les clients reçoivent une *facture au prorata* (Invoices are statements of amounts owed by a customer. They track the status of payments from draft through paid or otherwise finalized. Subscriptions automatically generate invoices, or you can manually create a one-off invoice). Si `proration_behavior` est `none`, les clients bénéficieront gratuitement de la période initiale jusqu’à la date de la première facture du montant total. ## Create a Checkout Session with a billing cycle anchor To configure a billing cycle anchor, set the `subscription_data.billing_cycle_anchor` parameter when you create a Checkout Session in `subscription` mode. The anchor must be a future UNIX timestamp before the next natural subscription billing date. ```curl curl https://api.stripe.com/v1/checkout/sessions \ -u "<>:" \ -d "line_items[0][price]={{PRICE_ID}}" \ -d "line_items[0][quantity]=1" \ -d mode=subscription \ --data-urlencode "success_url=https://example.com/success?session_id={CHECKOUT_SESSION_ID}" \ -d "subscription_data[billing_cycle_anchor]=1611008505" ``` If the billing cycle anchor is during a session’s active period and a customer attempts payment after it has passed, Checkout displays and charges for the full period starting with the billing cycle anchor instead of the prorated period before the billing cycle anchor. ## Disable prorations Pour désactiver les calculs au prorata, définissez le paramètre `subscription_data.proration_behavior` à `none` lors de la création d’une session Checkout. ```curl curl https://api.stripe.com/v1/checkout/sessions \ -u "<>:" \ -d "line_items[0][price]={{PRICE_ID}}" \ -d "line_items[0][quantity]=1" \ -d mode=subscription \ --data-urlencode "success_url=https://example.com/success?session_id={CHECKOUT_SESSION_ID}" \ -d "subscription_data[billing_cycle_anchor]=1611008505" \ -d "subscription_data[proration_behavior]=none" ``` Similar to a free trial, the initial period up to the billing cycle anchor is free. Unlike a trial, no 0 USD invoice is generated. Customers receive an invoice with the full subscription amount on the billing cycle anchor date. In the Checkout Session response object, amounts attached to the [line items](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-line_items) and [total details](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-total_details) are always 0 when prorations are disabled. Additionally, the [payment status](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-payment_status) of the Session is set to `no_payment_required` to reflect that payment is delayed to a future date. ## Limitations - Vous ne pouvez pas utiliser les périodes d’essai dans les sessions Checkout dont le début du cycle de facturation est précisé. - You can’t use one-time prices in Checkout Sessions when `proration_behavior` is `none`. - You can’t apply [amount_off coupons](https://docs.stripe.com/api/coupons/create.md#create_coupon-amount_off) to Checkout Sessions with a default `proration_behavior` of `create_prorations`. # Full embedded page > This is a Full embedded page for when payment-ui is embedded-page. View the full page at https://docs.stripe.com/payments/checkout/billing-cycle?payment-ui=embedded-page. Lors de la création d’une session Checkout, vous pouvez définir explicitement le [début du cycle de facturation](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-subscription_data-billing_cycle_anchor) d’un abonnement à une date fixe (par exemple, le 1er du mois suivant). Le début du cycle de facturation détermine la date de la première facture du montant total, lorsque le montant total de l’abonnement est facturé aux clients. L’ancre du cycle de facturation et l’intervalle récurrent de son [tarif](https://docs.stripe.com/products-prices/overview.md) déterminent également les dates de facturation futures d’un abonnement. Par exemple, un abonnement mensuel créé le 15 mai avec une date de début du cycle de facturation fixée au 1er juin est facturé au client le 15 mai, puis tous les 1er du mois. Pour la période de facturation initiale jusqu’à la date de la première facture du montant total, vous pouvez personnaliser le traitement des [calculs au prorata](https://docs.stripe.com/billing/subscriptions/prorations.md) avec le paramètre [proration_behavior](https://docs.stripe.com/api/checkout/sessions/create.md#create_checkout_session-subscription_data-proration_behavior). Par défaut, `proration_behavior` est défini à `create_prorations` et les clients reçoivent une *facture au prorata* (Invoices are statements of amounts owed by a customer. They track the status of payments from draft through paid or otherwise finalized. Subscriptions automatically generate invoices, or you can manually create a one-off invoice). Si `proration_behavior` est `none`, les clients bénéficieront gratuitement de la période initiale jusqu’à la date de la première facture du montant total. ## Create a Checkout Session with a billing cycle anchor To configure a billing cycle anchor, set the `subscription_data.billing_cycle_anchor` parameter when you create a Checkout Session in `subscription` mode. The anchor must be a future UNIX timestamp before the next natural subscription billing date. ```curl curl https://api.stripe.com/v1/checkout/sessions \ -u "<>:" \ -d "line_items[0][price]={{PRICE_ID}}" \ -d "line_items[0][quantity]=1" \ -d mode=subscription \ -d ui_mode=embedded_page \ --data-urlencode "return_url=https://example.com/return?session_id={CHECKOUT_SESSION_ID}" \ -d "subscription_data[billing_cycle_anchor]=1611008505" ``` If the billing cycle anchor is during a session’s active period and a customer attempts payment after it has passed, Checkout displays and charges for the full period starting with the billing cycle anchor instead of the prorated period before the billing cycle anchor. ## Disable prorations Pour désactiver les calculs au prorata, définissez le paramètre `subscription_data.proration_behavior` à `none` lors de la création d’une session Checkout. ```curl curl https://api.stripe.com/v1/checkout/sessions \ -u "<>:" \ -d "line_items[0][price]={{PRICE_ID}}" \ -d "line_items[0][quantity]=1" \ -d mode=subscription \ -d ui_mode=embedded_page \ --data-urlencode "return_url=https://example.com/return?session_id={CHECKOUT_SESSION_ID}" \ -d "subscription_data[billing_cycle_anchor]=1611008505" \ -d "subscription_data[proration_behavior]=none" ``` Similar to a free trial, the initial period up to the billing cycle anchor is free. Unlike a trial, no 0 USD invoice is generated. Customers receive an invoice with the full subscription amount on the billing cycle anchor date. In the Checkout Session response object, amounts attached to the [line items](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-line_items) and [total details](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-total_details) are always 0 when prorations are disabled. Additionally, the [payment status](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-payment_status) of the Session is set to `no_payment_required` to reflect that payment is delayed to a future date. ## Limitations - Vous ne pouvez pas utiliser les périodes d’essai dans les sessions Checkout dont le début du cycle de facturation est précisé. - You can’t use one-time prices in Checkout Sessions when `proration_behavior` is `none`. - You can’t apply [amount_off coupons](https://docs.stripe.com/api/coupons/create.md#create_coupon-amount_off) to Checkout Sessions with a default `proration_behavior` of `create_prorations`. ## See also - [Prorations](https://docs.stripe.com/billing/subscriptions/prorations.md)