action ebay_get_payment_policy {
label: "getPaymentPolicy"
description: "This method retrieves the complete details of a payment policy. Supply the ID of the policy you want to retrieve using the paymentPolicyId path parameter."
provider: ebay
method: GET
path: "/payment_policy/{payment_policy_id}"
encoding: json
input: {
type: "object"
properties: {
payment_policy_id: {
type: "string"
}
}
required: ["payment_policy_id"]
additionalProperties: false
}
output: {
type: "object"
description: "This type is used by the paymentPolicy response container, a container which defines a seller's payment business policy for a specific marketplace."
properties: {
categoryTypes: {
type: "array"
description: "This container indicates whether the fulfillment policy applies to motor vehicle listings, or if it applies to non-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.
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"
}
}
}
}
deposit: {
type: "object"
description: "This type is used to specify/indicate that an initial deposit is required for a motor vehicle listing."
properties: {
amount: {
type: "object"
description: "A complex type that describes the value of a monetary amount as represented by a global currency. When passing in an amount in a request payload, both currency and value fields are required, and both fields are also always returned for an amount in a response field."
properties: {
currency: {
type: "string"
description: "The base currency applied to the value field to establish a monetary amount.
The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.
Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation"
}
value: {
type: "string"
description: "The monetary amount in the specified currency."
}
}
}
dueIn: {
type: "object"
description: "A type used to specify a period of time using a specified time-measurement unit. Payment, return, and fulfillment business policies all use this type to specify time windows.
Whenever a container that uses this type is used in a request, both of these fields are required. Similarly, whenever a container that uses this type is returned in a response, both of these fields are always returned."
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.
See TimeDurationUnitEnum for a complete list of possible time-measurement units. For implementation help, refer to eBay API documentation"
}
value: {
type: "integer"
format: "int32"
description: "An integer that represents an amount of time, as measured by the time-measurement unit specified in the unit field."
}
}
}
paymentMethods: {
type: "array"
description: "This array is no longer applicable and should not be used since eBay now manages the electronic payment options available to buyers to pay the deposit."
items: {
type: "object"
description: "This type is used by the paymentMethods container, which is used by the seller to specify one or more offline payment methods.
Note: eBay now controls all electronic payment methods available for a marketplace, so a seller will no longer use this type to specify any electronic payment methods."
properties: {
brands: {
type: "array"
description: "Note: This array is no longer applicable and should not be used. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods, including any credit card brands accepted. "
items: {
type: "string"
description: " For implementation help, refer to eBay API documentation"
}
}
paymentMethodType: {
type: "string"
description: "eBay now controls all electronic payment methods available for a marketplace, so only offline payment method enum values may be used in this field, and offline payment methods will only be applicable to listings that require or support offline payments. See the PaymentMethodTypeEnum type for supported offline payment method enum values.
true, immediate payment is required from the buyer for: true in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller."
}
marketplaceId: {
type: "string"
description: "The ID of the eBay marketplace to which the payment business policy applies. For implementation help, refer to eBay API documentation"
}
name: {
type: "string"
description: "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace.