[null,null,["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eRetrieves the status of multiple Merchant Center accounts through a single batch request.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eAccountstatusesCustomBatchRequest\u003c/code\u003e object with details of the accounts.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of \u003ccode\u003eAccountstatusesCustomBatchResponseEntry\u003c/code\u003e objects, each containing the status of an individual account or errors encountered.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003ePOST\u003c/code\u003e method and requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This outlines a method to retrieve multiple Merchant Center account statuses via a single HTTP POST request to `https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch`. The request body uses `AccountstatusesCustomBatchRequest`, containing `AccountstatusesCustomBatchRequestEntry` to define each account status request with `merchantId`, `accountId`, and optional `destinations`. The response body, represented by `AccountstatusesCustomBatchResponse`, has `AccountstatusesCustomBatchResponseEntry` including `batchId`, `accountStatus`, or `errors`. One authorization scope is required `https://www.googleapis.com/auth/content`\n"],null,["# Method: accountstatuses.custombatch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.AccountstatusesCustomBatchResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [AccountstatusesCustomBatchRequest](#AccountstatusesCustomBatchRequest)\n - [JSON representation](#AccountstatusesCustomBatchRequest.SCHEMA_REPRESENTATION)\n- [AccountstatusesCustomBatchRequestEntry](#AccountstatusesCustomBatchRequestEntry)\n - [JSON representation](#AccountstatusesCustomBatchRequestEntry.SCHEMA_REPRESENTATION)\n- [AccountstatusesCustomBatchResponseEntry](#AccountstatusesCustomBatchResponseEntry)\n - [JSON representation](#AccountstatusesCustomBatchResponseEntry.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nRetrieves multiple Merchant Center account statuses in a single request.\n\n### HTTP request\n\n`POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch`\n\n### Request body\n\nThe request body contains an instance of [AccountstatusesCustomBatchRequest](/shopping-content/reference/rest/v2.1/accountstatuses/custombatch#AccountstatusesCustomBatchRequest).\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"entries\": [ { object (/shopping-content/reference/rest/v2.1/accountstatuses/custombatch#AccountstatusesCustomBatchResponseEntry) } ], \"kind\": string } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entries[]` | `object (`[AccountstatusesCustomBatchResponseEntry](/shopping-content/reference/rest/v2.1/accountstatuses/custombatch#AccountstatusesCustomBatchResponseEntry)`)` The result of the execution of the batch requests. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#accountstatusesCustomBatchResponse`\". |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nAccountstatusesCustomBatchRequest\n---------------------------------\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"entries\": [ { object (/shopping-content/reference/rest/v2.1/accountstatuses/custombatch#AccountstatusesCustomBatchRequestEntry) } ] } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entries[]` | `object (`[AccountstatusesCustomBatchRequestEntry](/shopping-content/reference/rest/v2.1/accountstatuses/custombatch#AccountstatusesCustomBatchRequestEntry)`)` The request entries to be processed in the batch. |\n\nAccountstatusesCustomBatchRequestEntry\n--------------------------------------\n\nA batch entry encoding a single non-batch accountstatuses request.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"batchId\": integer, \"merchantId\": string, \"method\": string, \"accountId\": string, \"destinations\": [ string ] } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `batchId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` An entry ID, unique within the batch request. |\n| `merchantId` | `string` The ID of the managing account. |\n| `method` | `string` The method of the batch entry. Acceptable values are: - \"`get`\" \u003cbr /\u003e |\n| `accountId` | `string` The ID of the (sub-)account whose status to get. |\n| `destinations[]` | `string` If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. |\n\nAccountstatusesCustomBatchResponseEntry\n---------------------------------------\n\nA batch entry encoding a single non-batch accountstatuses response.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"batchId\": integer, \"accountStatus\": { object (/shopping-content/reference/rest/v2.1/accountstatuses#AccountStatus) }, \"errors\": { object (/shopping-content/reference/rest/v2.1/Errors) } } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `batchId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the request entry this entry responds to. |\n| `accountStatus` | `object (`[AccountStatus](/shopping-content/reference/rest/v2.1/accountstatuses#AccountStatus)`)` The requested account status. Defined if and only if the request was successful. |\n| `errors` | `object (`[Errors](/shopping-content/reference/rest/v2.1/Errors)`)` A list of errors for failed custombatch entries. | **Note:** Schema errors fail the whole request. \u003cbr /\u003e |"]]