POST
/
payment-services
/
verify
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/payment-services/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_service_definition_id": "stripe-card",
  "payment_service_id": "46973e9d-88a7-44a6-abfe-be4ff0134ff4",
  "fields": [
    {
      "key": "private_key",
      "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
    }
  ]
}'
This response has no body data.

This endpoint requires the payment-services.write scope.

Authorizations

Authorization
string
headerrequired

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

Body

application/json
payment_service_definition_id
string
required

The ID of the payment service to use.

payment_service_id
string

The ID of the payment service. Required if sending a partial set of credentials in the fields property.

fields
object[]
required

A list of fields where each field is a key-value pair that represents a defined field in the definition of the payment service. You are not required to send the full list of fields if the credentials for the payment service are already stored. For example, if your credentials for stripe-card are stored and you only provide a secret_key in the request, it will override the stored secret_key and verify the resulting set of credentials against the payment service.