Function to get all products
https://rest.crmango.com/api/GetAllProducts
Bearer
varchar
Auth token
date_from
timestamp
Date from
date_to
timestamp
Date to
date_type
varchar
Date type to filter data by.
Options: created_at or updated_at
page
integer
Pagination of results (default is 0)
limit
integer
Limit of results per page (Max si 10000)
Function returns all products
id
integer
Product ID
product_name
varchar
Product name
cost_price
integer
Product cost price
vat_price
float
Product vat price
price_with_vat
integer
Product price with vat
last_status_date
timestamp
Date of last status update
product_code
varchar
Product code
measure_unit
integer
Measure unit id
cost_type
integer
Cost type id
currency
varchar
Currency
service
varchar
Service
product_code_is
varchar
Product code in information service
list_price
integer|float
List price
price_type
integer
Price type
vat_value
integer
VAT value
analytics
varchar
Accounting Analytics
package_products
varchar
Products in packages (ID)
categories
array
Product categories
in_stock
integer
Count products in stock
in_stock_partner
integer
Count products in stock (partner)
min_price
integer|float
Minimum price
card_type
integer
Product card type
product_files
array
Files associated with this products
img_url
varchar
Product image
list_price_*
integer|float
List price specific
curl --request GET \
--url 'https://rest.crmango.com/api/GetAllProducts' \
--header 'Authorization: Bearer auth_token'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.crmango.com/api/GetAllProducts',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer auth_token'
),
));
$response = curl_exec($curl);
echo $response;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://rest.crmango.com/api/GetAllProducts");
xhr.setRequestHeader("Authorization", "Bearer auth_token");
xhr.send();
import requests
url = "https://rest.crmango.com/api/GetAllProducts"
payload = {}
headers = {
'Authorization': 'Bearer auth_token'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"code": 200,
"response": [
{
"id": 1,
"product_name": "PC HP",
"cost_price": 100,
"vat_price": "176.00",
"price_with_vat": 376,
"product_code": 1,
"measure_unit": 0,
"cost_type": 0,
"currency": null,
"service": 8,
"product_code_is": "PC-1234",
"list_price": 200,
"price_type": 0,
"vat_value": 0,
"analytics": "",
"ean": "",
"package_products": "",
"categories": null,
"in_stock": 0,
"in_stock_partner": 0,
"min_price": 0,
"card_type": 0,
"product_files": null,
"img_url": "https:\/\/crmango.com\/upload\/img\/big\/1_smile.png",
"list_price_6": "648.00",
"list_price_7": "0.00",
"list_price_9": null,
"list_price_10": null,
"list_price_11": null
},
{
"id": 2,
"product_name": "Graficka karta",
"cost_price": 166,
"vat_price": "20.00",
"price_with_vat": 120,
"product_code": 1,
"measure_unit": 0,
"cost_type": 0,
"currency": null,
"service": 0,
"product_code_is": "Graf-776",
"list_price": 100,
"price_type": 0,
"vat_value": 0,
"analytics": "",
"ean": "",
"package_products": "",
"categories": [
"computer",
"Graphic card",
"Complete"
],
"in_stock": 1,
"in_stock_partner": 0,
"min_price": 0,
"card_type": 0,
"product_files": null,
"img_url": "https:\/\/crmango.com\/upload\/img\/big\/2_gpu.jpg",
"list_price_6": "648.00",
"list_price_7": "0.00",
"list_price_9": null,
"list_price_10": null,
"list_price_11": null
},
{
"id": 6,
"product_name": "Graphic card GTX",
"cost_price": 33,
"vat_price": "4.40",
"price_with_vat": 26.4,
"product_code": 4,
"measure_unit": 0,
"cost_type": 0,
"currency": null,
"service": 0,
"product_code_is": "ABRA-12345d",
"list_price": 22,
"price_type": 1,
"vat_value": 0,
"analytics": "",
"ean": "",
"package_products": "",
"categories": [
"Computer",
"Graphic card",
"",
"",
"",
""
],
"in_stock": 0,
"in_stock_partner": 0,
"min_price": 0,
"card_type": 0,
"product_files": null,
"img_url": "https:\/\/crmango.com\/upload\/img\/big\/6_gpu.jpg",
"list_price_6": "648.00",
"list_price_7": "0.00",
"list_price_9": null,
"list_price_10": null,
"list_price_11": null
}
]
}
{
"code": "int",
"message": "string"
}