POST
/
customers
curl --request POST \
  --url https://api.sandbox.sardine.ai/v1/customers \
  --header 'Content-Type: application/json' \
  --data '{
  "flow": "login, onboarding,kyc-ssn",
  "sessionKey": "555fdc5c-8694-4345-b724-14454f320484",
  "customer": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "taxId": "778131234",
    "firstName": "John",
    "lastName": "Doe",
    "dateOfBirth": "1990-08-15",
    "address": {
      "street1": "1 Main St",
      "city": "Okhlahoma",
      "regionCode": "OK",
      "postalCode": "70438",
      "countryCode": "US"
    },
    "transaction": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "createdAtMillis": 1616822241000,
      "amount": 1000,
      "itemCategory": "crypto",
      "actionType": "buy",
      "currencyCode": "USD",
      "paymentMethod": {
        "type": "crypto",
        "bank": {
          "accountNumber": "123456789",
          "routingNumber": "1298751331",
          "accountType": "checking",
          "balance": 1000,
          "balanceCurrencyCode": "USD"
        }
      }
    },
    "emailAddress": "user@example.com",
    "isEmailVerified": true,
    "phone": "+17342321234",
    "isPhoneVerified": true,
    "createdAtMills": 0,
    "personalInfo": [
      {
        "source": "id_verification",
        "firstName": "John",
        "lastName": "Doe",
        "address": {
          "street1": "1 Main St",
          "city": "Okhlahoma",
          "regionCode": "OK",
          "postalCode": "70438",
          "countryCode": "US"
        },
        "dateOfBirth": "1980-07-15"
      }
    ]
  }
}'
{
  "sessionKey": "string",
  "level": "string",
  "status": "string",
  "customer": {
    "score": 0,
    "level": "string",
    "signals": [
      {
        "key": "string",
        "value": "string"
      }
    ]
  },
  "transaction": {
    "level": "string",
    "amlLevel": "string",
    "indemnification": {
      "decision": "string",
      "instantLimit": 0,
      "holdAmount": 0,
      "verificationCode": "string"
    }
  },
  "checkpoints": {
    "customer": {
      "customerPurchaseLevel": {
        "value": "string",
        "ruleIds": [
          {}
        ]
      },
      "emailLevel": {
        "value": "string",
        "ruleIds": [
          {}
        ]
      },
      "historicalLevel": {
        "value": "string",
        "ruleIds": [
          {}
        ]
      },
      "riskLevel": {
        "value": "string",
        "ruleIds": [
          {}
        ]
      }
    }
  }
}

Body

application/json
flow
string
required

Merchant defined string that defines the flow the user is in

Minimum length: 1
sessionKey
string
required

uuid that identifies the given customer session

Minimum length: 1
customer
object
required

Response

200 - application/json
OK
sessionKey
string
Minimum length: 1
level
enum<string>

This is the ONLY field that a merchant needs to use to make decision on fraud. This field is set by our rules and the main rule is the rule using our "customer score" model.

Available options:
low,
medium,
high,
very_high
status
enum<string>
Available options:
Success,
Failure
customer
object
transaction
object