#chooke
1 messages ยท Page 1 of 1 (latest)
Trial is at subscription level and not at item level. It's not possible to have a trial for each product/item added.
sorry , but i hav the trial defined already in the price
this is the price id : price_1MI1h8C68fMI8Jtvzj2BN7OB
Do you mean that you want to use the trial from the price? If so, you can set trial_from_plan to true, so that the subscription will take the trial settings from the price.
sorry i should have been more clear , so i double checked my subscription and we are adding the trial period when we create the subscription , so what im trying to do is to add another product to the subscription and charge for that product when subscription ends , now everything is working fine , but when i cancel the subscription , and i check the upcoming invoice , i can see the newly added product
Could you share the subscription ID (sub_xxx) and the response of upcoming invoice request?
sub id.: sub_1MUQbgC68fMI8JtvRNEZs5y8
{
"account_country": "NZ",
"account_name": "AVGAR",
"account_tax_ids": null,
"amount_due": 2500,
"amount_paid": 0,
"amount_remaining": 2500,
"application": null,
"application_fee_amount": null,
"attempt_count": 0,
"attempted": false,
"automatic_tax": {
"enabled": false,
"status": null
},
"billing_reason": "upcoming",
"charge": null,
"collection_method": "charge_automatically",
"created": 1677625502,
"currency": "nzd",
"customer": "cus_NEQxBxGQYdvIvF",
"customer_email": "chookepsn005@gmail.com",
"customer_name": "mo",
"customer_phone": null,
"customer_shipping": null,
"customer_tax_exempt": "none",
"customer_tax_ids": [
],
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [
],
"due_date": null,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
"last_finalization_error": null,
"latest_revision": null,
"lines": {
"data": [
[
Object
]
],
"has_more": false,
"object": "list",
"total_count": 6,
"url": "/v1/invoices/upcoming/lines?subscription=sub_1MUQbgC68fMI8JtvRNEZs5y8&customer=cus_NEQxBxGQYdvIvF"
},
"livemode": false,
"next_payment_attempt": 1677629102,
"number": null,
"object": "invoice",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
"payment_intent": null,
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
"period_end": 1677625502,
"period_start": 1675206302,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"status": "draft",
"status_transitions": {
"finalized_at": null,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
}
"subtotal": 2500,
"subtotal_excluding_tax": 2500,
"total": 2500,
"total_excluding_tax": 2500,
}
Sorry! I don't quite fully get what the problem is. Could you elaborate on the detailed steps you performed and why do you expect that newly added product shouldn't be added in the upcoming invoice?