Developer
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

required

application/json

Responses

200 Offer updated successfully
application/json
statusstring
Example: success
messagestring
Example: Offer updated successfully
dataobject
401 Authentication required
application/json
Example:
{
  "status": "error",
  "message": "Not authenticated or insufficient permissions"
}
404 Offer not found
application/json
Example:
{
  "status": "error",
  "message": "Offer not found"
}
422 Validation error
application/json
Example:
{
  "status": "error",
  "message": "Failed to update offer",
  "errors": [
    {
      "path": "price",
      "message": "Price must be greater than or equal to 0"
    }
  ]
}