Onboarding a new client problem

hello i am trying to create a workflow for my clients (fully automated using python sdk and gcp api) , for each client i create a new project, attach a billing to him, enable api’s and giving a service role i predefined roles for services (retail,storage) then create a new bucket, import a csv as a new catalog (trying to use vertex ai search for commerce) but when i do it i get this error which it means i need to approve terms of service manually inorder for the service to work, i want to do it fully automated, is there anyway to do it?

the error:

Status: 400
Response: {
“error”: {
“code”: 400,
“message”: “The resource project demo_project_x doesn’t have Cloud Retail enabled or it hasn’t accepted Retail data use terms. You can update those in Retail Admin Console, https://console.cloud.google.com/ai/retail/start.”,
“status”: “FAILED_PRECONDITION”
}
}