온라인 반품 정책 관리 이전
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Content API 리소스 OnlineReturnPolicy
및 ReturnPolicyPolicy
, ReturnPolicySeasonalOverride
를 비롯한 관련 필드가 변경되었습니다.
Content API의 returnpolicy
리소스에 해당하는 Merchant 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
이 Merchant API에서 Policy
이 됩니다. 필드가 변경된 방식은 다음과 같습니다.
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 를 사용하세요. 배송 후 상품을 반품할 수 있는 일수를 나타냅니다. 여기서 하루는 배송 타임스탬프 후 24시간으로 정의됩니다. NUMBER_OF_DAYS_AFTER_DELIVERY 반품에 필요합니다.
|
ReturnPolicySeasonalOverride
Content API ReturnPolicySeasonalOverride
가 Merchant API에서 SeasonalOverride
이 됩니다. 필드 변경사항 외에도 추가 필드 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 메서드와 다른 변경사항도 있습니다.
Content API |
Merchant API |
customBatch
|
Merchant API를 사용하면 다른 접근 방식을 취할 수 있습니다.
동시 요청을 위한 코드 리팩터링을 참고하세요.
|
delete
|
delete
|
get
|
get
|
insert
|
create
|
list
|
list
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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 ` |"]]