建立及管理線上退貨政策
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面提供如何查看線上退貨政策的相關資訊。
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
欄位代表線上退貨政策的專屬 ID。
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 UI 建立退貨政策。詳情請參閱「設定購物廣告和免費產品資訊的退貨政策」。在 Merchant Center 中建立退貨政策後,政策最慢可能需要 10 個工作天才能完成審查並開始生效。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-08 (世界標準時間)。
[null,null,["上次更新時間: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."]]