The Test API endpoints allow you to put a Payment Intent in most of the available state reasons.
Important:
Before being able to put a Payment Intent in a desired state, you must first create a quote for the specific Payment Intent. This can be done via the API endpoint, or via the default Payment Window flow.