# Интеграция Ипотека.Центр с AmoCRM
> Методы api еще не реализованы, документация будет дополняться
## Синхронизация контактов БП
### Получить 200 последних партнеров созданых 29 июля
##### Request
```
POST https://partner.ipoteka.center/api/v1/amocrm/partners
Authorization: Bearer <token>
Content-Type: application/json
```
```json
{
"cursor": "2020-06-29T19:41:07+00:00",
"direction": "up",
"count": 200
}
```
##### Response
> полный перечень полей будет после реализации api
```json
[
{
"phoneNumber: "4959998877",
"email": "client@example.com",
"source":"landing",
"city": "string",
"lastName": "Иванов",
"firstName": "Иван",
"patronymic": "Отчество",
"specialty": "mortgage",
"experience": "one_to_three",
"personAgreementDate": "true",
"distributionAgreement": "true",
"utm_source": "http://partner.ipoteka.center/?utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&utm_term={keyword}",
"utm_medium": "http://partner.ipoteka.center/?utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&utm_term={keyword}",
"utm_campaign": "http://partner.ipoteka.center/?utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&utm_term={keyword}",
"utm_term": "http://partner.ipoteka.center/?utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&utm_term={keyword}",
"utm_content": "http://partner.ipoteka.center/?utm_source=yandex&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&utm_term={keyword}",
"gender": "male",
"status": "active",
"registration": "true",
"allowedWorkflows": ["lead","offer"],
"registrationDate": "2020-06-29T19:41:07+00:00",
"firstLoginAt": "2020-06-29T19:41:07+00:00",
"loginPerMonth": "26",
"lastLogin": "2020-06-29T19:41:07+00:00",
"clientsCount": "234",
"dealsCount": "130",
},
{
"phoneNumber: "4959998877",
"email": "client@example.com",
"city": "string",
...
}
]
```