using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/payment-method-definitions");
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": "<string>",
"icon_url": "<string>",
"display_name": "<string>",
"long_display_name": "Credit or Debit Card",
"method": "card_payment"
}
]
}Returns a list of all available payment method definitions.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/payment-method-definitions");
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": "<string>",
"icon_url": "<string>",
"display_name": "<string>",
"long_display_name": "Credit or Debit Card",
"method": "card_payment"
}
]
}payment-method-definitions.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
Successful Response
A list of items returned for this request.
Show child attributes
Was this page helpful?