Slyk
Search…
PaymentMethod

Module endpoints

GET /payment-methods

GET https://api.slyk.io/payment-methos
Returns a list of payment methods.
Available Filters
Response
Name
Type
Example
createdAt
= gte lte
filter[createdAt]=gte:2019-07-21
enabled
= in nin
filter[enabled]=in:false
slug
= in nin
filter[slug]=in:paypal,stripe
{
"data": [
{
"createdAt": "2019-07-21T14:30:37.483Z",
"enabled": true,
"metadata": {
"clientId": "corge",
"secret": "01234*****"
},
"name": "Paypal",
"slug": "paypal"
},
{
"createdAt": "2019-07-21T14:30:37.483Z",
"enabled": true,
"metadata": {
"apiPublishableKey": "foobar",
"apiSecretKey": "01234*****"
},
"name": "Stripe",
"slug": "stripe"
}
]
}

GET /payment-methods/:slug

GET https://api.slyk.io/payment-methods/:slug
Returns the payment method details of the given slug.
Response
{
"data": {
"createdAt": "2019-07-21T14:30:37.483Z",
"enabled": true,
"metadata": {
"clientId": "corge",
"secret": "01234*****"
},
"name": "Paypal",
"slug": "paypal"
}
}
Last modified 2mo ago
Copy link
On this page
Module endpoints
GET /payment-methods
GET /payment-methods/:slug