Edit Product
put
https://api.payant.ng/products/:reference_code
Edit Product

Request

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

Response

1
{
2
"status": "success",
3
"message": "Product updated 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
"type": "service",
10
"image": "default.png",
11
"status": "1",
12
"created_at": "2016-12-21 18:46:30",
13
"updated_at": "2016-12-21 18:46:30",
14
"id": 1
15
}
16
}
Copied!
Last modified 2yr ago