GET
/
anti-fraud-service-definitions
/
{anti_fraud_service_definition_id}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.{gr4vy_id}.gr4vy.app/anti-fraud-service-definitions/{anti_fraud_service_definition_id}"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
{
  "id": "sift-anti-fraud",
  "type": "anti-fraud-service-definition",
  "display_name": "Stripe",
  "fields": [
    {
      "key": "private_api_key",
      "display_name": "Private API key",
      "required": true,
      "format": "text",
      "secret": true
    }
  ],
  "icon_url": "https://cdn.gr4vy.app/stripe.svg"
}

This endpoint requires the anti-fraud-service-definition.read scope.

Authorizations

Authorization
string
header
required

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

Path Parameters

anti_fraud_service_definition_id
string
required

The unique ID for an anti-fraud service definition.

Example:

"sif-ati-fraud"

Response

200
application/json

Returns an anti fraud service definition.

An available anti fraud service that can be configured.