HTTP Status 200
Function returns all lists
-
data Type: mixed
Data from list
-
Query Response Example
{ "code": 200, "response": { "aktivnep": [ [ { "id": 0, "color": "#000000", "name": "none" }, { "id": 8, "color": "#ffae00", "name": "Mango" } ] ], "campaign": [ [ { "id": 1, "color": "#333", "name": "not set" }, { "id": 2, "color": "#000000", "name": "Vymena Softwaru" } ] ], "vat": [ [ { "id": 0, "name": "Standard VAT", "vat": 20 }, { "id": 11, "name": "Decreased VAT", "vat": 10 } ] ], "products_code": [ [ { "id": 0, "name": "Product", "code": "PRO" }, { "id": 1, "name": "Service", "code": "SLU" }, { "id": 2, "name": "Help", "code": "POM" } ] ], "lead_source": [ [ { "id": 1, "color": "#000000", "name": "not set" }, { "id": 2, "color": "#000000", "name": "E-mail" }, { "id": 3, "color": "#000000", "name": "Kontakt z webu" } ] ], "lead_status": [ [ { "id": 1, "color": "#000000", "name": "created" }, { "id": 2, "color": "#28a745", "name": "interest - in progress" }, { "id": 3, "color": "#dc3545", "name": "disinterest - closed" }, { "id": 4, "color": "#28a745", "name": "interest - won" } ] ], "merjed": [ [ { "id": 0, "code": "ks", "name": "Piece" } ] ], "opp_status": [ [ { "id": 1, "color": "#000000", "name": "Created" }, { "id": 2, "color": "#28a745", "name": "A win" }, { "id": 3, "color": "#dc3545", "name": "Lose" }, { "id": 4, "color": "#000000", "name": "Canceled" } ] ], "opp_type": [ [ { "id": 1, "color": "#000000", "name": "Not set" }, { "id": 2, "color": "#000000", "name": "New customer" }, { "id": 3, "color": "#000000", "name": "Up-sell" }, { "id": 4, "color": "#000000", "name": "Cross-sell" } ] ], "rov": [ [ { "id": 0, "code": "OV", "name": "Order issued" } ] ], "rpv": [ [ { "id": 0, "code": "PV", "name": "Offer issued" }, { "id": 2, "code": "PZ2", "name": "Offer decline" }, { "id": 3, "code": "PN", "name": "Offer waiting" }, { "id": 5, "code": "PP", "name": "Offer accepted" } ] ], "status": [ [ { "id": 0, "color": "#000000", "name": "undefined" }, { "id": 31, "color": "#d90d0d", "name": "25% - Poloaktivny" } ] ], "todo_type": [ [ { "id": 0, "color": "#000000", "name": "undefined" }, { "id": 1, "color": "#fa0000", "name": "company running" } ] ], "contact_type": [ [ { "id": 0, "color": "#000000", "name": "Possible client" }, { "id": 1, "color": "#000000", "name": "Our company" }, { "id": 2, "color": "#1f8b09", "name": "Active customer" }, { "id": 3, "color": "#e32400", "name": "Canceled customer" } ] ], "cost_type": [ [ { "id": 0, "code": "dis", "name": "One-time" }, { "id": 1, "code": "mon", "name": "Monthly" }, { "id": 2, "code": "quar", "name": "Quarterly" }, { "id": 3, "code": "semiq", "name": "Semi-annual" } ] ], "invoices_issued": [ [ { "id": 0, "code": "PV", "name": "Faktura issued" }, { "id": 1, "code": "PZ2", "name": "Faktura decline" }, { "id": 2, "code": "PN", "name": "Faktura waiting" }, { "id": 3, "code": "PP", "name": "Faktura accepted" } ] ], "product_type": [ [ { "id": 1, "name": "nezadany" }, { "id": 2, "name": "Palety" }, { "id": 3, "name": "Kotuce" } ] ], "invoice_received": [ [ { "id": 0, "code": "FP", "name": "Invoice Received" } ] ], "order_issued": [ [ { "id": 0, "code": "OV", "name": "Order issued" } ] ], "task_status": [ [ { "id": 1, "code": "TN", "name": "New task" }, { "id": 2, "code": "TD", "name": "Completed task" }, { "id": 3, "code": "TI", "name": "Rozpracovana" } ] ], "wiki_category": [ [ { "id": 1, "primary_cat": null, "name": "Default" }, { "id": 3, "primary_cat": 1, "name": "Second" } ] ], "cargo_vehicles": [ [ { "id": 1, "license_plate": "PN-123CF", "vehicle_type": 5, "brand": "DAF", "model": "XF", "telematic_id": null }, { "id": 6, "license_plate": "NR-111AB", "vehicle_type": 6, "brand": "Mercedes", "model": "Actross", "telematic_id": 188599 }, { "id": 7, "license_plate": "PN-123AZ", "vehicle_type": 7, "brand": "MAN", "model": "TGX", "telematic_id": 15616 } ] ], "cargo_vehicles_types": [ [ { "id": 1, "name": "vehicle up to 3.5t" }, { "id": 2, "name": "vehicle up to 7.5t" }, { "id": 3, "name": "vehicle up to 12t" }, { "id": 4, "name": "vehicle up to 18t" }, { "id": 5, "name": "vehicle up to 25t" }, { "id": 6, "name": "tractor" }, { "id": 7, "name": "semi-trailer" }, { "id": 8, "name": "trailer" } ] ] } }
Error Response Example
{ "code": "int", "message": "string" }
Parameters
Parameters that need to be sent in the request
-
Bearer Type: varchar
Auth token
Authorization
Body data
None-
Example Request
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.crmango.com/api/GetAllLists',
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);
curl_close($curl);
echo $response;