Staff

Create Staff

Create a new staff. If successful, returns the staff_id of the newly created staff.

Request

<?xml version="1.0" encoding="utf-8"?>
<request method="createStaff">
    <name>Staff-123</name>
	<username>123665345_new_staff</username>
    <email>12355_new_staff@invoicera.com</email>
    <billing_rate>150</billing_rate>
    <user_access_own_record>Yes</user_access_own_record>
    <assigned_clients>                   	<!-- (All optional) -->
        <client_id>14447</client_id> 
		<client_id>14448</client_id> 
    </assigned_clients>	
</request>

			 

Response

<?xml version="1.0" encoding="utf-8"?>
 
 2632

Update Staff

Update an existing staff with the given staff_id.

Request

<?xml version="1.0" encoding="utf-8"?>
<request method="updateStaff">
	<staff_id>23077</staff_id>
    <name>Staff-77</name>
	<username>77_new_staff</username>
    <email>77_new_staff@invoicera.com</email>
    <billing_rate>15</billing_rate>
    <user_access_own_record>Yes</user_access_own_record>
    <assigned_clients>                   	<!-- (All optional) -->
        <client_id>14447</client_id> 
    </assigned_clients>	
</request>

			 

Response

<?xml version="1.0" encoding="utf-8"?>
 
     13269

Delete Staff

Delete an existing staff.

Request

<?xml version="1.0" encoding="utf-8"?>
<request method="deleteStaff">
	<staff_id>23081</staff_id><!-- This is task unique id at Invoicera database. You can use more than one row for delete -->
</request>
			 

Response

<?xml version="1.0" encoding="utf-8"?>

List Staff

Returns a list of staff members. Results are ordered by descending staff_id.

Request

<?xml version="1.0" encoding="utf-8"?>
<request method="listStaff">
	<filter> <!-- Pass search parameters here -->
	  <email></email> <!-- This is staff unique email id at Invoicera database -->
	  <status></status> <!-- Status are Active, Archived, deleted. Only Active records will be displayed if no value defined -->
	  <page></page> <!-- This is page number -->
	  <per_page_record></per_page_record>  <!-- This is number of records per page -->
	</filter> <!-- search parameters ends here -->
</request>

			 

Response

<?xml version="1.0" encoding="utf-8"?>
    
        
            
                13265
                1302
                20.00
                Test Staff-2
                abc@testing.com
                2
                No
                Deleted
                2010-11-23 06:06:30
                
                
                    393
                    5346
                
            
            .
            .
            .
        
    

Get Staff

Return the complete staff details associated with the given staff_id.

Request

<?xml version="1.0" encoding="utf-8"?>
<request method="getStaff">
    <staff_id></staff_id> <!-- This is staff unique id at Invoicera database. Only one ID can be pass at a time. -->
</request>
			 

Response

<?xml version="1.0" encoding="utf-8"?>
    
        
            13265
            1302
            20.00
            Test Staff-2
            abc@testing.com
            2
            No
            Deleted
            2010-11-23 06:06:30
            
            
                393
                5346
            
        
    

Get Started for FREE

Over 3 Million Users Have Chosen Invoicera

No credit card required. Cancel anytime REQUEST A FREE DEMO