Get a Gateway

get
Get a Gateway by Slug

https://api.moltin.com/v2/gateways/:slug
Request
Response
Path Parameters
slug
required
string
The slug for the gateway
Headers
Authorization
required
string
The Bearer token to grant access to the API
200: OK
{
"data": {
"enabled": false,
"merchant_account": "",
"name": "Adyen",
"password": "",
"slug": "adyen",
"test": false,
"type": "gateway",
"username": ""
}
}
cURL
JavaScript SDK
curl -X GET https://api.moltin.com/v2/gateways/:slug \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X',
client_secret: 'X'
})
const slug = 'XXXX'
Moltin.Gateways.Get(slug).then(gateway => {
// Do something
})