#RR_Erik - PDF customization
1 messages · Page 1 of 1 (latest)
There is not a built in functionality for that but you can add them yourself by adding them to one of these invoice fields https://stripe.com/docs/invoicing/customize#invoice-fields
Once the invoice has been paid you can't modify those fields though right?
I am not immediately sure. Have you tried updating them and gotten an error?
Are you looking to retroactively update some Invoices like this?
Yeah I'm looking to retroactively update invoices with some customer info for accounting purposes. Most of what I need to do can be handled with the customer custom fields which does update past invoices
I haven't tried updating a finalized invoice object through the API but I thought I remembered reading in the docs somewhere that it can't be done. I'll give it a try right now
{
"error": {
"message": "Finalized invoices can't be updated in this way",
"param": "custom_fields",
"type": "invalid_request_error"
}
}
Thank you for the clarification and for testing that. I am unfamiliar with those customer custom fields, where are you setting those?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I did notice that the receipt PDF has the payment method but I can't find any way to access that except by sending a receipt email through the dashboard
Okay I see now that the charge object associated to the invoice has a receipt_url attribute. It links to the receipt page instead of directly to the PDF but I can probably work with that
Gotcha, yeah unfortunately I am not seeing a good way to add this info retroactively to an already paid invoice.
So you are sending this receipt to your users seperately basically?
Yeah we're sending a payment confirmation email from our own system when we get the invoice.paid webhook response with the invoice_pdf url embedded in the template. But it looks like our best bet will be to use the receipt_url from the charge instead
I would prefer to link directly to the receipt pdf instead but this works