#sreekanth_sub-multi-prod

1 messages · Page 1 of 1 (latest)

royal sailBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245638787980329043

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

broken swallow
#

hi

#

may i know what is the "unit_amount": 300,
"unit_amount_decimal": "300" in subscription

glossy stump
#

need some info about the response after creating subscription
What information do you need about the response?

#

Where did you get this field from? Could you share the example request ID (req_xxx) with this response?

broken swallow
#

confused between 43 and 300 that's why

glossy stump
#

Thanks for sharing! The amount in the response uses a currency’s smallest unit. For example, to charge 10 USD, provide an amount value of 1000 (that is, 1000 cents)

#

In the example, the currency is in GBP, so 43 in amount is equivalent to GBP 0.43 whereas 300 is equivalent to GBP 3.00

broken swallow
#

what is the diff in amount in data vs amount in plan ?

glossy stump
#

amount in plan is the amount of the original price;

data has contains many child amount, which field are you looking for specifically?

royal sailBOT
broken swallow
#

"object": "line_item",
"amount": 43,
"amount_excluding_tax": 43,

frigid ivy
#

Hey! Taking over for my colleague. Let me catch up.

frigid ivy
#

43 is the proration for the used period of the price price_1PLS8SJKyfLg4PX09qEXDi2M

broken swallow
#

dont understand

frigid ivy
#

What part exactly ?

broken swallow
# frigid ivy What part exactly ?

That's the amount of the item line of the invoice il_1PLS8TJKyfLg4PX0TSDpxhBF
43 is the proration for the used period of the price price_1PLS8SJKyfLg4PX09qEXDi2M

frigid ivy
#

OK no worries, let's start from the begining

#

Do you know Subscription prorations ?

broken swallow
#

no....

frigid ivy
broken swallow
#

understood

#

A user cannot subscribe to the same subscription twice. Doing so will result in a proportion. ?

frigid ivy
#

A customer can have multiple Subscirption, independently.

broken swallow
#

okay

broken swallow
frigid ivy
#

unit amount is the price amount.

royal sailBOT
#

sreekanth_sub-multi-prod