Checkout / Payments
List Payment Methods
Storefront API
- Authentication
- Account
- Account / Address
- Account / Credit Cards
- Account / Orders
- Order Status
- Cart
- Cart / Line Items
- Cart / Other
- Cart / Coupons
- Checkout
- Checkout / State
- Checkout / Shipments
- Checkout / Payments
- Checkout / Store Credit
- Products
- Stores
- Taxons
- Countries
- CMS Pages
- Menus
- Wishlists
- Wishlists / Wished Items
- Digital Downloads
Platform API
- Authentication
- Addresses
- Adjustments
- Classifications
- CMS Pages
- CMS Sections
- Countries
- Data Feeds
- Digital Links
- Digital Assets
- Line Items
- Menu Items
- Menus
- Option Types
- Option Values
- Orders
- Payment Methods
- Payments
- Products
- Promotion Actions
- Promotion Categories
- Promotion Rules
- Promotions
- Roles
- Shipments
- Shipping Categories
- Shipping Methods
- States
- Stock Items
- Stock Locations
- Store Credit Categories
- Store Credit Types
- Store Credits
- Tax Categories
- Tax Rates
- Taxonomies
- Taxons
- Users
- Variants
- Webhook Events
- Webhook Subscribers
- Wished Items
- Wishlists
- Zones
Checkout / Payments
List Payment Methods
Returns a list of available payment methods for this checkout.
GET
/
api
/
v2
/
storefront
/
checkout
/
payment_methods
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/checkout/payment_methods \
--header 'X-Spree-Order-Token: <api-key>'
{
"data": [
{
"id": "1",
"type": "payment_method",
"attributes": {
"type": "Spree::Gateway::Bogus",
"name": "Credit Card",
"description": "Bogus payment gateway.",
"preferences": {
"dummy_key": "PUBLICKEY123"
}
}
},
{
"id": "2",
"type": "payment_method",
"attributes": {
"type": "Spree::PaymentMethod::Check",
"name": "Check",
"description": "Pay by check.",
"preferences": {}
}
}
]
}
Authorizations
Order token to authorize Cart and Checkout requests.
Response
200
application/vnd.api+json
200 Success - Returns an array of `payment_method` objects.
Was this page helpful?
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/checkout/payment_methods \
--header 'X-Spree-Order-Token: <api-key>'
{
"data": [
{
"id": "1",
"type": "payment_method",
"attributes": {
"type": "Spree::Gateway::Bogus",
"name": "Credit Card",
"description": "Bogus payment gateway.",
"preferences": {
"dummy_key": "PUBLICKEY123"
}
}
},
{
"id": "2",
"type": "payment_method",
"attributes": {
"type": "Spree::PaymentMethod::Check",
"name": "Check",
"description": "Pay by check.",
"preferences": {}
}
}
]
}