Overview

This request allows you to synchronize contacts from an eCommerce store to the store list in our platform.

The Method

API-Method
RESTPOSThttps://[Your URL] /servlet/e-commerce/sync

Headers

Property TypeDescriptionDefaultRequired
x-ev-store-hashstringStore Hash, can be gotten from the Store pageYes
x-ev-customer-hashstringCustomer Hash, can be gotten from the stores page.Yes

Parameters

Property TypeDescriptionDefaultRequired
ContactsarrayContacts to be syncedYes

Responses

TypeDescription
arrayAn array that corresponds to the passed array, with the results. The array also contains the $batch_id string, the identifier for this import, which can be used in other API calls to check the progress of the import.

Code Samples

Example Request

$client = new \GuzzleHttp\Client(['headers' => [
            'x-ev-store-hash' => '6361437b-7adf-402c-b4b0-9e4a3a1e5d85',
            'Content-Type' => 'application/json',
            'x-ev-customer-hash'      => '7URV2nrUrSHswsrE'
        ]]);
        $request_param = [
            'contacts'    => [[
                'contact_email' => 'updatasased@gmail.com',
                'contact_name' => 'test name',
                'contact_last_purchase_date' => '12763476',
                'contact_total_number_of_purchases' => 10,
                'contact_total_purchases_amount' => 10.00
            ], [
                'contact_email' => 'createasasd@gmail.com',
                'contact_name' => 'test name 2',
                'contact_last_purchase_date' => '12763476',
                'contact_total_number_of_purchases' => 5,
                'contact_total_purchases_amount' => 50.38
            ]]
        ];
        $request_data = ($request_param);

        $response = $client->post('https://qa-za.everlytic.net/servlet/e-commerce/sync', ['form_params' => $request_data]);

Example Response

{"status":"success"}