Customer Representative Listing
Description
Used to query customer representatives assigned to dealers and customers.
- URL:
/erp/agent/Code/representatives - Method:
GET - Header: Do not forget the AccessToken!
- Filters: You can search using parameters such as dealerCode, customerCode.
- Response: Contains information such as the representative’s ID, name, email, and GSM.
Query Parameters (Filtering)
| Parameter | Type | Description |
|---|---|---|
| dealerCode | string | Dealer & Sub-Dealer code/erpCode value |
| customerCode | string | Customer & Sub-Customer code/erpCode value |
Response Structure
- The response contains representative details.
- Sample Response
- Sample cURL
[
{
"id": "6a97fdef-0b22-469f-ed1c-08dc3f2f0a70",
"isActive": false,
"name": "John",
"surname": "Doe",
"email": "[email protected]",
"gsm": "5000000000"
}
]
curl --location 'https://prodtest_gw.finrota.com/erp/agent/NT52247291/representatives' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJlcnB2MS5hcGkiLCJjYXR2MS5hcGkiLCJ2ZW5kb3J2MS5hcGkiXSwiYWN0b3J0Ijoic2VydmljZSIsInJvbGUiOiJzZXJ2aWNlIiwiVW5pcXVlIjoiMmNjMWFkZDUtYTZmZi00ZjMxLWE0YzYtYzdlMzYwNzdhODNlIiwiVGVuYW50SWQiOiIyZTY0ZDkzOS1kNTZmLTRjNzgtYTc2Zi04NGQwZDQ0NTA2N2IiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL2V4cGlyYXRpb24iOiI2Mzg5NDI5OTk0Mjg2MDU3ODkiLCJuYmYiOjE3NTg1MzAzNDIsImV4cCI6MTc1ODcwMzE0MiwiaWF0IjoxNzU4NTMwMzQyLCJpc3MiOiJzc28uYXBpIiwiYXVkIjoiZWNvenVtLnNzbyJ9.9oo4RgktUmuN6MZ3W4h9jOdZXHlEHC_e0KPOCFy2Jag'