Actualizar un producto
Changed onActualiza un producto existente. Para actualizar el precio, incluye el id del precio dentro de prices_attributes.
Si el precio tiene suscripciones (activas, pausadas o con pago pendiente), no se modifica en su lugar: se archiva y se crea un precio de reemplazo con un id nuevo, que viene en la respuesta — guárdalo si almacenas IDs de precios. Las suscripciones existentes conservan el precio archivado (mismo monto y plan). Crear un checkout con el id de un precio archivado usa automáticamente su reemplazo vigente. Enviar una actualización con el id de un precio archivado responde 400 indicando el precio vigente.
Request
- Base URLhttps://app.recurrente.com/api
- AuthAPI key in header X-SECRET-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID del producto
Request body
Response
Producto actualizado
Changes
- breaking
added to the
response propertyoneOflist for the response status - breaking
the
/response's property type changed fromobjecttoarrayfor status - info
added the new optional request property
/ - info
added the optional property
to the response with the status
- breaking
- warning
deleted the
headerrequest parameterX-SECRET-KEY - info
the endpoint scheme security
secretKeywas added to the API
- warning