#sreekanth_api

1 messages · Page 1 of 1 (latest)

clear larkBOT
stark swallowBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

clear larkBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1246051181973995624

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

half tinsel
#

hi there!

velvet hinge
#

Hi

#

may i know what is the Applied balance in invoices

half tinsel
#

the minimum amount Stripe can charge is $0.50

#

since you are below the minimum here, we charge the customer $0 for now, but once the total reach above $0.50 he will have to pay

velvet hinge
half tinsel
#

yes that's normal, the first Invoice was for $0.14, which is below $0.50, so we didn't charge the user for the $0.14.

#

so the second invoice will include the $0.14 of the previous invoice

#

"applied balance" is basically how much money the customer ows you

clear larkBOT
velvet hinge
#

we didnt make any payment

cursive bramble
cursive bramble
# velvet hinge

Also, this is for the upcoming invoice (the next period). The initial invoice generated on subscription was for £0.14: in_1PMSZzJKyfLg4PX0mVvvIx0i

#

Which is below our min. charge amount, so it's applied as a debit to the customer balance and we charge it on the next invoice the subscription (as seen in the screenshot) – £1.14

velvet hinge
#

is it same for sub_1PMTGMJKyfLg4PX0JFfSGZis?

cursive bramble
#

Is what the same?

velvet hinge
#

this is the request payload for subscription {
"expand": {
"0": "latest_invoice.payment_intent"
},
"off_session": "true",
"cancel_at": "1717844684",
"metadata": {
"giftAmount": "0.25",
"userId": "f6e2118f-9c6f-43f2-a97f-8ce5a8da2a16",
"ngoId": "[1b49ce61-7400-4851-b248-cb6f8f159e84, 0ecc97c4-fbf3-4617-8d5e-285af2268b98]",
"appfee": "0"
},
"items": {
"0": {
"price": "price_1PMTGMJKyfLg4PX0je3WOmCT"
},
"1": {
"price": "price_1PMTGMJKyfLg4PX0XI37SzQh"
}
},
"customer": "cus_PvqTJ8157vEOOB"
}

cursive bramble
#

The invoice (in_1PMTGMJKyfLg4PX0nSnFEDMH) is for £1.14. £1.00 for the items, and the £0.14 in pulls from the customer balance that they 'owe' for a previous invoice

velvet hinge
#

yes... can you check this sub_1PMTGMJKyfLg4PX0JFfSGZis...we have created without billing_cycle_anchor

cursive bramble
#

I just explained why it's £1.14, billing_cycle_anchor is irrelevant in this case

velvet hinge
#

that is for next invoice right... but initial invoice charged for 0.14

cursive bramble
#

The customer has a £0.14 balance which means we'll bill them for that on the next invoice created for them

cursive bramble
velvet hinge
#

okay... when amount is less than 0.14 we will add in the next invoice correct?

cursive bramble
#

For GBP that's £0.30

velvet hinge
#

okay

#

Suppose I create a subscription for 10-days with a weekly billing interval. What will happen to the extra 3 days?

cursive bramble
#

What do you mean by 'for 10 days'? With a cancel_at set?

#

Why not just try it? 🙂

cursive bramble
#

Did you test it?

#

That's literally the easiest way to confirm how the API behaves in specific scenarios. What I suspect will happen:

  • Full invoice for £1.00 for the initial 7-day period
  • Prorated invoice for the next 3-day period before cancelling
velvet hinge
#

Yes, we did. The issue is that we created $0.50 donations to two charities, so it charged $1, which is fine. However, for the next invoice, it is showing $0.07 for each charity, resulting in a total of $0.14.

velvet hinge
#

can we stop applying proration ?

cursive bramble
velvet hinge
#

okay

#

And one more issue: we have billing_cycle_anchor, which supports monthly and yearly intervals. How can we achieve the same thing for a weekly interval?

cursive bramble
#

I don't understand the question

#

What are you trying to do with the billing_cycle_anchor specifically? It's just a timestamp and is interval agnostic

clear larkBOT