#cCropster-subscription-memo
1 messages · Page 1 of 1 (latest)
Hello. Hmm, the Subscription object doesn't have a memo field. Do you mean on the Invoice object?
No, I mean the subscription
I can set it in the UI, but not when using the API
The field will contain customer specific information that can change.
That's why we need to update the text.
Ah, yes. That's one of a few Dashboard only 'fields'. It doesn't actually persist on the Subscription object, but carries over to the generated invoices (hence my confusion)
Regardless it's not available via the API
Would the metadata field not be suitable here? https://stripe.com/docs/api/subscriptions/object#subscription_object-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The text contains information about the usage of our customers.
It has to be visible on the invoice.
Meta information are not.
Got it. Then you'd need to manage that manually via the Dashboard
It's pretty cumbersome to update the text for all our customers.
Wait, actually this field is available via the API! It's just got a different name 🤦
https://stripe.com/docs/invoicing/customize#memo-field
https://stripe.com/docs/api/invoices/object#invoice_object-description
Can be updated, too. Should be what you need!
Is it possible to set the invoice template per customer?
Not the memo/description, no. Just the number field
You'd need to implement that templating somewhere in your own system for the memo
The template for the memo text?
That's what we do. And now we want to set the formatted text in the subscription.
As I explained though, there's no memo field for a subscription. It's just the value that's used when generating the invoice
So if you wanted to update the invoice after creation, you'd need to do that via the API perhaps listening for an invoice.created event
I'm a little bit disappointed about that. There are so much options in API that can't be done in the UI.
And now something that can't be done in the API. 😦
Understand the frustration. I can relay the feedback. Out of interest, what is the use case for the memo field (so I can relay to product team)?
We have a post payment model where a customer is charged based on the usage value.
The usage value is part of the text.
It's also possible that a customer gets a special discount. The information of the discount is part of the text too.
Last but not least the text contains information about the billing period.
Is none of that information not already available on the invoice? Specifically, the billing period and any discounts (assuming you're using our coupons)
Are you using a metered (usage based) price?
I know, all the information is already part of the invoice. But we want the information in a text form too.
And yes, we're using metered products.
Ok, got it. Will relay the feedback!