Skip to main content
GET
/
payment-methods
/
{payment_method_id}
/
payment-service-tokens
C#
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.PaymentMethods.PaymentServiceTokens.ListAsync(paymentMethodId: "ef9496d8-53a5-4aad-8ca2-00eb68334389");

// handle response
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "payment_service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "processing",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "type": "payment-service-token",
      "approval_url": "https://gr4vy.app/redirect/12345",
      "token": "pm_12345"
    }
  ]
}
This endpoint requires the payment-methods.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. The ID of the merchant account to use for this request.

Path Parameters

payment_method_id
string<uuid>
required

The ID of the payment method The ID of the payment method

Query Parameters

payment_service_id
string<uuid> | null

The ID of the payment service The ID of the payment service

Example:

"fffd152a-9532-4087-9a4f-de58754210f0"

Response

Successful Response

items
PaymentServiceToken · object[]
required

A list of items returned for this request.