#dicbra

1 messages · Page 1 of 1 (latest)

sullen scaffoldBOT
maiden fulcrum
sonic ferry
#

Then I can't use it on the invoice? Invoice does not accept promo codes, only coupons.

maiden fulcrum
#

i.e. you are using one-off manually created Invoices for the payment?

sonic ferry
#

yes

#

Because I used the Order API before and it suited me best in migration.

maiden fulcrum
#

I think you can apply the promo code to a customer instead : https://stripe.com/docs/api/customers/create#create_customer-promotion_code and the invoice will inherit, but you'd need to test it.

Honestly it's probably easiest to just implement this logic yourself(check in your database if that user of your has previous activity, if they do not, pass coupon to the Invoice; if they do, don't pass it).

sonic ferry
#

I will try this

#

ty!