Oleada 5 · Documentación
Shopify, WooCommerce, Tienda Nube, Mercado Libre, ecommerce propio (CUSTOM) y Falabella. Cada canal: panel, API, ejemplos curl y errores.
Base API: https://api.pushslog.com. Usa export PUSHSLOG_API_KEY=pk_… en terminal (ver Quick Start). Auth: Autenticación · Webhooks: Webhooks.
Disponible = conexión habitual en panel. Próximamente en panel = API documentada; UI puede mostrar «Conectar — próximamente». Roadmap = sin API pública estable.
Plan: Plan con feature stores_own (Tiendas propias).
Conexión: OAuth desde el panel (dominio myshopify.com).
GET /api/v1/shopify/oauth/start · webhooks en /api/v1/webhook/shopify
Pasos recomendados
Ejemplos curl
OAuth start (Bearer sesión del panel)
curl -s "https://api.pushslog.com/api/v1/shopify/oauth/start?shop=mi-tienda.myshopify.com" \ -H "Authorization: Bearer TU_ACCESS_TOKEN_PANEL"
Respuesta típica (JSON)
{
"success": true,
"data": {
"authorizationUrl": "https://mi-tienda.myshopify.com/admin/oauth/authorize?...",
"shop": "mi-tienda.myshopify.com"
}
}Errores frecuentes
| HTTP | error | Cuándo |
|---|---|---|
| 401 | SESSION_REQUIRED | OAuth sin sesión de panel |
| 400 | SHOPIFY_INVALID_SHOP | Query shop inválido (usa *.myshopify.com) |
| 503 | SHOPIFY_OAUTH_NOT_CONFIGURED | Faltan credenciales Shopify en servidor |
Plan: Plan con stores_own.
Conexión: Plugin WordPress + API key pk_ en el panel.
POST /api/v1/woocommerce/shops/register · webhook /api/v1/webhook/woocommerce
Pasos recomendados
Ejemplos curl
Registrar tienda Woo
curl -s -X POST "https://api.pushslog.com/api/v1/woocommerce/shops/register" \
-H "Content-Type: application/json" \
-H "x-api-key: $PUSHSLOG_API_KEY" \
-d '{
"shopUrl": "https://mi-tienda.com",
"name": "Mi WooCommerce"
}'Respuesta típica (JSON)
{
"success": true,
"data": {
"shopId": "clx…",
"shopUrl": "https://mi-tienda.com",
"webhookEndpoint": "https://api.pushslog.com/api/v1/webhook/woocommerce",
"webhookSecret": "whsec_…",
"webhookSync": { "topics": ["order.created"], "deliveryUrl": "…", "secretStored": true }
}
}Errores frecuentes
| HTTP | error | Cuándo |
|---|---|---|
| 401 | API_KEY_REQUIRED | Falta x-api-key pk_ |
| 400 | BAD_REQUEST | Falta shopUrl en el body |
| 400 | WOO_PARTIAL_REST_CREDENTIALS | Solo consumerKey o solo consumerSecret |
| 500 | WOOCOMMERCE_REGISTER_FAILED | Error al guardar tienda |
Plan: Plan con stores_own; conexión en panel puede mostrar «próximamente».
Conexión: OAuth o registro con access token.
POST …/tiendanube/shops/register · webhook /api/v1/webhook/tiendanube
Pasos recomendados
Ejemplos curl
Registrar tienda (token manual)
curl -s -X POST "https://api.pushslog.com/api/v1/tiendanube/shops/register" \
-H "Content-Type: application/json" \
-H "x-api-key: $PUSHSLOG_API_KEY" \
-d '{
"storeId": 123456,
"accessToken": "TN_ACCESS_TOKEN",
"name": "Mi Tienda Nube"
}'Iniciar OAuth
curl -s "https://api.pushslog.com/api/v1/tiendanube/oauth/start?name=Mi%20TN" \ -H "x-api-key: $PUSHSLOG_API_KEY"
Respuesta típica (JSON)
{
"success": true,
"data": {
"shopId": "clx…",
"storeId": "123456",
"notificationUrl": "https://api.pushslog.com/api/v1/webhook/tiendanube",
"webhooks": { "created": ["order/created"], "skipped": [] }
}
}Errores frecuentes
| HTTP | error | Cuándo |
|---|---|---|
| 400 | BAD_REQUEST | Falta storeId o accessToken |
| 400 | TN_INVALID_STORE_ID | storeId no numérico o inválido |
| 503 | TN_OAUTH_NOT_CONFIGURED | App Tienda Nube no configurada en servidor |
Plan: Plan con stores_marketplaces.
Conexión: Registro + OAuth ML (variables de app en servidor).
POST …/mercadolibre/shops/register · GET …/mercadolibre/oauth/start
Pasos recomendados
Ejemplos curl
Registrar seller (token existente)
curl -s -X POST "https://api.pushslog.com/api/v1/mercadolibre/shops/register" \
-H "Content-Type: application/json" \
-H "x-api-key: $PUSHSLOG_API_KEY" \
-d '{
"sellerUserId": 123456789,
"accessToken": "ML_ACCESS_TOKEN",
"name": "Mi ML"
}'Iniciar OAuth
curl -s "https://api.pushslog.com/api/v1/mercadolibre/oauth/start" \ -H "x-api-key: $PUSHSLOG_API_KEY"
Respuesta típica (JSON)
{
"success": true,
"data": {
"shopId": "clx…",
"sellerUserId": "123456789",
"notificationUrl": "https://api.pushslog.com/api/v1/webhook/mercadolibre",
"hints": ["Configura esta URL en Mercado Libre", "Topics: orders / orders_v2"]
}
}Errores frecuentes
| HTTP | error | Cuándo |
|---|---|---|
| 400 | BAD_REQUEST | Falta sellerUserId o accessToken |
| 400 | ML_INVALID_SELLER_USER_ID | sellerUserId inválido |
| 503 | ML_OAUTH_NOT_CONFIGURED | App ML no configurada en servidor |
Plan: Plan con stores_custom.
Conexión: API REST con pk_ — sin marketplace.
POST /api/v1/custom/* · ver Quick Start y Referencia API.
Pasos recomendados
Ejemplos curl
Registrar tienda CUSTOM
curl -s -X POST "https://api.pushslog.com/api/v1/custom/shops/register" \
-H "Content-Type: application/json" \
-H "x-api-key: $PUSHSLOG_API_KEY" \
-d '{"externalShopId":"demo.com","name":"Mi backend"}'Respuesta típica (JSON)
{
"success": true,
"data": {
"shopId": "clx…",
"webhookEndpoint": "https://api.pushslog.com/api/v1/webhook/custom",
"webhookSecret": "whsec_…"
}
}Errores frecuentes
| HTTP | error | Cuándo |
|---|---|---|
| 401 | API_KEY_REQUIRED | Sin pk_ |
| 400 | CUSTOM_INVALID_SHOP_ID | externalShopId inválido |
| 404 | CUSTOM_SHOP_NOT_FOUND | shopId no del tenant |
Plan: Plan con stores_marketplaces (cuando la integración esté activa).
Conexión: Roadmap — mensajes y órdenes en fases posteriores.
Sin endpoints públicos estables · guía de estado en esta página.
Pasos recomendados
Errores frecuentes
| HTTP | error | Cuándo |
|---|---|---|
| — | — | Sin endpoints públicos de integración aún |