Customers
Post Customer Information
Customers
Post Customer Information
Send User information to Sardine to store theie information and create a risk profile
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
Response
200 - application/json
OK
The response is of type object
.
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": [
{}
]
}
}
}
}