Getting 400 while closing the campaign

I am using {{baseUrl}}/v3/campaigns/{{campaignId}}/complete to close a campaign.

Campaign id I am using is past due date. But getting an error.

{"detailCode":"400.1 Bad request content","trackingId":"f02fdcda624c45b7axxxxxxxxxx","messages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"The request was syntactically correct but its content is semantically invalid."},{"locale":"und","localeOrigin":"REQUEST","text":"The request was syntactically correct but its content is semantically invalid."}],"causes":[]}

Even i tried with or without body which also didn’t work.

It’s a post request , body should have either below value.
{
“autoCompleteAction”: “REVOKE”
}

OR
{
“autoCompleteAction”: “APPROVE”
}

Yes, I am doing POST call and tried with both the bodies even without body but nothing works.
I have followed the API docs.

hi @Amrit1897

Check the campaign ID again.

It should be like this
Example: ef38f94347e94562b5bb8424a56397d8

You can get this ID in the URL(End) when you open that particular campaign.

Thank you!

I am also getting the 400.1 error when trying to use {{baseUrl}}/v3/campaigns/{{campaignId}}/complete to close a campaign

My campaign is past due.

My body is

{
“autoCompleteAction”: “REVOKE”
}

I’ve tried it with v3 and v2024 and get the same error

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.