Developer
POST /product-offers

Create a product offer

Product Offers

Description

Create a new product offer for a merchant.

Authentication Required: User must be authenticated and have the 'merchant' feature flag.

Authorization: Merchant users can only create offers for their own merchant account.

Request Body

required

application/json

Responses

201 Offer created successfully
application/json
statusstring
Example: success
messagestring
Example: Offer created successfully
dataobject
401 Authentication required
application/json
Example:
{
  "status": "error",
  "message": "Not authenticated or insufficient permissions"
}
404 Merchant not found
application/json
Example:
{
  "status": "error",
  "message": "Merchant not found"
}
422 Validation error
application/json
Example:
{
  "status": "error",
  "message": "Failed to create offer",
  "errors": [
    {
      "path": "sku",
      "message": "Sku can't be blank"
    },
    {
      "path": "price",
      "message": "Price can't be blank"
    }
  ]
}