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.
Download OpenAPI description
Overview
Languages
Servers
Production server
https://app.mercately.com/
Shops API Production server
https://mercately.shop/
- Shops API Production serverhttps://mercately.shop/api/v1/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://mercately.shop/api/v1/orders?created_from=2023-05-17&created_to=2023-05-17&page=1' \
-H 'api-key: YOUR_API_KEY_HERE'Response
application/json
{ "orders": [ { … } ], "total_pages": 1 }
- Shops API Production serverhttps://mercately.shop/api/v1/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://mercately.shop/api/v1/orders \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"order": {
"sales_channel": "string",
"notes": "string",
"address": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"delivery_method": "send_order",
"status": "pending",
"shipping_value": 0.1,
"customer_attributes": {
"first_name": "string",
"last_name": "string",
"email": "string",
"phone": "string"
},
"order_items_attributes": [
{
"product_id": "string",
"quantity": 0,
"unit_price": 0.1
}
]
}
}'Response
application/json
{ "message": "Órden creada con éxito", "order": { "web_id": "aAKpT9laN5", "status": "pending", "subtotal": "400.0", "tax_amount": "0.0", "total": "405.0", "shipping_value": "5.0", "sales_channel": null, "notes": "New notes", "created_at": "2023-06-12T18:26:58.534Z", "archived": false, "customer": { … }, "order_items": [ … ] } }
- Shops API Production serverhttps://mercately.shop/api/v1/orders/web_id
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://mercately.shop/api/v1/orders/web_id \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"order": {
"sales_channel": "string",
"notes": "string",
"address": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"delivery_method": "send_order",
"status": "pending",
"shipping_value": 0.1,
"customer_attributes": {
"first_name": "string",
"last_name": "string",
"email": "string",
"phone": "string"
},
"order_items_attributes": [
{
"product_id": "string",
"quantity": 0,
"unit_price": 0.1
}
]
}
}'Response
application/json
{ "message": "Órden actualizada con éxito", "order": { "web_id": "4Bs2mKblN3", "status": "success", "subtotal": "60.0", "tax_amount": "0.0", "total": "65.0", "shipping_value": "5.0", "sales_channel": null, "notes": "New notes", "created_at": "2023-06-13T03:31:06.825Z", "archived": false, "customer": { … }, "order_items": [ … ] } }
- Shops API Production serverhttps://mercately.shop/api/v1/orders/web_id
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://mercately.shop/api/v1/orders/web_id \
-H 'api-key: YOUR_API_KEY_HERE'Response
application/json
{ "message": "Órden borrada con éxito" }