action ebay_get_payments_program {
label: "getPaymentsProgram"
description: "Note: This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.
This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the marketplace_id path parameter to specify the marketplace of the status flag you want returned."
provider: ebay
method: GET
path: "/payments_program/{marketplace_id}/{payments_program_type}"
encoding: json
input: {
type: "object"
properties: {
marketplace_id: {
type: "string"
}
payments_program_type: {
type: "string"
}
}
required: ["marketplace_id", "payments_program_type"]
additionalProperties: false
}
output: {
type: "object"
description: "The response object containing the sellers status with regards to the specified payment program."
properties: {
marketplaceId: {
type: "string"
description: "The ID of the eBay marketplace to which the payment program applies. For implementation help, refer to eBay API documentation"
}
paymentsProgramType: {
type: "string"
description: "This parameter specifies the payment program whose status is returned by the call.
Currently the only supported payments program is EBAY_PAYMENTS. For implementation help, refer to eBay API documentation"
}
status: {
type: "string"
description: "The enumeration value returned in this field indicates whether or not the seller's account is enabled for the payments program. For implementation help, refer to eBay API documentation"
}
wasPreviouslyOptedIn: {
type: "boolean"
description: "If returned as true, the seller was at one point opted-in to the associated payment program, but they later opted out of the program. A value of false indicates the seller never opted-in to the program or if they did opt-in to the program, they never opted-out of it.
It's important to note that the setting of this field does not indicate the seller's current status regarding the payment program. It is possible for this field to return true while the status field returns OPTED_IN."
}
}
}
}