Composable Frontend 2.0 Learn more 

  • Payments/
    Payment Gateways API/
    Get all Gateways

    Get all Gateways

    GET Get all Gateways

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

    Parameters

    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 \
         -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",
    });
    Moltin.Gateways.All().then((gateways) => {
        // Do something
    });
    

    Response Example

    200 OK

    {
        "data": [
            {
                "enabled": false,
                "environment": "",
                "merchant_id": "",
                "name": "Braintree",
                "private_key": "",
                "public_key": "",
                "slug": "braintree",
                "type": "gateway"
            },
            {
                "enabled": true,
                "name": "Manual",
                "slug": "manual",
                "type": "gateway"
            },
            {
                "enabled": false,
                "login": "",
                "name": "Stripe",
                "slug": "stripe",
                "type": "gateway"
            },
            {
                "enabled": false,
                "login": "",
                "name": "Stripe Payment Intents",
                "slug": "stripe_payment_intents",
                "type": "gateway"
            },
            {
                "enabled": false,
                "stripe_account": "",
                "name": "Stripe Connect",
                "slug": "stripe_connect",
                "test": false,
                "type": "gateway"
            }
        ]
    }
    
    Previous
    Overview