Loading

Marketing Cloud Engagement | Verify the Business Unit Specified When Requesting an Access Token if a REST API Call Returns a 400 Error

Data pubblicazione: Oct 26, 2026
Descrizione

A Marketing Cloud Engagement REST API call can return a 400 error that implies the target resource does not exist, even though the request contains no apparent errors.

Because a 400 error is generic and usually indicates a request problem, troubleshooting is time-consuming when you can't find an error in the request.

Check the BU specified when you requested the access token if all of the following conditions apply:

  • The access token API (POST /v2/token) returns a successful response.
  • The request body includes all required fields with correct values.
  • The API returns a 400 error as if the specified resource, such as the messageId in the push send API, can't be found.
Risoluzione

When you request an access token, specify the Member ID (MID) of the BU where the target resource is registered in account_id. If the target resource is registered in a different BU, the API can return a 400 error. This error implies the resource doesn't exist, even when the request is correct.

Follow these steps to check and fix the issue:

  1. Identify the BU where the target resource (for example, a push message) is registered.
  2. Check that account_id in the request body of the access token API (POST /v2/token) matches the MID of the BU from step 1.
  3. If the values don't match, request a new access token and specify the MID of the BU from step 1 in account_id.

Important: The BU that you specify in account_id in step 3 must have Enable Integration enabled in the installed package. To check the integration status, open the Access tab of the installed package.

If Enable Integration isn't enabled, the access token API returns an invalid_client error (HTTP 401).

If these steps don't resolve the issue, contact Support. Include the full request and response, with client_secret and access_token masked.

Numero articolo Knowledge

005459645

 
Caricamento
Salesforce Help | Article