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
Responses
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": [
{
"path": "sku",
"message": "Sku can't be blank"
},
{
"path": "price",
"message": "Price can't be blank"
}
]
}