Retrieve Specific Customer

This endpoint will be used to retrieve specific customer for given app;

Authentication

This endpoint needs app token for authentication.

MethodGET
Endpointv1/customers/:uuid
HeadersAccept: application/json 
Authorization: Bearer <base64_encoded_token> 
Token TypeApp

Query Parameters

This endpoint supports query parameters:

FieldValueDescription
includemeta,app,addresscan include meta, app and address for customer
searchemail, first_name, last_nameyou can search customer with their email, first or last name

Example Request:

Following code shows how to send request to retrieve specific customer in Slotify api.

  • PHP
  • BASH
$endpoint = 'https://api.slotify.ca/v1/customers/uuid?include=meta,app,address';
$owner_token = base64_encode('email:token'); 

$curl = curl_init();
curl_setopt_array($curl, array(
    CURLOPT_URL => $endpoint,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => array(
        'Authorization: Bearer ' . $owner_token,
        'Accept: application/json',
        'Content-Type: application/json'
    ),
));

$response = curl_exec($curl);

if(curl_errno($curl)) {
    echo 'Error: ' . curl_error($curl);
} else {
    echo $response;
}

curl_close($curl);
curl -X GET \
  https://api.slotify.ca/v1/customers/bc7b15f9-2573-4aaa-be09-44d6c6f9c62c?include=meta,address,app \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json'

Example Response:

Following response will be provided by Slotify server when this endpoint is called:

  • 200 Ok
{
    "success": true,
    "data": {
        "name": "John Doe",
        "dob": "1985-04-15",
        "uuid": "8d6b241b-bd03-408e-825c-51f35e06a1da",
        "phone": "699-868-4715",
        "email": "[email protected]",
        "notes": null,
        "gender": "unknown",
        "avatar": "https://cdn.fakercloud.com/avatars/djsherman_128.jpg",
        "timezone": "America/New_York",
        "last_name": "Doe",
        "first_name": "John",
        "created_at": "2024-04-29T23:15:14+00:00",
        "updated_at": "2024-04-29T23:15:14+00:00",
        "meta": {},
        "app": {
            "slug": "my-app",
            "name": "My Scheduling App",
            "uuid": "54f527f7-8689-4a34-8acf-86baba397de6",
            "token": "571e94d8-837a-46b7-9e1a-0ca1a301c0e0",
            "created_at": "2024-04-29T22:55:43+00:00",
            "updated_at": "2024-04-29T22:55:43+00:00",
            "description": "My awesome booking app",
            "activeSubscription": true
        },
        "address": {
            "city": "Cristtown",
            "country": "Iceland",
            "state": "SS",
            "address1": "0812 Thiel Keys",
            "postal_code": 55685497
        }
    }
}