This endpoint is used in the QA environment to simulate real-world scenarios by updating a money movement’s status to either completed or rejected. It allows you to finalize or reject a money movement created in QA, enabling you to test and validate different transaction outcomes. It is important to note that the money movement must be in a processing state in order to perform the status change.Method: [POST]URL: https://api.qa.cobre.co/v1/change_mm_state
Request Body Fields: All the following fields are required.
money_movement (string): Platforms Money movement ID that was generated when initated the transaction and which you want to change the status. Ensure the money_movement ID corresponds to a valid transaction initiated within the QA environment.
status (enum): State of the money movement you wish to change. Only the following statuses are allowed: completed or rejected.
Response:
If succesfull, the endpoint will return a 204 HTTP Code (no body) and you will see the new status updated on the money_movement_id provided.
If any error ocurrs during the request a HTTP 400 Bad Request with no body will appear.