Get a Gateway
GET
Get a Gateway by Slug
https://api.moltin.com/v2/gateways/:slug
Path Parameters:
Name | Required | Type | Description |
---|---|---|---|
slug | Required | string | The slug for the gateway. |
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token to grant access to the API. |
200 OK
{
"data": {
"enabled": false,
"merchant_account": "",
"name": "Stripe",
"password": "",
"slug": "stripe",
"test": false,
"type": "gateway",
"username": ""
}
}
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
})