using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/connections");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"items": [
{
"id": "7b5e02bd-fa53-4ef0-b11e-1609d0f48cc5",
"type": "connection",
"name": "My Connection",
"active": true,
"silent": false,
"definition": {
"id": "stripe-card",
"type": "connection-definition",
"name": "Stripe",
"count": 1,
"group": "payment-service",
"category": "card",
"icon_url": "https://cdn.gr4vy.app/stripe.svg",
"provider": "Stripe"
}
}
]
}Returns a list of all configured connections.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/connections");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"items": [
{
"id": "7b5e02bd-fa53-4ef0-b11e-1609d0f48cc5",
"type": "connection",
"name": "My Connection",
"active": true,
"silent": false,
"definition": {
"id": "stripe-card",
"type": "connection-definition",
"name": "Stripe",
"count": 1,
"group": "payment-service",
"category": "card",
"icon_url": "https://cdn.gr4vy.app/stripe.svg",
"provider": "Stripe"
}
}
]
}connections.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns a list of connections.
A list of configured connections.
Show child attributes
The ID of the connection.
"7b5e02bd-fa53-4ef0-b11e-1609d0f48cc5"
connection.
"connection"
The name of this connection.
"My Connection"
Whether this connection is currently in use. Connections can be deactivated to allow for them to be kept around and re-activated at a later date.
true
Defines if this service is currently running in silent mode. In silent mode, a service's decisions will be created but ignored when processing a transaction, allowing for warm-up and comparison of new services against the active service.
false
A connection that can be configured.
Show child attributes
The ID of the connection.
"stripe-card"
connection-definition.
"connection-definition"
The name of this connection.
"Stripe"
The number of configured connections.
1
anti-fraud-service, digital-wallet, gift-card-service, payment-service "payment-service"
anti-fraud, bank, bnpl, card, cash, stored-credit, wallet "card"
An icon to display for the connection.
"https://cdn.gr4vy.app/stripe.svg"
The provider for this connection.
"Stripe"
Was this page helpful?