Serverside API and nested data

The following (with a static amount value) works fine. How do I have the same with a $_POSTed value?

Edit: Content-Type should be application/json but makes no difference.

Community Page
Last updated: