# API: Get products/services
# getProducts
List services from orderpage.
# Required parameters
Parameter | Description |
---|---|
id | Orderpage ID |
# Optional parameters
Parameter | Description |
---|---|
currency_id | Currency ID to recalculate returned prices to |
instock | Filter by product stock, 1 for products in stock only 0 for products out of stock only |
visible | Filter by product visibility, integer where: hidden = 0 , visible = 1 , archived = -1 , admin only = -2 , hide from unregistered = -3 , hidden from direct orders = -4 |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getProducts&id=ID
# PHP Samples
# Response
{
"success": true,
"products": {
"236": {
"id": "236",
"type": "9",
"name": "VPS-1024-w-sliders",
"stock": "0",
"paytype": "Free",
"description": "",
"m_setup": "0.00",
"q_setup": "0.00",
"s_setup": "0.00",
"a_setup": "0.00",
"b_setup": "0.00",
"t_setup": "0.00",
"d_setup": "0.00",
"w_setup": "0.00",
"h_setup": "0.00",
"m": "30.00",
"q": "0.00",
"a": "0.00",
"s": "0.00",
"b": "0.00",
"t": "0.00",
"d": "0.00",
"w": "0.00",
"h": "0.00",
"qty": "0",
"visible": "1",
"ptype": "onappcloud",
"accounts": "1"
},
"235": {
"id": "235",
"type": "9",
"name": "VPS-512-w-sliders",
"stock": "0",
"paytype": "Regular",
"description": "",
"m_setup": "0.00",
"q_setup": "0.00",
"s_setup": "0.00",
"a_setup": "0.00",
"b_setup": "0.00",
"t_setup": "0.00",
"d_setup": "0.00",
"w_setup": "0.00",
"h_setup": "0.00",
"m": "20.00",
"q": "0.00",
"a": "0.00",
"s": "0.00",
"b": "0.00",
"t": "0.00",
"d": "0.00",
"w": "0.00",
"h": "0.00",
"qty": "0",
"visible": "1",
"ptype": "onappcloud",
"accounts": "3"
}
},
"call": "getProducts",
"server_time": 1317712858
}