Add new agent
                 Author: Rohit Agnihotri 
                 27 views 
            
        
                                            POST
                                            Add new agent 
                                        
                                     {{URL}}/api/agent_add
                                    
                                    Add agent
HEADERS
                                        Shortcode
                                            code
                                            None
BODY raw
                                                                                          
                                                    
{
    "name":"Aman",
    "type":"Employee",  //Freelancer
    "team_id":1,    // 1 for car, 2 for moto
    "country_code":"91",
    "phone_number":"121548720",
    "tags":"new,latest,cars",
    "vehicle_type_id":"1",
    "make_model":"2002",
    "plate_number":"ch012914"
}
                                                  
                                              
                                            
                                        Example Request
                                    
                                    - Add Agent
 
                                            Example Response
                                        
                                                                                            {- status: "success"
 - message: "Thanks for signing up."
 - data: {
- name: "Aman"
 - agent_id: 460834
 - team_id: 1
 - type: "Employee"
 - vehicle_type_id: "1"
 - make_model: "2002"
 - plate_number: "ch012914"
 - phone_number: "+9112154820"
 - color: null
 - profile_picture: "assets/client_00000051/agents5fedb209f1eea.jpeg/Ec9WxFN1qAgIGdU2lCcatJN5F8UuFMyQvvb4Byar.jpg"
 - uid: null
 - updated_at: "2023-04-18T09:31:01.000000Z"
 - created_at: "2023-04-18T09:31:01.000000Z"
 - id: 30
 - image_url: "{{AWS_URL}}/assets/client_00000051/agents5fedb209f1eea.jpeg/Ec9WxFN1qAgIGdU2lCcatJN5F8UuFMyQvvb4Byar.jpg"
 - agent_cash_at_hand: 0
 - agent_payment: [
] - wallet: {
- balance: "0"
 - decimal_places: 2
 - holder_id: 30
 - holder_type: "App\Model\Agent"
 - name: "Default Wallet"
 - slug: "default"
 - meta: [
] - uuid: "d66fd6a4-f194-4475-8a93-0fc8253336ae"
 - updated_at: "2023-04-18T09:31:01.000000Z"
 - created_at: "2023-04-18T09:31:01.000000Z"
 - id: 30
 
} - complete_order: [
] 
} 
}
                                                
                                            Still stuck? How can we help?
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.