Skip to main content
GET
/
payment-method-definitions
List 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"
    }
  ]
}
Returns a list of all available payment methods recognized by Gr4vy. This endpoint requires the payment-method-definitions.read scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-gr4vy-merchant-account-id
string

The ID of the merchant account to use for this request.

Response

Successful Response

items
PaymentMethodDefinition · object[]
required

A list of items returned for this request.