POST /api/erp-update-skus — Updates product or variant codes. Useful when your ERP uses a different naming scheme and you want to align both systems.

API
POST/api/erp-update-skus

Renombrar SKUs

Requiere token Bearer

Cambia el código de productos o variantes. Útil cuando tu ERP usa una nomenclatura distinta y querés alinear ambos sistemas.

Solicitud

json
{
  "updates": { "OLD-SKU": "NEW-SKU" }
}

Respuesta

json
{ "updated": 1, "tx-count": 1 }

Código

bash
curl -X POST 'https://tu-tienda.com/api/erp-update-skus' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ "updates": { "OLD-SKU": "NEW-SKU" } }'

Probá el endpoint

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