Создание клиента
Запрос /online/bonuses/createCustomer [POST] - создать клиента
Параметры запроса: клиент CRM
Параметры ответа: созданный клиент CRM
Пример:
test@test:~$ curl -i -X POST -u test:test -H "Content-Type:application/json" -d '{"firstName":"Юрий","lastName":"Марченко","tokens":[{"type":"card","entry":"trackCode","key":"66666600000014=2012"}]}' http://test.quickresto.ru/platform/online/bonuses/createCustomer
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Mon, 08 Feb 2016 08:58:47 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: JSESSIONID=AFF03A2A940B72B974D13CA0D2BCBD00; Path=/; HttpOnly
{"customer":{"firstName":"Юрий","lastName":"Марченко","contactMethods":[],"tokens":[{}],"accounts":[],"accumulationBalance":{"ledger":0,"available":0,"debitHold":0,"creditHold":0},"customerGuid":"customer_put-160208015847195M"},"notices":[]}