action api_update_return_policy {
label: "updateReturnPolicy"
description: "This method updates an existing return policy. Specify the policy you want to update using the return_policy_id path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload."
provider: api
method: PUT
path: "/return_policy/{return_policy_id}"
encoding: json
input: {
type: "object"
properties: {
categoryTypes: {
type: "array"
description: "This container indicates which category group that the return policy applies to.
Note: Return business policies are not applicable to motor vehicle listings, so the categoryTypes.name value must be set to ALL_EXCLUDING_MOTORS_VEHICLES for return business policies."
items: {
type: "object"
description: "The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.
Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings."
properties: {
default: {
type: "boolean"
description: "Note: This field has been deprecated and is no longer used.
"
}
name: {
type: "string"
description: "The category type to which the policy applies (motor vehicles or non-motor vehicles).
The MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation"
}
}
}
}
description: {
type: "string"
description: "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages.
Max length: 250"
}
extendedHolidayReturnsOffered: {
type: "boolean"
description: "
Important! This field is deprecated, since eBay no longer supports extended holiday returns. Any value supplied in this field is neither read nor returned.
" } internationalOverride: { type: "object" description: "This container is used by the seller to specify a separate international return policy. If a separate international return policy is not defined by a seller, all of the domestic return policy settings will also apply to international orders." properties: { returnMethod: { type: "string" description: "This field sets/indicates if the seller offers replacement items to the buyer in the case of an international return. The buyer must be willing to accept a replacement item; otherwise, the seller will need to issue a refund for a return. For implementation help, refer to eBay API documentation" } returnPeriod: { type: "object" description: "This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.DAY and the value field to either 30 or 60 (or other value, as appropriate). true."
properties: {
unit: {
type: "string"
description: "These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit. BUYER or SELLER. true. For implementation help, refer to eBay API documentation"
}
returnsAccepted: {
type: "boolean"
description: "If set to true, the seller accepts international returns. If set to false, the seller does not accept international returns. Important! If this field is not included in a return business policy, it will default to MONEY_BACK.
For implementation help, refer to eBay API documentation" } restockingFeePercentage: { type: "string" description: "Important! This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns. If this field is included, it is ignored.
" } returnInstructions: { type: "string" description: "This text-based field provides more details on seller-specified return instructions.Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.
DAY and value to either 30 or 60 (or other value, as appropriate). true."
properties: {
unit: {
type: "string"
description: "These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit. BUYER or SELLER. true. For implementation help, refer to eBay API documentation"
}
return_policy_id: {
type: "string"
}
returnsAccepted: {
type: "boolean"
description: "If set to true, the seller accepts returns. Note:Top-Rated sellers must accept item returns and the handlingTime should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits.
" } } required: ["return_policy_id"] additionalProperties: false } output: { type: "object" description: "A complex type that is populated with a response containing a return policies." properties: { categoryTypes: { type: "array" description: "This field always returnsALL_EXCLUDING_MOTORS_VEHICLES for return business policies, since return business policies are not applicable to motor vehicle listings."
items: {
type: "object"
description: "The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings. MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation"
}
}
}
}
description: {
type: "string"
description: "A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy. Important! This field is deprecated, since eBay no longer supports extended holiday returns. This field should no longer be returned.
" } internationalOverride: { type: "object" description: "This container is used by the seller to specify a separate international return policy, and will only be returned if the seller has set a separate return policy for international orders. If a separate international return policy is not defined by a seller, all of the domestic return policy settings will also apply to international orders." properties: { returnMethod: { type: "string" description: "This field sets/indicates if the seller offers replacement items to the buyer in the case of an international return. The buyer must be willing to accept a replacement item; otherwise, the seller will need to issue a refund for a return. For implementation help, refer to eBay API documentation" } returnPeriod: { type: "object" description: "This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked \"delivered\" at the buyer's specified ship-to location.DAY and the value field to either 30 or 60 (or other value, as appropriate). true."
properties: {
unit: {
type: "string"
description: "These enum values represent the time measurement unit, such as DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit. BUYER or SELLER. true. For implementation help, refer to eBay API documentation"
}
returnsAccepted: {
type: "boolean"
description: "If set to true, the seller accepts international returns. If set to false, the seller does not accept international returns. MONEY_BACK. For implementation help, refer to eBay API documentation"
}
restockingFeePercentage: {
type: "string"
description: "Important! This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns.
" } returnInstructions: { type: "string" description: "This text-based field provides more details on seller-specified return instructions.Important! This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call getReturnPolicies method of the Metadata API. Then you will look for the policyDescriptionEnabled field with a value of true for the eBay category.
DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit. BUYER or SELLER. true, the seller accepts returns. If set to false, this field indicates that the seller does not accept returns."
}
warnings: {
type: "array"
description: "An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty."
items: {
type: "object"
description: "A container that defines the elements of error and warning messages."
properties: {
category: {
type: "string"
description: "The category type for this error or warning. It is a string that can have one of three values:Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as \"Seller does not ship item to Antarctica\" or \"Buyer ineligible to purchase an alcoholic item\". Business errors are not syntactical input errors.Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.message error field."
}
message: {
type: "string"
description: "Information on how to correct the problem, in the end user's terms and language where applicable. Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale."
}
outputRefIds: {
type: "array"
description: "Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId."
items: {
type: "string"
}
}
parameters: {
type: "array"
description: "This optional list of name/value pairs that contain context-specific ErrorParameter objects, with each item in the list being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value."
items: {
type: "object"
description: "A complex type that indicates a parameter that caused an error and the value of the parameter which caused the error."
properties: {
name: {
type: "string"
description: "Name of the parameter that caused the error."
}
value: {
type: "string"
description: "The value of the parameter that caused the error."
}
}
}
}
subdomain: {
type: "string"
description: "If present, indicates the subsystem in which the error occurred."
}
}
}
}
}
}
}