[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eBatch multiple return policy calls in a single request to improve efficiency.\u003c/p\u003e\n"],["\u003cp\u003eUtilize methods such as \u003ccode\u003edelete\u003c/code\u003e, \u003ccode\u003eget\u003c/code\u003e, and \u003ccode\u003einsert\u003c/code\u003e to manage return policies.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eResponses include a batch ID, return policy details or errors encountered.\u003c/p\u003e\n"],["\u003cp\u003eEach request entry needs a unique batch ID within the batch request.\u003c/p\u003e\n"]]],["This content outlines a batch processing system for managing return policies. It uses a `POST` request to `returnpolicy/batch`. The request body, `ReturnpolicyCustomBatchRequest`, contains an array of `ReturnpolicyCustomBatchRequestEntry` objects, each specifying a `method` (`delete`, `get`, or `insert`), `batchId`, `merchantId`, and optionally `returnPolicyId` or `returnPolicy`. The response, `ReturnpolicyCustomBatchResponse`, contains `ReturnpolicyCustomBatchResponseEntry` objects with results, errors, and a `batchId` to link back to the request. Requires `https://www.googleapis.com/auth/content` scope.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ReturnpolicyCustomBatchResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [ReturnpolicyCustomBatchRequest](#ReturnpolicyCustomBatchRequest)\n - [JSON representation](#ReturnpolicyCustomBatchRequest.SCHEMA_REPRESENTATION)\n- [ReturnpolicyCustomBatchRequestEntry](#ReturnpolicyCustomBatchRequestEntry)\n - [JSON representation](#ReturnpolicyCustomBatchRequestEntry.SCHEMA_REPRESENTATION)\n- [ReturnpolicyCustomBatchResponseEntry](#ReturnpolicyCustomBatchResponseEntry)\n - [JSON representation](#ReturnpolicyCustomBatchResponseEntry.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nBatches multiple return policy related calls in a single request.\n\nHTTP request\n\n`POST https://shoppingcontent.googleapis.com/content/v2.1/returnpolicy/batch`\n\nRequest body\n\nThe request body contains an instance of [ReturnpolicyCustomBatchRequest](/shopping-content/reference/rest/v2.1/returnpolicy/custombatch#ReturnpolicyCustomBatchRequest).\n\nResponse body If successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"entries\": [ { object (/shopping-content/reference/rest/v2.1/returnpolicy/custombatch#ReturnpolicyCustomBatchResponseEntry) } ], \"kind\": string } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entries[]` | `object (`[ReturnpolicyCustomBatchResponseEntry](/shopping-content/reference/rest/v2.1/returnpolicy/custombatch#ReturnpolicyCustomBatchResponseEntry)`)` The result of the execution of the batch requests. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#returnpolicyCustomBatchResponse`\". |\n\nAuthorization 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\nReturnpolicyCustomBatchRequest\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"entries\": [ { object (/shopping-content/reference/rest/v2.1/returnpolicy/custombatch#ReturnpolicyCustomBatchRequestEntry) } ] } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entries[]` | `object (`[ReturnpolicyCustomBatchRequestEntry](/shopping-content/reference/rest/v2.1/returnpolicy/custombatch#ReturnpolicyCustomBatchRequestEntry)`)` The request entries to be processed in the batch. |\n\nReturnpolicyCustomBatchRequestEntry\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"batchId\": integer, \"merchantId\": string, \"method\": string, \"returnPolicyId\": string, \"returnPolicy\": { object (/shopping-content/reference/rest/v2.1/returnpolicy#ReturnPolicy) } } ``` |\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 Merchant Center account ID. |\n| `method` | `string` Method of the batch request entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" \u003cbr /\u003e |\n| `returnPolicyId` | `string` The return policy ID. This should be set only if the method is `delete` or `get`. |\n| `returnPolicy` | `object (`[ReturnPolicy](/shopping-content/reference/rest/v2.1/returnpolicy#ReturnPolicy)`)` The return policy to submit. This should be set only if the method is `insert`. |\n\nReturnpolicyCustomBatchResponseEntry\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"batchId\": integer, \"returnPolicy\": { object (/shopping-content/reference/rest/v2.1/returnpolicy#ReturnPolicy) }, \"errors\": { object (/shopping-content/reference/rest/v2.1/Errors) }, \"kind\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `batchId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the request entry to which this entry responds. |\n| `returnPolicy` | `object (`[ReturnPolicy](/shopping-content/reference/rest/v2.1/returnpolicy#ReturnPolicy)`)` The retrieved return policy. |\n| `errors` | `object (`[Errors](/shopping-content/reference/rest/v2.1/Errors)`)` A list of errors defined if, and only if, the request failed. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#returnpolicyCustomBatchResponseEntry`\" |"]]