Get a list of available payment methods, which can be used to specify which payment method to use when creating a payment. The list of payment methods may change over time, so it is recommended to fetch this list dynamically when creating a payment, to allow the user select the payment method they want to use.
The list of payment methods is not guaranteed to be exhaustive, and special configuration is needed for most of the possible methods.
The default method which is a payment link, will always be available with the string ID 000000000000000000000000.
Security
OAuth2ClientCredentials(Required scopes: organization:payflow:create)
GET
curl -i -X GET \
'https://api.spensepay.com/partner/payment-methods?test_mode=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'X-Organization-Id: string'List of available payment methods
Array []
The IDs of the profiles that the payment method belongs to.
Default:[]
The type of payment method. Can be extended to other types in the future.
Enum:"payment_link""terminal""invoice"
Response
- Basic payment methods
- Payment methods with terminals
[ { "id": "000000000000000000000000", "name": "Payment link via SMS/Email", "type": "payment_link", "active": true } ]