Composable Frontend 2.0 Learn more 

  • Payments/
    Payment Gateways API/
    Get a Gateway

    Get a Gateway

    GET Get a Gateway by Slug

    https://useast.api.elasticpath.com/v2/gateways/:gatewaySlug
    

    Parameters

    Path parameters

    NameRequiredTypeDescription
    gatewaySlugRequiredstringThe slug of the gateway.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe 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"
        }
    }
    
    Previous
    Get all Gateways