Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to create async API trigger in Application integration??

Hi,

I am creating one integration flow in which I make the call to the api.

I am using API Trigger

The flow includes calling the api if the response is 400 then it have to retry. 

Its working when i use the Test to call the Trigger after increasing the execution deadline more than 10 min. But not working using the curl request .

Can anyone give me idea to implement the async call via API trigger or any other option.

Here I am adding the workflow.

@aakashsharmaa5  @Graham-Vosper @HansGeorg 

 

Sau101_1-1728989162526.png

I am using  curl --location 'https://integrations.googleapis.com/v2/projects/myproject/locations/asia-south1/integrations/einvoic...' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"invoice_request": {
"rtnprd": "052024",
"supplyType": "B2B",
"gstin": "27**********1Z9",
"apigeeToken": "Bearer asdfdfgsgghtehsrt",
"callBackUrl": "https://data.com/data_upload",
"callBackAuthToken": "Bearer sadfsgdsasdf"
}}'

for async call but it fails and give error for the api on 1st retry (retry on hold).

Sau101_0-1728990750061.png

it should try for the retry 3 times as i given in error handling

Sau101_1-1728990859934.png

 

 

 

 

 
0 2 245
2 REPLIES 2

If you want to call the API Trigger Asynchronously, then you can use this API instead of the execute API. 
https://cloud.google.com/application-integration/docs/reference/rest/v2/projects.locations.integrati...