Sale Group List
Get List Of Languages Endpoint
Summary
This endpoint allows you to get list Sale Groups of your MetoCrm account.
HTTP Method
GET
API Endpoint
https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/sale-groups-meta
Authentication
- Use
Webhooktype private key. - Include the
api-keyin the header.
Request Parameters
No Parameter Required.
Example Requests
Curl
curl --location 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/sale-groups-meta' \
--header 'api-key: {private-key}'
JavaScript
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/sale-groups-meta',
headers: {
'api-key': '{private-key}'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/sale-groups-meta',
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(
'api-key: {private-key}'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response Format
- JSON
Responses
Example Success Response
Status Code : 200
Format : JSON
Message :
[
{
"id": 24,
"name": "Middle East"
},
{
"id": 26,
"name": "Europa"
},
]