#Nadiya - discount

1 messages ยท Page 1 of 1 (latest)

raw badge
#

Are you creating the discount through the dashboard or API?

ivory bramble
#

api

raw badge
ivory bramble
#

this discount amount can be dynamic (which is coming from user (admin) input), so, shouldn't we need to create coupon for each subscription?

raw badge
#

How dynamic? Is there a set few possibilities, or is it highly variable?

ivory bramble
#

no, discount is just a number input, where admin can enter any value for a product while creating..

#

something like this ๐Ÿ‘‡

raw badge
#

Ok so you would create a coupon for each amount you need a discount for then

ivory bramble
#

i would like to know about the possiblity of changing the invoice directly

raw badge
ivory bramble
#

can we create this invoice as the latest ?

#

currently, i'm using this

#

this one already creates an invoice

raw badge
#

Invoice item isn't an invoice

#

It's an item added to an invoice

#

So you could create a credit that would apply to that first invoice

ivory bramble
#

$subscription->latest_invoice
what about latest_invoice?

ivory bramble
raw badge
#

See the link i sent last

ivory bramble
#

yes, but i can't add to the latest one (which is active initially)?

raw badge
#

You would add the invoice item to the customer prior to creating the subscription. Then the first invoice would automatically pick that item up

ivory bramble
#

All done, Thank you so much ๐Ÿ™‚

raw badge
#

No problem!