#windlepoons-subscription-coupon-preview

1 messages · Page 1 of 1 (latest)

real acorn
compact axle
#

There's no customer yet either.

real acorn
#

you do have to create a customer in that case upfront

compact axle
#

The docs are a bit confusing, it appears that maybe I can just supply customer_details and not have a customer or subscription?

real acorn
#

I don't think just customer details works unless you do automatic tax, but easy enough to try to confirm quickly on your end!

compact axle
#

Ah, ok, I'll poke around and try and see what works.... don't most websites show you what your subscription price looks like after applying a coupon before you pay? Isn't this common enough that there should be some docs on doing it?

#

Also, if I include customer_details, which parts of the structure are needed? The API docs say its all optional.

#

Am I supposed to fuzz the API till I find a working combo? That seems..... weird.

real acorn
#

I don't disagree with that statement, but it's not clearly documented today at least

compact axle
#

So I tried that API, using the price as an invoice item, and I get this error:
| "message": "The price specified is set to type=recurring but this field only accepts prices with type=one_time.",

#

So I can't specify an invoice item with a price that is a recurring subscription?

#

Ah, I need to use subscription_items.

compact axle
#

And... another problem.

#

The upcoming invoice does not let one apply promotion codes.