GET
/
card-scheme-definitions
using Gr4vy;
using Gr4vy.Models.Components;

var sdk = new Gr4vySDK(
    id: "example",
    server: SDKConfig.Server.Sandbox,
    bearerAuthSource: Auth.WithToken(privateKey),
    merchantAccountId: "default"
);

var res = await sdk.CardSchemeDefinitions.ListAsync();

// handle response
{
  "items": [
    {
      "type": "card-scheme-definition",
      "id": "visa",
      "icon_url": "https://api.sandbox.example.gr4vy.app/assets/card-scheme-definitions/visa.svg",
      "display_name": "Visa"
    }
  ]
}

This endpoint requires the card-scheme-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 | null

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

Examples:

"default"

Response

200
application/json

Successful Response

The response is of type object.