Invoicing resources now specify how they were generatedBreaking changes
What’s new
We’re introducing a new parent field on invoices, invoice items, and invoice line items. The parent field allows you to view the details of the upstream object that generated the invoice, invoice item, or invoice line item (such as a subscription, a quote, or other). It replaces top level fields that we previously used to reference these objects.
Why is this a breaking change?
- On the Invoice object, we deprecated the
quote,subscription,subscription_, anddetails subscription_fields.proration_ date - On the Invoice Item object, we deprecated the
subscription_anditem subscriptionfields. - On the Invoice Line Item object, we deprecated the
type,subscription,subscription_,item invoice_,item proration, andproration_fields.details
Impact
Replace field references on invoicing objects with their new locations in the parent field.
On Invoice objects:
- Use
invoice.(verifyparent. subscription_ details. subscription invoice.isparent. type subscription_) instead ofdetails invoice..subscription - This also applies to:
quotesubscription_details subscription_proration_ date
On Invoice Item objects:
- Use
invoiceitem.(verifyparent. subscription_ details. subscription invoiceitem.isparent. type subscription_) instead ofdetails invoice_item. subscription - This also applies to the
subscription_fielditem
On Invoice Line Item objects:
- Use
line_(verifyitem. parent. subscription_ item_ details. subscription_ item line_isitem. parent. type subscription_) instead ofitem_ details line_.item. subscription_ item - This also applies to:
subscriptioninvoice_item prorationproration_details