创建和管理在线退货政策
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍了如何查看您的线上退货政策。
Merchant API 支持以下方法来检索在线退货政策:
最佳实践是,确保访问您网站的所有用户都能轻松找到您的退货政策并查看,而无需登录、注册或输入任何个人信息。此外,请确保 Merchant Center 与您网站中的退货政策一致。
检索现有的在线退货政策
如需检索现有的在线退货政策,请使用 accounts.onlineReturnPolicies.get 方法。
GET https://merchantapi.googleapis.com/accounts/v1/accounts/{ACCOUNT_ID}/onlineReturnPolicies/{ONLINE_RETURN_POLICY_ID}
请求成功后,响应将包含 OnlineReturnPolicy 资源,如以下示例所示:
{
"onlineReturnPolicies": [
{
"returnPolicyId": "ONLINE_RETURN_POLICY_ID",
"label": "default",
"countries": [
"COUNTRY_CODE"
],
"policy": {
"type": "NO_RETURNS"
},
"restockingFee": {
"fixedFee": {
"amountMicros": "0",
"currencyCode": "USD"
}
},
"returnPolicyUri": "RETURN_POLICY_URI"
}
]
}
NO_RETURNS
值表示不支持对提及的国家/地区退货。
响应正文中的 restockingFee
字段表示重新上架费用,可以是固定费用,也可以是商品价格的百分比(以微秒为单位)。
列出所有在线退货政策
如需列出所有在线退货政策,请使用 accounts.onlineReturnPolicies.list 方法,如以下请求所示:
GET https://merchantapi.googleapis.com/accounts/v1/accounts/{ACCOUNT_ID}/onlineReturnPolicies
请求成功后,响应将包含账号的所有现有在线退货政策,如下例响应所示:
{
"onlineReturnPolicies": [
{
"returnPolicyId": "7216992546",
"label": "default",
"countries": [
"IN"
],
"policy": {
"type": "NO_RETURNS"
},
"restockingFee": {
"fixedFee": {
"amountMicros": "0",
"currencyCode": "USD"
}
},
"returnPolicyUri": "http://example-pet-store.com/return"
},
{
"returnPolicyId": "7274318400",
"label": "default",
"countries": [
"GB"
],
"policy": {
"type": "NUMBER_OF_DAYS_AFTER_DELIVERY",
"days": "15"
},
"restockingFee": {
"fixedFee": {
"amountMicros": "10000000",
"currencyCode": "GBP"
}
},
"returnMethods": [
"AT_A_KIOSK"
],
"itemConditions": [
"NEW"
],
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"amountMicros": "0",
"currencyCode": "GBP"
}
},
"returnPolicyUri": "http://example-pet-store.com/return-new",
"processRefundDays": 7,
"acceptExchange": true
}
]
}
在此响应正文中,returnPolicyId
字段表示在线退货政策的唯一标识符。
returnMethods
字段表示允许用于返回项的方法。AT_A_KIOSK
表示商品可以在自助服务终端退货。其他可能的值包括 IN_STORE
和 BY_MAIL
。
processRefundDays
字段用于指定卖家处理退款所需的天数。
创建在线退货政策
如需创建退货政策,请使用以下请求:
POST https://merchantapi.googleapis.com/accounts/v1/accounts/{ACCOUNT_ID}/onlineReturnPolicies/{ONLINE_RETURN_POLICY_ID}
{
"label": "label", "countries": ["US"],
"policy": {"type": "NO_RETURNS"},
"returnPolicyUri": "https://www.uri.com"
}
以下是成功调用的示例响应:
{
"name": "accounts/ACCOUNT_ID/onlineReturnPolicies/ONLINE_RETURN_POLICY",
"returnPolicyId": "ONLINE_RETURN_POLICY",
"label": "label",
"countries": ["US"],
"policy": {
"type": "NO_RETURNS"
},
"returnShippingFee": {
"type": "FIXED",
"fixedFee": {
"amountMicros": "0",
"currencyCode": ""
}
},
"returnPolicyUri": "https://www.uri.com"
}
您还可以使用 Merchant Center 界面创建退货政策。如需了解详情,请参阅为购物广告和非付费商品详情设置退货政策。在 Merchant Center 中创建退货政策后,该政策最多可能需要 10 个工作日才能通过审核并生效。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-08。
[null,null,["最后更新时间 (UTC):2025-08-08。"],[[["\u003cp\u003eThis page explains how to retrieve online return policies using the Merchant API, which supports \u003ccode\u003eaccounts.onlineReturnPolicies.get\u003c/code\u003e and \u003ccode\u003eaccounts.onlineReturnPolicies.list\u003c/code\u003e methods.\u003c/p\u003e\n"],["\u003cp\u003eOnline return policies are created via the Merchant Center UI, and it can take up to 10 business days for a newly created policy to be reviewed and made available.\u003c/p\u003e\n"],["\u003cp\u003eExisting online return policies can be retrieved using the \u003ccode\u003eaccounts.onlineReturnPolicies.get\u003c/code\u003e method with the account ID and online return policy ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eaccounts.onlineReturnPolicies.list\u003c/code\u003e method allows you to list all existing online return policies associated with a specific account.\u003c/p\u003e\n"],["\u003cp\u003eThe response for these methods will contain details such as \u003ccode\u003ereturnPolicyId\u003c/code\u003e, \u003ccode\u003elabel\u003c/code\u003e, \u003ccode\u003ecountries\u003c/code\u003e, \u003ccode\u003epolicy\u003c/code\u003e, \u003ccode\u003erestockingFee\u003c/code\u003e, and more, to be able to understand the return policies set.\u003c/p\u003e\n"]]],["The content details how to retrieve online return policies using the Merchant API. It offers two methods: `accounts.onlineReturnPolicies.get` to fetch a specific policy by ID and `accounts.onlineReturnPolicies.list` to view all policies. Creating policies is done via the Merchant Center UI. Return policies, once created, take up to 10 business days to be reviewed. Best practices include ensuring website accessibility to the policies and consistency with the Merchant Center. The policy response contains details like ID, label, countries, policy type, restocking fees, and return methods.\n"],null,["# Create and manage your online return policies\n\nThis page provides information about how to view your online return policies.\n\nMerchant API supports the following methods for retrieving online return\npolicies:\n\n- [accounts.onlineReturnPolicies.get](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies/get)\n- [accounts.onlineReturnPolicies.list](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies/list)\n- [accounts.onlineReturnPolicies.create](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies/create)\n\nAs a best practice, ensure that your return policy is discoverable and\naccessible to all users visiting your website without requiring them to sign in,\nsign up, or enter any personal information. Also, make sure that the return\npolicies are consistent between the Merchant Center and your website.\n\nRetrieve an existing online return policy\n-----------------------------------------\n\nTo retrieve an existing online return policy, use the\n[accounts.onlineReturnPolicies.get](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies/get)\nmethod. \n\n GET https://merchantapi.googleapis.com/accounts/v1/accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/onlineReturnPolicies/\u003cvar translate=\"no\"\u003e{ONLINE_RETURN_POLICY_ID}\u003c/var\u003e\n\nAfter the request is successful, the response contains the\n[OnlineReturnPolicy](/merchant/api/reference/rest/accounts_v1/OnlineReturnPolicy)\nresource, as shown in the following example: \n\n {\n \"onlineReturnPolicies\": [\n {\n \"returnPolicyId\": \"\u003cvar class=\"readonly\" translate=\"no\"\u003eONLINE_RETURN_POLICY_ID\u003c/var\u003e\",\n \"label\": \"default\",\n \"countries\": [\n \"\u003cvar class=\"readonly\" translate=\"no\"\u003eCOUNTRY_CODE\u003c/var\u003e\"\n ],\n \"policy\": {\n \"type\": \"NO_RETURNS\"\n },\n \"restockingFee\": {\n \"fixedFee\": {\n \"amountMicros\": \"0\",\n \"currencyCode\": \"USD\"\n }\n },\n \"returnPolicyUri\": \"\u003cvar class=\"readonly\" translate=\"no\"\u003eRETURN_POLICY_URI\u003c/var\u003e\"\n }\n ]\n }\n\nThe `NO_RETURNS` value denotes that returns aren't supported for the mentioned\ncountry.\n\nThe `restockingFee` field in the response body represents the restocking fee,\nwhich can be a flat fee or a percentage of the item price in micros.\n\nList all online return policies\n-------------------------------\n\nTo list all online return policies, use the\n[accounts.onlineReturnPolicies.list](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies/list)\nmethod, as shown in the following request: \n\n GET https://merchantapi.googleapis.com/accounts/v1/accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/onlineReturnPolicies\n\nAfter the request is successful, the response contains all the existing online\nreturn policies for the account, as shown in the following sample response: \n\n {\n \"onlineReturnPolicies\": [\n {\n \"returnPolicyId\": \"7216992546\",\n \"label\": \"default\",\n \"countries\": [\n \"IN\"\n ],\n \"policy\": {\n \"type\": \"NO_RETURNS\"\n },\n \"restockingFee\": {\n \"fixedFee\": {\n \"amountMicros\": \"0\",\n \"currencyCode\": \"USD\"\n }\n },\n \"returnPolicyUri\": \"http://example-pet-store.com/return\"\n },\n {\n \"returnPolicyId\": \"7274318400\",\n \"label\": \"default\",\n \"countries\": [\n \"GB\"\n ],\n \"policy\": {\n \"type\": \"NUMBER_OF_DAYS_AFTER_DELIVERY\",\n \"days\": \"15\"\n },\n \"restockingFee\": {\n \"fixedFee\": {\n \"amountMicros\": \"10000000\",\n \"currencyCode\": \"GBP\"\n }\n },\n \"returnMethods\": [\n \"AT_A_KIOSK\"\n ],\n \"itemConditions\": [\n \"NEW\"\n ],\n \"returnShippingFee\": {\n \"type\": \"FIXED\",\n \"fixedFee\": {\n \"amountMicros\": \"0\",\n \"currencyCode\": \"GBP\"\n }\n },\n \"returnPolicyUri\": \"http://example-pet-store.com/return-new\",\n \"processRefundDays\": 7,\n \"acceptExchange\": true\n }\n ]\n }\n\nIn this response body, the `returnPolicyId` field represents the unique\nidentifier for the online return policy.\n\nThe `returnMethods` field denotes the methods that are allowed for returning\nitems. `AT_A_KIOSK` denotes that the item can be returned at a kiosk. The other\npossible values are `IN_STORE` and `BY_MAIL`.\n\nThe `processRefundDays` field specifies the number of days it takes for the\nseller to process refunds.\n\nCreate an online return policy\n------------------------------\n\nTo create a return policy, use the following request: \n\n POST https://merchantapi.googleapis.com/accounts/v1/accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/onlineReturnPolicies/\u003cvar translate=\"no\"\u003e{ONLINE_RETURN_POLICY_ID}\u003c/var\u003e\n\n {\n \"label\": \"label\", \"countries\": [\"US\"],\n \"policy\": {\"type\": \"NO_RETURNS\"},\n \"returnPolicyUri\": \"https://www.uri.com\"\n }\n\nHere's a sample response from a successful call: \n\n {\n \"name\": \"accounts/\u003cvar class=\"readonly\" translate=\"no\"\u003eACCOUNT_ID\u003c/var\u003e/onlineReturnPolicies/\u003cvar class=\"readonly\" translate=\"no\"\u003eONLINE_RETURN_POLICY\u003c/var\u003e\",\n \"returnPolicyId\": \"\u003cvar class=\"readonly\" translate=\"no\"\u003eONLINE_RETURN_POLICY\u003c/var\u003e\",\n \"label\": \"label\",\n \"countries\": [\"US\"],\n \"policy\": {\n \"type\": \"NO_RETURNS\"\n },\n \"returnShippingFee\": {\n \"type\": \"FIXED\",\n \"fixedFee\": {\n \"amountMicros\": \"0\",\n \"currencyCode\": \"\"\n }\n },\n \"returnPolicyUri\": \"https://www.uri.com\"\n }\n\nYou can also use the Merchant Center UI to create a return policy. For\nmore information, see [Set up your return policy for Shopping ads and free\nlistings](//support.google.com/merchants/answer/14011730). After you create a\nreturn policy in Merchant Center, it can take up to 10 business days for the\npolicy to be reviewed and available."]]