Returnpolicy: insert

Inserts a return policy for the Merchant Center account. Try it now.

Request

HTTP request

POST https://www.googleapis.com/content/v2.1/merchantId/returnpolicy

Parameters

Parameter name Value Description
Path parameters
merchantId unsigned long The Merchant Center account to insert a return policy for.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/content

Request body

In the request body, supply a Returnpolicy resource with the following properties:

Property name Value Description Notes
Required Properties
country string The country of sale where the return policy is applicable. writable
label string The user-defined label of the return policy. For the default policy, use the label "default". writable
name string The name of the policy as shown in Merchant Center. writable
policy nested object The policy. writable
policy.lastReturnDate string Last day for returning the items. In ISO 8601 format. When specifying the return window like this, set the policy type to "lastReturnDate". Use this for seasonal overrides only. writable
seasonalOverrides[].endDate string Last day on which the override applies. In ISO 8601 format. writable
seasonalOverrides[].name string The name of the seasonal override as shown in Merchant Center. writable
seasonalOverrides[].policy nested object The policy which is in effect during that time. writable
seasonalOverrides[].policy.lastReturnDate string Last day for returning the items. In ISO 8601 format. When specifying the return window like this, set the policy type to "lastReturnDate". Use this for seasonal overrides only. writable
seasonalOverrides[].startDate string First day on which the override applies. In ISO 8601 format. writable
Optional Properties
nonFreeReturnReasons[] list Return reasons that will incur return fees. writable
policy.numberOfDays long The number of days items can be returned after delivery, where one day is defined to be 24 hours after the delivery timestamp. When specifying the return window like this, set the policy type to "numberOfDaysAfterDelivery". Acceptable values are 30, 45, 60, 90, 100, 180, 270 and 365 for the default policy. Additional policies further allow 14, 15, 21 and 28 days, but note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics. A policy of less than 30 days can only be applied to those items. writable
policy.type string Policy type. Use "lastReturnDate" for seasonal overrides only. Note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-returnable items such as food, perishables, and living things. A policy of less than 30 days can only be applied to those items.

Acceptable values are:
  • "lastReturnDate"
  • "lifetimeReturns"
  • "noReturns"
  • "numberOfDaysAfterDelivery"
writable
seasonalOverrides[] list An optional list of seasonal overrides. writable
seasonalOverrides[].policy.numberOfDays long The number of days items can be returned after delivery, where one day is defined to be 24 hours after the delivery timestamp. When specifying the return window like this, set the policy type to "numberOfDaysAfterDelivery". Acceptable values are 30, 45, 60, 90, 100, 180, 270 and 365 for the default policy. Additional policies further allow 14, 15, 21 and 28 days, but note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics. A policy of less than 30 days can only be applied to those items. writable
seasonalOverrides[].policy.type string Policy type. Use "lastReturnDate" for seasonal overrides only. Note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-returnable items such as food, perishables, and living things. A policy of less than 30 days can only be applied to those items.

Acceptable values are:
  • "lastReturnDate"
  • "lifetimeReturns"
  • "noReturns"
  • "numberOfDaysAfterDelivery"
writable

Response

If successful, this method returns a Returnpolicy resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.