Slyk
  • Introduction
  • Understanding Slyk
    • Before you Start
    • Core Concepts
    • Funding/Withdrawal Methods
  • Developing with Slyk
    • Step-by-step development guide
      • Authentication
      • Wallet
      • Catalog
      • Checkout (coming soon)
      • Growth tools (coming soon)
    • SDKs
      • Server SDK (Node.js)
        • Methods
      • Third party SDK's
  • API Reference
    • Using your API Key
    • Endpoints
      • Wallet
      • Transaction
      • Address
      • Asset
      • Rate
      • PaymentMethod
      • Movement
      • User
      • Invite
      • Category
      • Order
      • Product
      • Question
      • Task
      • TaxRate
    • Webhooks
      • Store
      • Transaction
      • User
    • Models
  • Setup Guides
    • PayPal Configuration
      • Verifying webhook
      • Webhook configuration
    • Stripe Configuration
      • Verifying endpoints
    • Coinbase Configuration
Powered by GitBook
On this page
  • Module endpoints
  • GET /payment-methods
  • GET /payment-methods/:slug

Was this helpful?

  1. API Reference
  2. Endpoints

PaymentMethod

PreviousRateNextMovement

Last updated 2 years ago

Was this helpful?

Module endpoints

GET /payment-methods

GET https://api.slyk.io/payment-methos

Returns a list of payment methods.

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.

{
  "data": {
    "createdAt": "2019-07-21T14:30:37.483Z",
    "enabled": true,
    "metadata": {
      "clientId": "corge",
      "secret": "01234*****"
    },
    "name": "Paypal",
    "slug": "paypal"
  }
}

GET /payment-methods
GET /payment-methods/:slug