POST
/
payment-services
/
verify
C#
using Gr4vy;
using Gr4vy.Models.Components;
using System.Collections.Generic;

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

var res = await sdk.PaymentServices.VerifyAsync(verifyCredentials: new VerifyCredentials() {
    PaymentServiceDefinitionId = "stripe-card",
    Fields = new List<Field>() {},
});

// handle response
"<any>"
This endpoint requires the payment-services.write 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"

Body

application/json
payment_service_definition_id
string
required

The ID of the payment service definition to verify the fields against

Examples:

"stripe-card"

fields
Field · object[]
required

The fields and their values, or a set of updated fields to merge with existing values.

payment_service_id
string<uuid> | null

The optional ID of the configured payment service. New fields will be merged with any existing fields already stored before they are verified.

Examples:

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

Response

Successful Response

The response is of type any.