2023-05-18 — Subscriptions Future Order API improvements
To support the recent introduction of our Subscription Adjustment API, several improvements have been made to the Future Order endpoints of Subscriptions.
Changes include:
- Significant improvements to the List Future Orders by Subscription ID endpoint.
- Introducing the List Future Orders endpoint for listing future orders at the shop level.
Below are relevant changes to the existing List Future Orders by Subscription ID endpoint.
- The following fields have been added to the response of all requests:
future_orders.*.bold_customer_idfuture_orders.*.currencyfuture_orders.*.order_countfuture_orders.*.adjustmentsfuture_orders.*.subscription_datafuture_orders.*.customerfuture_orders.*.billing_addressfuture_orders.*.shipping_addressfuture_orders.*.shipping_lines
- For prepaid subscriptions:
- When a prepaid payment is required, the
pricefield for line items is now the multiplied price according to the prepaid duration on the line item(s). - When a prepaid payment is not required, the
pricefield for line items is now set to 0. - The field
future_orders.*.line_items.*.prepaid_metadata.current_recurrence_countis now namedrecurrence_count.
- When a prepaid payment is required, the
- Cursor pagination replaces the previous offset (page-based) pagination. Backwards compatibility for offset pagination has been maintained. Switching to use cursor is recommended for existing consumers.
- The following fields have been removed from the response on cursor-based requests only:
pagination.current_pagepagination.totalpagination.total_pages
- The following fields now have a
nullvalue on page-based requests:pagination.totalpagination.total_pages