Add Product
post
https://api.payant.ng/products
Add product

Request

1
curl https://api.payant.ng/products \
2
-H "Content-Type: application/json" \
3
-H "Authorization: Bearer SECRET_KEY" \
4
-d '{ "store_id": "01",
5
"name": "Website Design",
6
"description": "5 Pages Website plus 1 Year Web Hosting",
7
"unit_cost": "50000.00",
8
"list_cost": "60000.00",
9
"type": "service",
10
"status": "1" }' \
11
-X POST
Copied!

Response

1
{
2
"status": "success",
3
"message": "Product created successfully.",
4
"data": {
5
"company_id": 1,
6
"name": "Website Design",
7
"description": "5 Pages Website plus 1 Year Web Hosting",
8
"unit_cost": "50000.00",
9
"image": "default.png",
10
"status": "1",
11
"created_at": "2016-12-21 18:46:30",
12
"updated_at": "2016-12-21 18:46:30",
13
"id": 1
14
}
15
}
Copied!
Last modified 2yr ago