You can pause your project through the REST API. When you set up spend management, you can trigger a webhook which calls the REST API with the following code:
Pause your project
Use a webhook to pause your project based on spend management.
DX Team
Knowledge BaseGuides