ย้ายข้อมูลการจัดการนโยบายคืนสินค้าออนไลน์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
มีการเปลี่ยนแปลงทรัพยากร Content API OnlineReturnPolicy
และฟิลด์ที่เกี่ยวข้อง ซึ่งรวมถึง
ReturnPolicyPolicy
และ ReturnPolicySeasonalOverride
เทียบเท่า Merchant API ของแหล่งข้อมูล
returnpolicy
ใน
Content API คือ
accounts.onlineReturnPolicies
ตารางนี้อธิบายการเปลี่ยนแปลงใน OnlineReturnPolicy
Content API |
Merchant API |
"country": string
|
"countries": [ string ]
|
"policy": {
object (ReturnPolicyPolicy)
}
|
"policy": {
object (Policy)
}
|
"seasonalOverrides": [
{
object (ReturnPolicySeasonalOverride)
}
]
|
"seasonalOverrides": [
{
object (SeasonalOverride)
}
],
|
nonFreeReturnReasons": [ string ]
|
ฟิลด์นี้จะหายไป
|
kind
|
ฟิลด์นี้จะหายไป
|
"returnShippingFee": {
object (Price)
}
|
"returnShippingFee": {
object (ReturnShippingFee)
}
|
นอกจากนี้ ฟิลด์จำนวนหนึ่งยังเป็นฟิลด์ใหม่ใน Merchant API
ฟิลด์ Merchant API |
คำอธิบาย |
"restockingFee": {
object (RestockingFee)
},
|
ไม่บังคับ ค่าธรรมเนียมการเติมสินค้าคงคลังที่มีผลกับหมวดหมู่เหตุผลในการคืนสินค้าทั้งหมด
ระบบจะถือว่านี่เป็นค่าธรรมเนียมการคืนสินค้าฟรีหากไม่ได้ตั้งค่า
|
"returnMethods": [
enum (ReturnMethod)
]
|
ไม่บังคับ วิธีการคืนสินค้าที่ลูกค้าสามารถใช้เพื่อคืนสินค้า ค่านี้
ต้องไม่ว่างเปล่า เว้นแต่ประเภทนโยบายคืนสินค้าจะเป็น noReturns
|
"itemConditions": [ enum (ItemCondition) ],
|
ไม่บังคับ เงื่อนไขของสินค้าที่ยอมรับสำหรับการคืนสินค้าต้องไม่ว่างเปล่า เว้นแต่ประเภทนโยบายคืนสินค้าจะเป็น noReturns.
|
"returnShippingFee": {
object (ReturnShippingFee)
}
|
ไม่บังคับ ค่าธรรมเนียมการส่งคืนสินค้า ควรตั้งค่าเฉพาะเมื่อลูกค้าต้องการ
ดาวน์โหลดและพิมพ์ป้ายกำกับการคืนสินค้า
|
"returnPolicyUri": string
|
ต้องระบุ URI ของนโยบายคืนสินค้า Google ใช้ข้อมูลนี้เพื่อตรวจสอบนโยบาย
โดยต้องเป็น URL ที่ถูกต้อง
|
"acceptDefectiveOnly": boolean
|
ต้องระบุ ระบุว่าผู้ขายรับคืนเฉพาะผลิตภัณฑ์ที่มีข้อบกพร่อง
|
"processRefundDays": integer
|
ไม่บังคับ ระบุจำนวนวันที่ผู้ขายใช้ในการดำเนินการคืนเงิน
|
"acceptExchange": boolean
|
ไม่บังคับ ระบุว่าผู้ขายอนุญาตให้ลูกค้าเปลี่ยนผลิตภัณฑ์หรือไม่
|
"returnLabelSource": enum (ReturnLabelSource)
|
ระบุแหล่งที่มาของป้ายกำกับการคืนสินค้า ต้องระบุเมื่อวิธีการคืนสินค้าคือ BY_MAIL
|
ReturnPolicyPolicy
Content API ReturnPolicyPolicy
จะกลายเป็น Policy
ใน Merchant API สิ่งที่เปลี่ยนแปลงในช่องมีดังนี้
Content API |
Merchant API |
"type": string,
|
"type": enum (Type)
ค่าที่เป็นไปได้ ได้แก่
NUMBER_OF_DAYS_AFTER_DELIVERY, NO_RETURNS or LIFETIME_RETURNS.
|
"numberOfDays": string
|
"days": string
|
"lastReturnDate": string
|
โปรดใช้ days แทน โดยแสดงถึงจำนวนวันที่สามารถคืนสินค้าได้หลังจากการนำส่ง โดย 1 วันหมายถึง 24 ชั่วโมงหลังจาก
การนำส่งตามการประทับเวลา ต้องระบุสำหรับการคืนสินค้า NUMBER_OF_DAYS_AFTER_DELIVERY
|
ReturnPolicySeasonalOverride
Content API ReturnPolicySeasonalOverride
จะกลายเป็น SeasonalOverride
ใน
Merchant API นอกเหนือจากการเปลี่ยนแปลงในช่องแล้ว ช่องเพิ่มเติม
return_window
ยังเป็นยูเนียนที่อาจเป็น returnDays
หรือ returnUntilDate
ได้ด้วย
"returnDays": integer,
"returnUntilDate": {
object (Date)
โดยมีความหมายดังนี้
returnDays
: จำนวนวัน (จากวันที่นำส่ง) ที่ยังคืนผลิตภัณฑ์ได้
returnUntilDate
: วันที่สิ้นสุดที่แน่นอนซึ่งจะคืนผลิตภัณฑ์ได้
ฟิลด์มีการเปลี่ยนแปลงดังนี้
Content API |
Merchant API |
"name": string
|
"label": string
|
"startDate": string
|
"startDate": {
object (Date)
}
|
"endDate": string
|
"endDate": {
object (Date)
}
|
"policy": {
object (ReturnPolicyPolicy)
}
|
โปรดใช้ policy แทน
|
คำจำกัดความของออบเจ็กต์อื่นๆ
ดูคำจำกัดความของออบเจ็กต์ Merchant API ใหม่
RestockingFee
ReturnMethod
ItemCondition
ReturnShippingFee
Type
ReturnLabelSource
ดูaccounts.onlineReturnPolicies
เมธอด
นอกจากนี้ Merchant API ยังมีการเปลี่ยนแปลงบางอย่างจากวิธีการของ Content API ด้วย
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-08 UTC
[null,null,["อัปเดตล่าสุด 2025-08-08 UTC"],[],[],null,["# Migrate online return policy management\n\nThe Content API resource `OnlineReturnPolicy` and associated fields including\n`ReturnPolicyPolicy` and `ReturnPolicySeasonalOverride` have changed.\n\nThe Merchant API equivalent of the\n[`returnpolicy`](/shopping-content/reference/rest/v2.1/returnpolicy) resource in\nContent API is\n[`accounts.onlineReturnPolicies`](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies).\n\nThis table explains what changes in `OnlineReturnPolicy`.\n\n| Content API | Merchant API |\n|------------------------------------------------------------------------|-------------------------------------------------------------|\n| ` \"country\": string ` | ` \"countries\": [ string ] ` |\n| ` \"policy\": { object (ReturnPolicyPolicy) } ` | ` \"policy\": { object (Policy) } ` |\n| ` \"seasonalOverrides\": [ { object (ReturnPolicySeasonalOverride) } ] ` | ` \"seasonalOverrides\": [ { object (SeasonalOverride) } ], ` |\n| ` nonFreeReturnReasons\": [ string ] ` | This field goes away.` ` |\n| `kind ` | This field goes away.` ` |\n| ` \"returnShippingFee\": { object (Price) } ` | ` \"returnShippingFee\": { object (ReturnShippingFee) } ` |\n\nIn addition, a number of fields are new with Merchant API.\n\n| Merchant API field | Description |\n|---------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` \"restockingFee\": { object (RestockingFee) }, ` | Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set. ` ` |\n| ` \"returnMethods\": [ enum (ReturnMethod) ] ` | Optional. 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. ` ` |\n| ` \"itemConditions\": [ enum (ItemCondition) ], ` | Optional. The item conditions accepted for returns must not be empty unless the type of return policy is `noReturns.` |\n| ` \"returnShippingFee\": { object (ReturnShippingFee) } ` | Optional. The return shipping fee. Should be set only when customer need to download and print the return label. ` ` |\n| ` \"returnPolicyUri\": string ` | Required. The return policy URI. Google uses this to validate the policy. It must be a valid URL. ` ` |\n| ` \"acceptDefectiveOnly\": boolean ` | Required. Specifies that a merchant accepts only defective products for returns. ` ` |\n| ` \"processRefundDays\": integer ` | Optional. Specifies the number of days it takes for merchants to process refunds. ` ` |\n| ` \"acceptExchange\": boolean ` | Optional. Specifies whether the merchant allows customers to exchange products. |\n| ` \"returnLabelSource\": enum (ReturnLabelSource) ` | Specifies the return label source. Required when return method is BY_MAIL. ` ` |\n\nReturnPolicyPolicy\n------------------\n\nThe Content API `ReturnPolicyPolicy` becomes `Policy` in Merchant API. Here's\nhow the fields have changed.\n\n| Content API | Merchant API |\n|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` \"type\": string, ` | ` \"type\": enum (Type) ` Possible values include ` NUMBER_OF_DAYS_AFTER_DELIVERY, NO_RETURNS or LIFETIME_RETURNS. ` |\n| ` \"numberOfDays\": string ` | ` \"days\": string ` |\n| ` \"lastReturnDate\": string ` | Use `days` instead. It represents the number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for `NUMBER_OF_DAYS_AFTER_DELIVERY` returns. |\n\nReturnPolicySeasonalOverride\n----------------------------\n\nThe Content API `ReturnPolicySeasonalOverride` becomes `SeasonalOverride` in\nMerchant API. In addition to the changes in fields, the additional field\n`return_window` is a union that can be either `returnDays` or `returnUntilDate`: \n\n \"returnDays\": integer,\n \"returnUntilDate\": {\n object (Date)\n\nThey have the following meanings:\n\n- `returnDays`: Number of days (from the delivery date) that the product can still be returned.\n- `returnUntilDate`: Fixed end date until which the product can be returned.\n\nHere's how the fields have changed.\n\n| Content API | Merchant API |\n|-----------------------------------------------|------------------------------------|\n| ` \"name\": string ` | ` \"label\": string ` |\n| ` \"startDate\": string ` | ` \"startDate\": { object (Date) } ` |\n| ` \"endDate\": string ` | ` \"endDate\": { object (Date) } ` |\n| ` \"policy\": { object (ReturnPolicyPolicy) } ` | Use `policy` instead. |\n\nDefinitions of other objects\n----------------------------\n\nFor definitions of the new Merchant API objects\n\n- `RestockingFee`\n- `ReturnMethod`\n- `ItemCondition`\n- `ReturnShippingFee`\n- `Type`\n- `ReturnLabelSource`\n\nsee\n[`accounts.onlineReturnPolicies`](/merchant/api/reference/rest/accounts_v1/accounts.onlineReturnPolicies).\n\nMethods\n-------\n\nWith Merchant API, there are some changes from the Content API methods as well.\n\n| Content API | Merchant API |\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` customBatch ` | With Mechant API, there is a different approach. See [Refactor code for concurrent requests.](/merchant/api/guides/compatibility/refactor-concurrent-requests) |\n| ` delete ` | ` delete ` |\n| ` get ` | ` get ` |\n| ` insert ` | `create` |\n| ` list ` | ` list ` |"]]