PUT
/product-offers/{id}
Update a product offer
Product Offers
Description
Update an existing product offer. Only the provided fields will be updated.
Authentication Required: User must be authenticated and have the 'merchant' feature flag.
Authorization: Merchant users can only update their own offers.
Parameters
id
integer
path
required
Offer ID
Request Body
requiredapplication/json
Responses
200
Offer updated successfully
application/jsonstatusstring
Example:
successmessagestring
Example:
Offer updated successfullydataobject
401
Authentication required
application/jsonExample:
{
"status": "error",
"message": "Not authenticated or insufficient permissions"
}
404
Offer not found
application/jsonExample:
{
"status": "error",
"message": "Offer not found"
}
422
Validation error
application/jsonExample:
{
"status": "error",
"message": "Failed to update offer",
"errors": [
{
"path": "price",
"message": "Price must be greater than or equal to 0"
}
]
}