Retrieving Closed Orders

Tags: v8preview4 v8

In the API V8Preview4, the ability to retrieve information about closed orders has been expanded.

The method GetPastOrder has been modified and now requires only the order Id.

Two new methods have also been added: GetPastOrders and GetPastOrdersBySum.

GetPastOrders allows searching for an order by its number. If the order number is not provided, information about all closed orders for the specified time interval will be returned.

GetPastOrdersBySum searches for orders by the total payment amount (after all discounts and surcharges).

In the above methods, specifying a time interval is optional. If not provided, the interval will default to the last 3 months.