En Mercately, todo contacto proveniente de conversaciones, compras o creados directamente se clasifica como cliente.
Mercately Retailers API (1.0.0)
La plataforma para desarrolladores de Mercately, está creada para ayudar a todos nuestros clientes y empoderarlos para que crezcan mejor. Nuestras API están diseñadas para permitir que los equipos de cualquier forma o tamaño construyan integraciones y aprovechar al máximo Mercately. Todas las API de Mercately se construyen usando convenciones REST y están diseñadas para tener una estructura de URL predecible. U tilizan muchas funciones HTTP estándar, incluidos métodos (POST, GET, PUT, DELETE) y códigos de respuesta de error.
https://app.mercately.com/
https://mercately.shop/
- Production server
https://app.mercately.com/retailers/api/v1/customers/:id/events
- Shops API Production server
https://mercately.shop/retailers/api/v1/customers/:id/events
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://app.mercately.com/retailers/api/v1/customers/:id/events \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"first_name": "string",
"last_name": "string",
"email": "string",
"phone": "string",
"id_type": "cedula",
"id_number": "string",
"customer_addresses_attributes": [
{
"address": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"country_id": 0,
"latitude": "string",
"longitude": "string",
"description": "string",
"main": true
}
],
"notes": "string",
"agent_id": 0,
"tags": [
{
"name": "string",
"value": true
}
],
"custom_fields": [
{
"field_name": "string",
"field_content": "string"
}
],
"outbound_status": "error",
"campaign_id": 0,
"campaign_url": "string",
"error_message": "string",
"creation_date": "2019-08-24",
"sent_at": "2019-08-24",
"delivered_at": "2019-08-24",
"read_at": "2019-08-24",
"last_chat_interaction": "2019-08-24"
}'
{ "messages": "Customer event created successfully" }
- Production server
https://app.mercately.com/retailers/api/v1/customers/:id/customer_events_history
- Shops API Production server
https://mercately.shop/retailers/api/v1/customers/:id/customer_events_history
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://app.mercately.com/retailers/api/v1/customers/:id/customer_events_history?page=0&results_per_page=0' \
-H 'api-key: YOUR_API_KEY_HERE'
{ "messages": "Customer event created successfully" }