province
|
Cadena de caracteres
|
No
|
Provincia del contacto
|
En el siguiente ejemplo se muestra una solicitud para dar de alta y/o actualizar el usuario pablo@fideltour.com.
PATCH/POST: /api/3rd-party/contacts/ HTTP/1.1
HOST: backend.fideltour.com
content-type: application/json
authorization: Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
"hc": "CH",
"email": "pablo@fideltour.com",
"birthdate":"1976-04-18",
"phone1":"651442233",
"phone2": "12323",
"gender":2,
"title": "Sr",
"address": "Calle los olivos",
"post_code": "07006",
"language":"ES",
"country":"ES",
"first_name":"Pablo",
"last_name":"Mir",
"source":1,
"notes": "Muy exigente",
"work_place": "Palma",
"bussiness_name": "Customia",
"bussiness_address": "Calle de las soluciones industriales 25",
"fiscal_address": "Calle de las soluciones industriales 25",
"custom_tags": ["Comida", "Vino"],
"tags": [1298,1348],
"subscribed": false,
"is_active": true
}
GET: /api/3rd-party/contacts/ HTTP/1.1
HOST: backend.fideltour.com
{
"count": 1,
"current": 1,
"status": 1,
"extra": null,
"msg": "",
"prev": null,
"results": [{
"id": 999999,
"first_name": "Pablo",
"last_name": "Mir",
"email": "pablo@fideltour.com",
"phone1": "651442233",
"phone2": "12323",
"gender": 2,
"title": "Sr",
"language": "ES",
"birthdate": "1976-04-18",
"post_code": "07006",
"source": 1,
"notes": "Las notas",
"bussiness_name": "Customia",
"work_place": "Palma",
"business_address": "Calle de las soluciones industriales 25",
"fiscal_address": "Calle de las soluciones industriales 25",
"country": "ES",
"custom_tags": [
"Comida",
"Vino"
],
"subscribed": false,
"is_active": true,
"locations": [
"ROL01",
"0JRJ"
],
"hc": "CH",
"address": “Calle los olivos",
"tags": [
1298,
1348
],
"unsubscribe_reason": null
}],
"pages": 1,
"page_size": 10,
"next": null
}