#arggh-custom invoice fields

1 messages ยท Page 1 of 1 (latest)

little geyser
#

(or memos/footers -- same idea)

rare pilot
#

The way I understood Custom Fields, they are quite limited in their number and character count and it's not possible to link them to specific invoice items, right?

little geyser
#

correct, there isn't a way to sub-line an item like you want

rare pilot
#

Same goes with memos/footers, meaning it's near impossible to attach them to the actual line items? I could of course just "copy paste" the invoice line items as plain text in the footer with the required details added, but it's not a very elegant solution.

rare pilot
little geyser
rare pilot
#

I'd be perfectly happy to update the description of a line item, but it's not possible either:

StripeInvalidRequestError: When passing an invoice's line item id, you may only update tax_rates or discounts.

little geyser
#

Yep, only works in Invoice Items and often automatic ones won't edit

rare pilot
#

This was the code I was trying to run:

stripe.invoiceItems.update(
  item.id,
  {
    description: 'FOOBAR'
  }
)
little geyser
#

What's the id of the item?

rare pilot
#

invoice.lines.data[x].id

little geyser
#

The actual item id in the API is what I mean.

rare pilot
#

sli_16456cGh3krmwCRA369ad5e8

little geyser
#

Yeah, that's a Subscription Line Item which won't let you edit the Description. You can only edit it if creating InvoiceItems directly. So yeah, for what you're looking for, we don't support it except the workaround with custom fields and such.

rare pilot
#

That's too bad. Have to bring some bad news to person who wanted more descriptive line item descriptions.

#

Seems like an easy, non-breaking change for the API ๐Ÿ™‚

#

Thanks for trying @little geyser