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
requiredapplication/json
merchant_idintegerrequired
Merchant ID to associate the offer with
Example:
1product_idintegerrequired
Associated product ID
Example:
123skustringrequired
Stock Keeping Unit
Example:
PROD-12345pricenumber (float)required
Current price (must be >= 0)
Example:
29.99former_pricenumber (float)
Previous price for discount display
Example:
39.99urlstring (uri)required
URL to the product page
Example:
https://myshop.com/product/12345delivery_costsobject
Delivery costs by shipping method
Example:
{"standard":4.99,"express":9.99}delivery_timeintegerrequired
Estimated delivery time in days
Example:
3order_processing_timeinteger
Order processing time in days
Example:
1free_return_daysinteger
Number of days for free returns
Example:
30usedbooleanrequired
Whether the product is used
conditionstringenum: new, like_new, good, fair, poor
Product condition
Example:
newcommission_ratenumber (float)
Commission rate percentage (0-100)
Example:
5.0Responses
201
Offer created successfully
application/jsonstatusstring
Example:
successmessagestring
Example:
Offer created successfullydataobject
401
Authentication required
application/jsonExample:
{
"status": "error",
"message": "Not authenticated or insufficient permissions"
}
404
Merchant not found
application/jsonExample:
{
"status": "error",
"message": "Merchant not found"
}
422
Validation error
application/jsonExample:
{
"status": "error",
"message": "Failed to create offer",
"errors": [
"Sku can't be blank",
"Price can't be blank"
]
}