Menu
Find a list of eligible payment methods
Find a list of eligible payment methods.
POST
/v2/payments/find-eligible-methodsUse it in a workflow
- Add a step and choose the PayPal connector.
- Pick the Find a list of eligible payment methods action (under Payments).
- Fill in the fields below, then reference the result from later steps as
{{findAListOfEligiblePaymentMethods.response.data}}.
Request
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"customer": {
"country_code": null,
"channel": null,
"id": "string",
"email": "string",
"phone": null
},
"purchase_units": [
{
"amount": {},
"payee": {}
}
],
"preferences": {
"payment_flow": "ONE_TIME_PAYMENT",
"include_account_details": "false",
"include_vault_tokens": "false",
"payment_source_constraint": {
"constraint_type": "INCLUDE",
"payment_sources": [
"PAYPAL"
]
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{findAListOfEligiblePaymentMethods.response.data.<field>}}.
{
"eligible_methods": null,
"payment_tokens": [
null
]
}
Need more? See the PayPal guide for connection setup and behaviour shared by every action.
Was this page helpful?