Add a Deal Service
POST
/deals/save-itemAdds a new service for a deal.
Request
Body Params multipart/form-data
item_name
string
required
Example:
sample product
item_description
string
required
Example:
sample product
price_start_range
string
required
Example:
0
price_end_range
string
required
Example:
10
deal_id
string
required
Example:
1
staffid
string
required
Example:
1
Responses
Success(200)
Validation(422)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
message
string
required
data
object
required
items_id
string
required
deals_id
string
required
item_name
string
required
item_desc
string
required
date_saved
string
required
price_start_range
string
required
price_end_range
string
required
Example
{
"message": "Product/Service added successfully!",
"data": {
"items_id": "15",
"deals_id": "1",
"item_name": "sample product",
"item_desc": "sample product",
"date_saved": "2024-08-19 18:30:47",
"price_start_range": "0",
"price_end_range": "10"
}
}
Last modified: 3 months ago