POST /api/erp-register — Verifies that the token is valid and returns the associated store. Call this once at integration startup to confirm the connection works.

API
POST/api/erp-register

Registrar negocio

Requiere token Bearer

Verifica que el token sea válido y devuelve el negocio asociado. Llamalo una vez al iniciar tu integración para confirmar que la conexión funciona.

Solicitud

json
{}

Respuesta

json
{ "valid": true, "negocio-id": 123456789 }

Código

bash
curl -X POST 'https://tu-tienda.com/api/erp-register' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{}'

Probá el endpoint

https://tu-tienda.com/api/erp-register
Necesitás un token para probar los endpoints. Generalo desde Configuración → ERP → API Token.