#pomelo-subscription-onetimefee

1 messages · Page 1 of 1 (latest)

river stagBOT
spiral sail
#

@warm fjord let's talk here please

warm fjord
#

curl 'https://api.stripe.com/v1/subscriptions'
-u 'sk_test_xx:'
-d 'customer=cus_xx'
-d 'items[0][price]=price_subscription'
-d 'items[0][quantity]=1'
-d 'metadata[crm_id]=6735'
-d 'add_invoice_items[0][price]=price_onetime'
-d 'add_invoice_items[0][quantity]=1'
-d collection_method=send_invoice
-d days_until_due=10
-d billing_cycle_anchor=1693605419
-d trial_end=1692655019

spiral sail
#

what's the problem with that code?

warm fjord
#

The one time item price is added to the trial invoice, where as i was it to be in the invoice after the trial period

spiral sail
#

Ah gotcha

#

so you need to first create the Subscription and then update it to set the one time price in add_invoice_items so that it goes in the next Invoice

#

pomelo-subscription-onetimefee