Create a customer
/v1/customers
Creates a new customer record and automatically initiates identity, fraud, and risk assessment scores. This endpoint allows you to create a customer profile and associate it with paykeys and payments.
Header Parameters
"Correlation-Id": optional string
"Idempotency-Key": optional string
"Request-Id": optional string
"Straddle-Account-Id": optional string
Body Parameters
Returns
Create a customer
curl https://sandbox.straddle.com/v1/customers \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $STRADDLE_API_KEY" \
-d '{
"device": {
"ip_address": "192.168.1.1"
},
"email": "ron.swanson@pawnee.com",
"name": "Ron Swanson",
"phone": "+12128675309",
"type": "individual",
"external_id": "customer_123"
}'
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"email": "ron.swanson@pawnee.com",
"name": "Ron Swanson",
"phone": "+12128675309",
"status": "pending",
"type": "individual",
"updated_at": "2019-12-27T18:11:19.117Z",
"address": {
"address1": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"address2": "Apt 1"
},
"compliance_profile": {
"dob": "2019-12-27",
"ssn": "***-**-****"
},
"config": {
"processing_method": "inline",
"sandbox_outcome": "standard"
},
"device": {
"ip_address": "192.168.1.1"
},
"external_id": "external_id",
"metadata": {
"foo": "string"
}
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}Returns Examples
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"email": "ron.swanson@pawnee.com",
"name": "Ron Swanson",
"phone": "+12128675309",
"status": "pending",
"type": "individual",
"updated_at": "2019-12-27T18:11:19.117Z",
"address": {
"address1": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"address2": "Apt 1"
},
"compliance_profile": {
"dob": "2019-12-27",
"ssn": "***-**-****"
},
"config": {
"processing_method": "inline",
"sandbox_outcome": "standard"
},
"device": {
"ip_address": "192.168.1.1"
},
"external_id": "external_id",
"metadata": {
"foo": "string"
}
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}