PayPal · Schema
Find Eligible Payment Methods Request
Request to get list of eligible payment methods.
PayPalBillingCommerceDisputesInvoicesOrderPaymentsPayoutsSubscriptionTokensWebhookAgentic CommercePayment Processing
Properties
| Name | Type | Description |
|---|---|---|
| customer | object | |
| purchase_units | array | Array of purchase units. |
| preferences | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/paypal/json-schema/paypal-find-eligible-methods-request-schema.json",
"title": "Find Eligible Payment Methods Request",
"description": "Request to get list of eligible payment methods.",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/paypal-find-eligible-methods-api-openapi.yml#/components/schemas/find_eligible_methods_request",
"type": "object",
"properties": {
"customer": {
"$ref": "#/$defs/find_eligible_methods_request_customer"
},
"purchase_units": {
"description": "Array of purchase units.",
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"$ref": "#/$defs/eligibility_purchase_unit_request"
}
},
"preferences": {
"$ref": "#/$defs/find_eligible_methods_request_preferences"
}
},
"$defs": {
"account_id-2": {
"title": "PayPal Account Identifier",
"description": "The account identifier for a PayPal account.",
"type": "string",
"minLength": 13,
"maxLength": 13,
"pattern": "^[2-9A-HJ-NP-Z]{13}$"
},
"amount_breakdown": {
"title": "amount_breakdown",
"description": "The breakdown of the amount. Breakdown provides details such as total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.",
"type": "object",
"properties": {
"item_total": {
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"description": "The subtotal for all items. Required if the request includes `purchase_units[].items[].unit_amount`. Must equal the sum of `(items[].unit_amount * items[].quantity)` for all items. <code>item_total.value</code> can not be a negative number."
}
]
},
"shipping": {
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"description": "The shipping fee for all items within a given `purchase_unit`. <code>shipping.value</code> can not be a negative number."
}
]
},
"handling": {
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"description": "The handling fee for all items within a given `purchase_unit`. <code>handling.value</code> can not be a negative number."
}
]
},
"tax_total": {
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"description": "The total tax for all items. Required if the request includes `purchase_units.items.tax`. Must equal the sum of `(items[].tax * items[].quantity)` for all items. <code>tax_total.value</code> can not be a negative number."
}
]
},
"insurance": {
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"description": "The insurance fee for all items within a given `purchase_unit`. <code>insurance.value</code> can not be a negative number."
}
]
},
"shipping_discount": {
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"description": "The shipping discount for all items within a given `purchase_unit`. <code>shipping_discount.value</code> can not be a negative number."
}
]
},
"discount": {
"allOf": [
{
"$ref": "#/$defs/discount_with_breakdown"
},
{
"description": "The discount for all items within a given `purchase_unit`. <code>discount.value</code> can not be a negative number."
}
]
}
}
},
"amount_with_breakdown": {
"title": "amount_with_breakdown",
"description": "The total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.<br/>If you specify `amount.breakdown`, the amount equals `item_total` plus `tax_total` plus `shipping` plus `handling` plus `insurance` minus `shipping_discount` minus discount.<br/>The amount must be a positive number. For listed of supported currencies and decimal precision, see the PayPal REST APIs <a href=\"/docs/integration/direct/rest/currency-codes/\">Currency Codes</a>.",
"type": "object",
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"type": "object",
"properties": {
"breakdown": {
"$ref": "#/$defs/amount_breakdown"
}
}
}
]
},
"country_code-2": {
"description": "The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country or region.<blockquote><strong>Note:</strong> The country code for Great Britain is <code>GB</code> and not <code>UK</code> as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.</blockquote>",
"type": "string",
"minLength": 2,
"maxLength": 2,
"pattern": "^([A-Z]{2}|C2)$"
},
"currency_code": {
"description": "The [three-character ISO-4217 currency code](/api/rest/reference/currency-codes/) that identifies the currency.",
"type": "string",
"minLength": 3,
"maxLength": 3,
"pattern": "^[\\S\\s]*$"
},
"discount_with_breakdown": {
"title": "discount_with_breakdown",
"description": "The discount amount and currency code. For list of supported currencies and decimal precision, see the PayPal REST APIs <a href=\"/docs/integration/direct/rest/currency-codes/\">Currency Codes</a>.",
"type": "object",
"allOf": [
{
"$ref": "#/$defs/money"
},
{
"type": "object"
}
]
},
"eligibility_purchase_unit_request": {
"title": "eligibility_purchase_unit_request",
"description": "Purchase unit for payment eligibility.",
"type": "object",
"properties": {
"amount": {
"$ref": "#/$defs/amount_with_breakdown"
},
"payee": {
"$ref": "#/$defs/payee"
}
}
},
"email": {
"title": "email",
"description": "The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted <code>@</code> sign exists.</blockquote>",
"type": "string",
"minLength": 3,
"maxLength": 254,
"pattern": "^.*(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\]).*$"
},
"email_address": {
"description": "The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted <code>@</code> sign exists.</blockquote>",
"type": "string",
"minLength": 3,
"maxLength": 254,
"pattern": "^(?:[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$"
},
"find_eligible_methods_request_customer": {
"title": "Customer",
"description": "Customer who is making a purchase from the merchant/partner.",
"type": "object",
"properties": {
"country_code": {
"allOf": [
{
"$ref": "#/$defs/country_code-2"
},
{
"description": "Country from which the customer is purchasing products/services from the merchant/partner. Result will factor in local payment methods that are available in the country mentioned. Value should be in the 2-character ISO 3166-1 code format."
}
]
},
"channel": {
"allOf": [
{
"$ref": "#/$defs/find_eligible_methods_request_customer_channel"
},
{
"description": "Channel through which the request is being posted. This object intends to collect information such as browser, operating system, device of the buyer. If both channel and User-Agent header are passed, data passed in the channel object takes precedence and User-Agent header will be used for information not provided in channel object."
}
]
},
"id": {
"description": "The unique ID for a customer in merchant's or partner's system of records.",
"type": "string",
"minLength": 1,
"maxLength": 36,
"pattern": "^[0-9a-zA-Z_-]+$"
},
"email": {
"$ref": "#/$defs/email_address"
},
"phone": {
"allOf": [
{
"$ref": "#/$defs/phone-2"
},
{
"not": {
"required": [
"extension_number"
]
}
}
]
}
}
},
"find_eligible_methods_request_customer_channel": {
"title": "Customer Channel",
"description": "Channel through which the request is being posted.",
"type": "object",
"properties": {
"browser_type": {
"description": "The browser used by the customer. Example: Safari, Chrome, etc.",
"type": "string",
"minLength": 1,
"maxLength": 30,
"pattern": "^[0-9a-zA-Z_,. -]+$"
},
"client_os": {
"description": "The operating system on the device used by the customer. Example: iOS 16.5, Android 30, etc.",
"type": "string",
"minLength": 1,
"maxLength": 30,
"pattern": "^[0-9a-zA-Z_,. -]+$"
},
"device_type": {
"description": "The type of device used by the customer. Example: Mobile, Desktop, Tablet, etc.",
"type": "string",
"minLength": 1,
"maxLength": 30,
"pattern": "^[0-9a-zA-Z_,. -]+$"
}
}
},
"find_eligible_methods_request_preferences": {
"title": "Preferences",
"description": "Preferences of merchant/partner consuming the API.",
"type": "object",
"properties": {
"payment_flow": {
"title": "Payment Flow",
"description": "This field specifies the payment flow, expected to provide a hint about which payment action the customer is intending to perform.",
"type": "string",
"enum": [
"ONE_TIME_PAYMENT",
"RECURRING_PAYMENT",
"VAULT_WITH_PAYMENT",
"VAULT_WITHOUT_PAYMENT"
]
},
"include_account_details": {
"description": "If this value is set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Value defaults to false.",
"type": "boolean",
"default": "false"
},
"include_vault_tokens": {
"description": "If this value is set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Value defaults to false.",
"type": "boolean",
"default": "false"
},
"payment_source_constraint": {
"title": "Payment Source Constraint",
"description": "Payment source constraint defines the payment methods that needs to be included/excluded for eligibility assessment. If not passed, all payment methods will be assessed for eligibility.",
"type": "object",
"required": [
"constraint_type",
"payment_sources"
],
"properties": {
"constraint_type": {
"description": "Constraint type defines whether given payment sources needs to be included or excluded.",
"type": "string",
"enum": [
"INCLUDE",
"EXCLUDE"
]
},
"payment_sources": {
"description": "Set of unique payment methods that will be included/excluded for eligibility assessment.",
"type": "array",
"minItems": 1,
"maxItems": 75,
"items": {
"$ref": "#/$defs/payment_method"
}
}
}
}
}
},
"money": {
"title": "Money",
"description": "The currency and amount for a financial transaction, such as a balance or payment due.",
"type": "object",
"required": [
"currency_code",
"value"
],
"properties": {
"currency_code": {
"$ref": "#/$defs/currency_code"
},
"value": {
"description": "The value, which might be:<ul><li>An integer for currencies like `JPY` that are not typically fractional.</li><li>A decimal fraction for currencies like `TND` that are subdivided into thousandths.</li></ul>For the required number of decimal places for a currency code, see [Currency Codes](/api/rest/reference/currency-codes/).",
"type": "string",
"minLength": 0,
"maxLength": 32,
"pattern": "^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$"
}
}
},
"payee": {
"title": "payee",
"description": "The merchant who receives the funds and fulfills the order. The merchant is also known as the payee.",
"type": "object",
"allOf": [
{
"$ref": "#/$defs/payee_base"
},
{
"type": "object"
}
]
},
"payee_base": {
"title": "payee_base",
"description": "The details for the merchant who receives the funds and fulfills the order. The merchant is also known as the payee.",
"type": "object",
"properties": {
"email_address": {
"allOf": [
{
"$ref": "#/$defs/email"
},
{
"description": "The email address of merchant."
}
]
},
"merchant_id": {
"allOf": [
{
"$ref": "#/$defs/account_id-2"
},
{
"description": "The encrypted PayPal account ID of the merchant."
}
]
}
}
},
"payment_method": {
"title": "payment_method",
"description": "Set of unique payment methods.",
"type": "string",
"enum": [
"PAYPAL",
"VENMO",
"PAYPAL_CREDIT",
"PAYPAL_PAY_LATER"
]
},
"phone-2": {
"title": "Phone",
"description": "The phone number in its canonical international [E.164 numbering plan format](https://www.itu.int/rec/T-REC-E.164/en).",
"type": "object",
"required": [
"country_code",
"national_number"
],
"properties": {
"country_code": {
"title": "country_calling_code",
"description": "The country calling code (CC), in its canonical international [E.164 numbering plan format](https://www.itu.int/rec/T-REC-E.164/en). The combined length of the CC and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN).",
"type": "string",
"minLength": 1,
"maxLength": 3,
"pattern": "^[0-9]{1,3}?$"
},
"national_number": {
"description": "The national number, in its canonical international [E.164 numbering plan format](https://www.itu.int/rec/T-REC-E.164/en). The combined length of the country calling code (CC) and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN).",
"type": "string",
"minLength": 1,
"maxLength": 14,
"pattern": "^[0-9]{1,14}?$"
},
"extension_number": {
"description": "The extension number.",
"type": "string",
"minLength": 1,
"maxLength": 15,
"pattern": "^[0-9]{1,15}?$"
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/paypal-find-eligible-methods-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.