Open bryanburgers opened 4 years ago
Thanks for logging!
Hmm, the trouble with this endpoint is that it points back to a "standard" invoice API resource, which seems largely desirable, but of course id
is wrong.
We have a few possibilities to:
id
.id
on the standard invoice API resource as nilable.I've filed a ticket with the internal team responsible for Stripe's Billing products to see what they want to do.
When listing invoices, will they always have an id
?
This must be true as the pagination starting_after
key takes the id of the last invoice in the array?
Yes invoices will always have an id. Only the upcoming invoice endpoint returns a nullable id, and those can't be "listed" or use pagination.
When using the upcoming invoice endpoint, the response represents an invoice that doesn't exist yet, and does not have an
id
.The openapi spec for Invoice here, however, does not mark
id
asnullable: true
. Which means that code generators will not make it optional, and could fail while parsing.