What is discount function api?

Looks like something new (Discount api) is rolled out [1], and the old order / product / shipping discount apis become legacy.

Before reading the detail doc, is there high level summary about the changes? E.g. What are the changes? Does this bring new functionality? Is there any changelog? Thanks!

Ref

  1. About the Discount Function API

There’s a migration doc here:

This gives a nice summary of the changes from the order / product / shipping discount API categories.

Hope this helps!