v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13125317428.7 KB
returnpolicyonline

Creates a new return policy.

post/{merchantId}/returnpolicyonline

Path parameters

merchantIdstring required

Required. The id of the merchant for which to retrieve the return policy online object.

Request body

returnMethodsstring[]

The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.

returnPolicyUristring

The return policy uri. This can used by Google to do a sanity check for the policy.

itemConditionsstring[]

The item conditions that are accepted for returns. This is required to not be empty unless the type of return policy is noReturns.

returnPolicyIdstring

Output only. Return policy ID generated by Google.

namestring

The name of the policy as shown in Merchant Center.

countriesstring[]

The countries of sale where the return policy is applicable. The values must be a valid 2 letter ISO 3166 code, e.g. "US".

labelstring

The unique user-defined label of the return policy. The same label cannot be used in different return policies for the same country. Policies with the label 'default' will apply to all products, unless a product specifies a return_policy_label attribute.

Response

Successful response