Get a Gateway
GET
Get a Gateway by Slug
https://useast.api.elasticpath.com/v2/gateways/:gatewaySlug
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
gatewaySlug | Required | string | The slug of the gateway. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Examples
Curl
curl -X GET https://useast.api.elasticpath.com/v2/gateways/:slug \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
JavaScript SDK
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
});
Response Example
200 OK
{
"data": {
"enabled": true,
"stripe_account": "acct_xxx",
"name": "Stripe Connect",
"slug": "stripe_connect",
"test": true,
"type": "gateway"
}
}