Saltar al contenido
Krezkadev
PATCH/products/{id}

Editar un producto

Solo los campos que mandas. El stock no se cambia aquí (usa stock_adjustments). Con sk_test_ devuelve el producto actual y `changes`.

Cuerpo de la solicitud

namestring
pricenumber
skustring
barcodestring
descriptionstring
category_idinteger
brand_idinteger
sale_pricenumber
sale_starts_onstring
sale_ends_onstring
published_in_storeboolean
imagesstring[]
wholesale_pricesobject[]
packsobject[]
pharmacyobject

Respuestas

  • 200Producto actualizado
  • 400Error 400
  • 401Error 401
  • 403Error 403
  • 404Error 404
  • 409Error 409
  • 429Error 429
PATCH /products/{id}
curl -X PATCH https://api.krezka.com/api/v1/erp/products/:id \
  -H "Authorization: Bearer $FALCONEXT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "price": 0,
    "sku": "string",
    "barcode": "string",
    "description": "string",
    "category_id": 0,
    "brand_id": 0,
    "sale_price": 0,
    "sale_starts_on": "string",
    "sale_ends_on": "string",
    "published_in_store": true,
    "images": [
      "string"
    ],
    "wholesale_prices": [
      {}
    ],
    "packs": [
      {}
    ],
    "pharmacy": {}
  }'
Respuesta · 200
JSON
{
  "object": "product",
  "id": 0,
  "livemode": true,
  "type": "product",
  "sku": "string",
  "barcode": "string",
  "name": "string",
  "description": "string",
  "price": 0,
  "sale_price": 0,
  "sale_starts_on": "string",
  "sale_ends_on": "string",
  "currency": "PEN",
  "tax_included": true,
  "unit": "string",
  "category": {},
  "brand": {},
  "images": [
    "string"
  ],
  "stock": 0,
  "reserved": 0,
  "available": 0,
  "stock_by_location": [
    {
      "location_id": 0,
      "location": "string",
      "quantity": 0,
      "reserved": 0,
      "available": 0
    }
  ],
  "availability": "in_stock",
  "wholesale_prices": [
    {}
  ],
  "packs": [
    {}
  ],
  "pharmacy": {},
  "batches": [
    {}
  ],
  "published_in_store": true,
  "variants": [
    {
      "id": 0,
      "sku": "string",
      "barcode": "string",
      "attributes": {},
      "price": 0,
      "image": "string",
      "stock": 0,
      "reserved": 0,
      "available": 0,
      "stock_by_location": [
        {
          "location_id": 0,
          "location": "string",
          "quantity": 0,
          "reserved": 0,
          "available": 0
        }
      ]
    }
  ]
}
Pruébalo
API de Krezka (ERP)2026-10-22

Se guarda solo en tu navegador (localStorage). Nunca se incluye en el código copiable.

PATCHhttps://api.krezka.com/api/v1/erp/products/%7Bid%7D
curl -X PATCH https://api.krezka.com/api/v1/erp/products/%7Bid%7D \
  -H "Authorization: Bearer $FALCONEXT_API_KEY"
Respuesta

Envía una solicitud para ver la respuesta