Getting StartedUsertaskOrganization APIFacility APIAsset APISales PerformancePurchase APISales APIInventory APICRM APIPayroll APIAccount APICalendar APICommunication APISupport API
User & Role API
Membership API
Payment APIAttendance and Visitlog APICustomer API
Service API
- Service API Overview
- POSTGet Job Order
- POSTGet Facilitie Service data
- POSTGet Appointment Service
- GETGet Specific Job Order
- GETGet Specific Facilitie Service
- GETGet Specific Appointment Service
- PUTUpdate Appointment Service
- POSTAdd Job Order
- POSTAdd Facilitie Service Data
- POSTAdd Appointment Service
- PUTUpdate Job Order
- PUTUpdate Facilitie Service
- DELETEDelete Appointment Service
- DELETEDelete Job Order
- DELETEDelete Facilitie Service Data
- Facility API Overview
- POSTGet Faciltiy Booking Data
- POSTGet Facilitie Data
- GETGet Specific Facilitie data
- GETGet Specific Faciltiy Booking Data
- PUTUpdate Facilitiy Booking Data
- PUTUpdate Facilitie Data
- POSTAdd Facilitiy Booking Data
- POSTAdd Facilitie Data
- DELETEDelete Facilitie Data
- DELETEDelete Facilitiy Booking Data
- Purchase API Overview
- POSTGet Expense Voucher
- POSTGet Vendor Credit Note
- POSTGet Purchase Request Data
- POSTGet Purchase Order
- POSTGet Purchase Vendor
- POSTGet Purchase Bill
- GETGet Specific Purchase Request Data
- GETGet Specific Expense Voucher
- GETGet Specific Vendor Credit Note
- GETGet Specific Purchase Order
- GETGet Specific Purchase Vendor
- GETGet Specific Purchase Bill
- POSTAdd Purchase Bill
- POSTAdd Purchase Request Data
- POSTAdd Expense Voucher
- POSTAdd Vendor Credit Note
- POSTAdd Purchase Order
- POSTAdd Purchase Vendor
- PUTUpdate Purchase Bill
- DELETEDelete Purchase Request Data
- DELETEDelete Expense Voucher
- DELETEDelete Vendor Credit Note
- DELETEDelete Purchase Order
- DELETEDelete Purchase Vendor
- DELETEDelete Purchase Bill
- PUTUpdate Expenxe Voucher
- PUTUpdate Vendor Credit Note
- PUTUpdate Purchase Request Data
- PUTUpdate Purchase Order
- PUTUpdate Purchase Vendor
- Sales API Overview
- POSTGet Quotation
- POSTGet Credit Note
- POSTGet Sales Bills
- POSTGet Sales Order
- GETGet Specific Quotation
- GETGet Specific Sales Order
- GETGet Specific Sales Bills
- GETGet Specific Credit Note
- POSTAdd Quotation
- POSTAdd Sales Order
- POSTAdd Credit Note
- POSTAdd Sales Bills
- DELETEDelete Quotation
- DELETEDelete Sales Order
- DELETEDelete Credit Note
- DELETEDelete Sales Bills
- PUTUpdate Quotation
- PUTUpdate Credit Note
- PUTUpdate Sales Bills
- PUTUpdate Sales Order
- Inventory API Overview
- POSTGet Product Category Items
- POSTGet product Inventory items
- GETGet Specific product Inventory items
- GETGet Specific Product Category Items
- POSTAdd product Inventory items
- POSTAdd Product Category Items
- DELETEDelete product Inventory items
- DELETEDelete Product Category Items
- PUTUpdate Product Category Items
- PUTUpdate product Inventory items
- Payroll API Overview
- POSTGet Employee Salary
- POSTGet Salary Component
- POSTGet Leave Request
- POSTGet Leave Type
- GETGet specific Employee Salary
- GETGet specific Salary Component
- GETGet specific Leave Request
- GETGet specific Leave Type
- POSTAdd Employee Salary
- POSTAdd Salary Component
- POSTAdd Leave Request
- POSTAdd Leave Type
- PUTUpdate Employee Salary
- PUTUpdate Salary Component
- PUTUpdate Leave Request
- PUTUpdate Leave Type
- DELETEDelete Employee Salary
- DELETEDelete Salary Component
- DELETEDelete Leave Request
- DELETEDelete Leave Type
Add Job Order
Purpose
To add new Job/location to your organization.
Request URL
https://live.membroz.com/api/jobs
Request Method
POST
Note
- Send authkey in https header
- You can add only one job per POST request.
- You must use only Field API names in the input. You can obtain the field API names from Fields metadata API
- Enterprise customer can replace domain name with their hosting Url. for example https://app.xyz.com/api/jobs
- API will return inserted job data in JSON format or error message.
Request JSON
Attribute | Data Type | Mandatory | Description |
---|---|---|---|
jobname | text | yes | job/location/company name |
currency | text | ||
country | text | ||
timezone | text | ||
city | text | ||
companyphone | text | ||
contactperson | text |
Sample Request
curl --location --request POST 'https://live.membroz.com/api/jobs' \
--header 'authkey: XXXXXXXXXX'\
--header 'Content-Type: application/json' \
--data-raw ' {
"_id": "5f86f0c00ce3361fcc69ec95",
"status": "active",
"prefix": "JO",
"jobnumber": 2,
"date": "2020-10-14T12:34:31.628Z",
"notes": "Notes TESTIKNMG",
"customerid": "5eb4e61a2b81e31504110b35",
"onModel": "Member",
"dispositionid":"5f7e9a9b3271df1d8b56c931",
"dispositiondataid": "5f86f0bf0ce3361fcc69ec93",
"tasks": "5f86f0c00ce3361fcc69ec96",
"items": "5f86f0c00ce3361fcc69ec97",
"totalamount": 60,
"taxamount": 0,
"branchid": "5eb4e4164df5b8f44508cbcc",
"createdAt": "2020-10-14T12:36:16.354Z",
"updatedAt": "2020-10-14T12:36:16.354Z",
"updatedby": "5eb4e4164df5b8f44508cbce",
"addedby": "5eb4e4164df5b8f44508cbce",
"docnumber": "JO-2"
}'
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, " {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec95\",\r\n \"status\": \"active\",\r\n \"prefix\": \"JO\",\r\n \"jobnumber\": 2,\r\n \"date\": \"2020-10-14T12:34:31.628Z\",\r\n \"notes\": \"Notes TESTIKNMG\",\r\n \"customerid\": \"5eb4e61a2b81e31504110b35\",\r\n \"onModel\": \"Member\",\r\n \"dispositionid\": {\r\n \"_id\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"action\": [],\r\n \"conditions\": [],\r\n \"status\": \"active\",\r\n \"disposition\": \"Car\",\r\n \"formid\": \"5f6ede82bd01980d301f127f\",\r\n \"parent\": null,\r\n \"usagepercontext\": null,\r\n \"isfreezeonusage\": null,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"dispositiondataid\": \"5f86f0bf0ce3361fcc69ec93\",\r\n \"tasks\": [\r\n {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec96\",\r\n \"usertaskid\": {\r\n \"_id\": \"5f86f0aa0ce3361fcc69ec92\",\r\n \"displaywebparts\": [],\r\n \"assingeeuser\": [\r\n {\r\n \"_id\": \"5f524027e4cfba30d7544f51\",\r\n \"isfirstlogin\": true,\r\n \"status\": \"active\",\r\n \"username\": \"ssaurabh20323@gmail.com\",\r\n \"password\": \"$2a$10$pFrnmbibn6kh1Dbc30Lt1.dzjUZAvhlWTZSDjVzYBNsHtwlwVt9DW\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5f524027e4cfba30d7544f4f\",\r\n \"property\": {\r\n \"fullname\": \"Suman Saurabh\",\r\n \"mobile_number\": \"08095550551\",\r\n \"email\": \"ssaurabh20323@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5f524027e4cfba30d7544f4f\",\r\n \"isadmin\": true\r\n },\r\n \"createdAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"updatedAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"fullname\": \"Suman Saurabh \",\r\n \"namenumber\": \"Suman Saurabh | 08095550551\",\r\n \"updatedby\": \"5a2cbf23ee5c2a1080793272\",\r\n \"addedby\": \"5a2cbf23ee5c2a1080793272\"\r\n }\r\n ],\r\n \"assingeerole\": [],\r\n \"status\": \"active\",\r\n \"title\": \"Car Wash\",\r\n \"description\": \"Car Wash\",\r\n \"priority\": \"moderate\",\r\n \"dispositionid\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"taskid\": \"5f7ea0413271df1d8b56c939\",\r\n \"startdate\": \"2020-10-15T12:35:50.000Z\",\r\n \"duedate\": \"2020-10-15T16:35:52.617Z\",\r\n \"notes\": [],\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"onModel\": \"Formdata\",\r\n \"createdAt\": \"2020-10-14T12:35:54.773Z\",\r\n \"updatedAt\": \"2020-10-14T12:35:54.773Z\"\r\n },\r\n \"totalhours\": 2,\r\n \"amount\": 2500,\r\n \"stage\": 1,\r\n \"status\": \"active\"\r\n }\r\n ],\r\n \"items\": [\r\n {\r\n \"tax\": [],\r\n \"_id\": \"5f86f0c00ce3361fcc69ec97\",\r\n \"item\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bf\",\r\n \"inventoryqty\": 0,\r\n \"housekeepinguser\": [],\r\n \"status\": \"active\",\r\n \"itemid\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bd\",\r\n \"purchase\": {\r\n \"taxes\": []\r\n },\r\n \"sale\": {\r\n \"taxes\": [],\r\n \"rate\": 30\r\n },\r\n \"type\": \"service\",\r\n \"status\": \"active\",\r\n \"itemname\": \"Full Wash Test 10/10/20\",\r\n \"offertype\": \"5f812c521f27c01b7898c8bb\",\r\n \"unit\": \"pcs\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"enableinventory\": false,\r\n \"property\": {\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"createdAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"membership-offers\": \"Full Wash Test 10/10/20\",\r\n \"item_description\": \"Full Wash Test 10/10/20\",\r\n \"itemid\": \"5f812c521f27c01b7898c8bd\",\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"purchase\": [],\r\n \"createdAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"quantity\": 2,\r\n \"cost\": 30,\r\n \"discount\": 0,\r\n \"totalcost\": 60\r\n }\r\n ],\r\n \"totalamount\": 60,\r\n \"taxamount\": 0,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": {\r\n \"_id\": \"5eb4e4164df5b8f44508cbce\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozcarworkshop@gmail.com\",\r\n \"password\": \"$2a$10$vLkyHcfaCIBXp3B1o4n.Ze68HXVLR1/7INOXDhz7VhGkvvWflvB7m\",\r\n \"role\": \"5dd7e2b080199f0aecd400b5\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Service\",\r\n \"mobile_number\": \"8758363925\",\r\n \"email\": \"membrozservice@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-05-08T04:46:14.813Z\",\r\n \"updatedAt\": \"2020-05-08T04:47:00.243Z\",\r\n \"fullname\": \"Membroz Service \",\r\n \"namenumber\": \"Membroz Service | 8758363925\"\r\n },\r\n \"docnumber\": \"JO-2\"\r\n }");
Request request = new Request.Builder()
.url("https://live.membroz.com/api/jobs")
.method("POST", body)
.addHeader("authkey", "XXXXXXXXXX")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
"https://live.membroz.com/api/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>" {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec95\",\r\n \"status\": \"active\",\r\n \"prefix\": \"JO\",\r\n \"jobnumber\": 2,\r\n \"date\": \"2020-10-14T12:34:31.628Z\",\r\n \"notes\": \"Notes TESTIKNMG\",\r\n \"customerid\": \"5eb4e61a2b81e31504110b35\",\r\n \"onModel\": \"Member\",\r\n \"dispositionid\": {\r\n \"_id\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"action\": [],\r\n \"conditions\": [],\r\n \"status\": \"active\",\r\n \"disposition\": \"Car\",\r\n \"formid\": \"5f6ede82bd01980d301f127f\",\r\n \"parent\": null,\r\n \"usagepercontext\": null,\r\n \"isfreezeonusage\": null,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"dispositiondataid\": \"5f86f0bf0ce3361fcc69ec93\",\r\n \"tasks\": [\r\n {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec96\",\r\n \"usertaskid\": {\r\n \"_id\": \"5f86f0aa0ce3361fcc69ec92\",\r\n \"displaywebparts\": [],\r\n \"assingeeuser\": [\r\n {\r\n \"_id\": \"5f524027e4cfba30d7544f51\",\r\n \"isfirstlogin\": true,\r\n \"status\": \"active\",\r\n \"username\": \"ssaurabh20323@gmail.com\",\r\n \"password\": \"$2a$10$pFrnmbibn6kh1Dbc30Lt1.dzjUZAvhlWTZSDjVzYBNsHtwlwVt9DW\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5f524027e4cfba30d7544f4f\",\r\n \"property\": {\r\n \"fullname\": \"Suman Saurabh\",\r\n \"mobile_number\": \"08095550551\",\r\n \"email\": \"ssaurabh20323@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5f524027e4cfba30d7544f4f\",\r\n \"isadmin\": true\r\n },\r\n \"createdAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"updatedAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"fullname\": \"Suman Saurabh \",\r\n \"namenumber\": \"Suman Saurabh | 08095550551\",\r\n \"updatedby\": \"5a2cbf23ee5c2a1080793272\",\r\n \"addedby\": \"5a2cbf23ee5c2a1080793272\"\r\n }\r\n ],\r\n \"assingeerole\": [],\r\n \"status\": \"active\",\r\n \"title\": \"Car Wash\",\r\n \"description\": \"Car Wash\",\r\n \"priority\": \"moderate\",\r\n \"dispositionid\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"taskid\": \"5f7ea0413271df1d8b56c939\",\r\n \"startdate\": \"2020-10-15T12:35:50.000Z\",\r\n \"duedate\": \"2020-10-15T16:35:52.617Z\",\r\n \"notes\": [],\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"onModel\": \"Formdata\",\r\n \"createdAt\": \"2020-10-14T12:35:54.773Z\",\r\n \"updatedAt\": \"2020-10-14T12:35:54.773Z\"\r\n },\r\n \"totalhours\": 2,\r\n \"amount\": 2500,\r\n \"stage\": 1,\r\n \"status\": \"active\"\r\n }\r\n ],\r\n \"items\": [\r\n {\r\n \"tax\": [],\r\n \"_id\": \"5f86f0c00ce3361fcc69ec97\",\r\n \"item\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bf\",\r\n \"inventoryqty\": 0,\r\n \"housekeepinguser\": [],\r\n \"status\": \"active\",\r\n \"itemid\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bd\",\r\n \"purchase\": {\r\n \"taxes\": []\r\n },\r\n \"sale\": {\r\n \"taxes\": [],\r\n \"rate\": 30\r\n },\r\n \"type\": \"service\",\r\n \"status\": \"active\",\r\n \"itemname\": \"Full Wash Test 10/10/20\",\r\n \"offertype\": \"5f812c521f27c01b7898c8bb\",\r\n \"unit\": \"pcs\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"enableinventory\": false,\r\n \"property\": {\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"createdAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"membership-offers\": \"Full Wash Test 10/10/20\",\r\n \"item_description\": \"Full Wash Test 10/10/20\",\r\n \"itemid\": \"5f812c521f27c01b7898c8bd\",\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"purchase\": [],\r\n \"createdAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"quantity\": 2,\r\n \"cost\": 30,\r\n \"discount\": 0,\r\n \"totalcost\": 60\r\n }\r\n ],\r\n \"totalamount\": 60,\r\n \"taxamount\": 0,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": {\r\n \"_id\": \"5eb4e4164df5b8f44508cbce\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozcarworkshop@gmail.com\",\r\n \"password\": \"$2a$10$vLkyHcfaCIBXp3B1o4n.Ze68HXVLR1/7INOXDhz7VhGkvvWflvB7m\",\r\n \"role\": \"5dd7e2b080199f0aecd400b5\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Service\",\r\n \"mobile_number\": \"8758363925\",\r\n \"email\": \"membrozservice@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-05-08T04:46:14.813Z\",\r\n \"updatedAt\": \"2020-05-08T04:47:00.243Z\",\r\n \"fullname\": \"Membroz Service \",\r\n \"namenumber\": \"Membroz Service | 8758363925\"\r\n },\r\n \"docnumber\": \"JO-2\"\r\n }",
CURLOPT_HTTPHEADER => array(
"authkey: XXXXXXXXXX",
"Content-Type: application/json"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
url = "https://live.membroz.com/api/jobs"
payload = " {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec95\",\r\n \"status\": \"active\",\r\n \"prefix\": \"JO\",\r\n \"jobnumber\": 2,\r\n \"date\": \"2020-10-14T12:34:31.628Z\",\r\n \"notes\": \"Notes TESTIKNMG\",\r\n \"customerid\": \"5eb4e61a2b81e31504110b35\",\r\n \"onModel\": \"Member\",\r\n \"dispositionid\": {\r\n \"_id\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"action\": [],\r\n \"conditions\": [],\r\n \"status\": \"active\",\r\n \"disposition\": \"Car\",\r\n \"formid\": \"5f6ede82bd01980d301f127f\",\r\n \"parent\": null,\r\n \"usagepercontext\": null,\r\n \"isfreezeonusage\": null,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"dispositiondataid\": \"5f86f0bf0ce3361fcc69ec93\",\r\n \"tasks\": [\r\n {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec96\",\r\n \"usertaskid\": {\r\n \"_id\": \"5f86f0aa0ce3361fcc69ec92\",\r\n \"displaywebparts\": [],\r\n \"assingeeuser\": [\r\n {\r\n \"_id\": \"5f524027e4cfba30d7544f51\",\r\n \"isfirstlogin\": true,\r\n \"status\": \"active\",\r\n \"username\": \"ssaurabh20323@gmail.com\",\r\n \"password\": \"$2a$10$pFrnmbibn6kh1Dbc30Lt1.dzjUZAvhlWTZSDjVzYBNsHtwlwVt9DW\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5f524027e4cfba30d7544f4f\",\r\n \"property\": {\r\n \"fullname\": \"Suman Saurabh\",\r\n \"mobile_number\": \"08095550551\",\r\n \"email\": \"ssaurabh20323@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5f524027e4cfba30d7544f4f\",\r\n \"isadmin\": true\r\n },\r\n \"createdAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"updatedAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"fullname\": \"Suman Saurabh \",\r\n \"namenumber\": \"Suman Saurabh | 08095550551\",\r\n \"updatedby\": \"5a2cbf23ee5c2a1080793272\",\r\n \"addedby\": \"5a2cbf23ee5c2a1080793272\"\r\n }\r\n ],\r\n \"assingeerole\": [],\r\n \"status\": \"active\",\r\n \"title\": \"Car Wash\",\r\n \"description\": \"Car Wash\",\r\n \"priority\": \"moderate\",\r\n \"dispositionid\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"taskid\": \"5f7ea0413271df1d8b56c939\",\r\n \"startdate\": \"2020-10-15T12:35:50.000Z\",\r\n \"duedate\": \"2020-10-15T16:35:52.617Z\",\r\n \"notes\": [],\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"onModel\": \"Formdata\",\r\n \"createdAt\": \"2020-10-14T12:35:54.773Z\",\r\n \"updatedAt\": \"2020-10-14T12:35:54.773Z\"\r\n },\r\n \"totalhours\": 2,\r\n \"amount\": 2500,\r\n \"stage\": 1,\r\n \"status\": \"active\"\r\n }\r\n ],\r\n \"items\": [\r\n {\r\n \"tax\": [],\r\n \"_id\": \"5f86f0c00ce3361fcc69ec97\",\r\n \"item\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bf\",\r\n \"inventoryqty\": 0,\r\n \"housekeepinguser\": [],\r\n \"status\": \"active\",\r\n \"itemid\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bd\",\r\n \"purchase\": {\r\n \"taxes\": []\r\n },\r\n \"sale\": {\r\n \"taxes\": [],\r\n \"rate\": 30\r\n },\r\n \"type\": \"service\",\r\n \"status\": \"active\",\r\n \"itemname\": \"Full Wash Test 10/10/20\",\r\n \"offertype\": \"5f812c521f27c01b7898c8bb\",\r\n \"unit\": \"pcs\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"enableinventory\": false,\r\n \"property\": {\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"createdAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"membership-offers\": \"Full Wash Test 10/10/20\",\r\n \"item_description\": \"Full Wash Test 10/10/20\",\r\n \"itemid\": \"5f812c521f27c01b7898c8bd\",\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"purchase\": [],\r\n \"createdAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"quantity\": 2,\r\n \"cost\": 30,\r\n \"discount\": 0,\r\n \"totalcost\": 60\r\n }\r\n ],\r\n \"totalamount\": 60,\r\n \"taxamount\": 0,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": {\r\n \"_id\": \"5eb4e4164df5b8f44508cbce\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozcarworkshop@gmail.com\",\r\n \"password\": \"$2a$10$vLkyHcfaCIBXp3B1o4n.Ze68HXVLR1/7INOXDhz7VhGkvvWflvB7m\",\r\n \"role\": \"5dd7e2b080199f0aecd400b5\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Service\",\r\n \"mobile_number\": \"8758363925\",\r\n \"email\": \"membrozservice@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-05-08T04:46:14.813Z\",\r\n \"updatedAt\": \"2020-05-08T04:47:00.243Z\",\r\n \"fullname\": \"Membroz Service \",\r\n \"namenumber\": \"Membroz Service | 8758363925\"\r\n },\r\n \"docnumber\": \"JO-2\"\r\n }"
headers = {
'authkey': 'XXXXXXXXXX',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data = payload)
print(response.text.encode('utf8'))
require "uri"
require "net/http"
url = URI("https://live.membroz.com/api/jobs")
https = Net::HTTP.new(url.host, url.port);
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authkey"] = "XXXXXXXXXX"
request["Content-Type"] = "application/json"
request.body = " {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec95\",\r\n \"status\": \"active\",\r\n \"prefix\": \"JO\",\r\n \"jobnumber\": 2,\r\n \"date\": \"2020-10-14T12:34:31.628Z\",\r\n \"notes\": \"Notes TESTIKNMG\",\r\n \"customerid\": \"5eb4e61a2b81e31504110b35\",\r\n \"onModel\": \"Member\",\r\n \"dispositionid\": {\r\n \"_id\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"action\": [],\r\n \"conditions\": [],\r\n \"status\": \"active\",\r\n \"disposition\": \"Car\",\r\n \"formid\": \"5f6ede82bd01980d301f127f\",\r\n \"parent\": null,\r\n \"usagepercontext\": null,\r\n \"isfreezeonusage\": null,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"dispositiondataid\": \"5f86f0bf0ce3361fcc69ec93\",\r\n \"tasks\": [\r\n {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec96\",\r\n \"usertaskid\": {\r\n \"_id\": \"5f86f0aa0ce3361fcc69ec92\",\r\n \"displaywebparts\": [],\r\n \"assingeeuser\": [\r\n {\r\n \"_id\": \"5f524027e4cfba30d7544f51\",\r\n \"isfirstlogin\": true,\r\n \"status\": \"active\",\r\n \"username\": \"ssaurabh20323@gmail.com\",\r\n \"password\": \"$2a$10$pFrnmbibn6kh1Dbc30Lt1.dzjUZAvhlWTZSDjVzYBNsHtwlwVt9DW\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5f524027e4cfba30d7544f4f\",\r\n \"property\": {\r\n \"fullname\": \"Suman Saurabh\",\r\n \"mobile_number\": \"08095550551\",\r\n \"email\": \"ssaurabh20323@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5f524027e4cfba30d7544f4f\",\r\n \"isadmin\": true\r\n },\r\n \"createdAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"updatedAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"fullname\": \"Suman Saurabh \",\r\n \"namenumber\": \"Suman Saurabh | 08095550551\",\r\n \"updatedby\": \"5a2cbf23ee5c2a1080793272\",\r\n \"addedby\": \"5a2cbf23ee5c2a1080793272\"\r\n }\r\n ],\r\n \"assingeerole\": [],\r\n \"status\": \"active\",\r\n \"title\": \"Car Wash\",\r\n \"description\": \"Car Wash\",\r\n \"priority\": \"moderate\",\r\n \"dispositionid\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"taskid\": \"5f7ea0413271df1d8b56c939\",\r\n \"startdate\": \"2020-10-15T12:35:50.000Z\",\r\n \"duedate\": \"2020-10-15T16:35:52.617Z\",\r\n \"notes\": [],\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"onModel\": \"Formdata\",\r\n \"createdAt\": \"2020-10-14T12:35:54.773Z\",\r\n \"updatedAt\": \"2020-10-14T12:35:54.773Z\"\r\n },\r\n \"totalhours\": 2,\r\n \"amount\": 2500,\r\n \"stage\": 1,\r\n \"status\": \"active\"\r\n }\r\n ],\r\n \"items\": [\r\n {\r\n \"tax\": [],\r\n \"_id\": \"5f86f0c00ce3361fcc69ec97\",\r\n \"item\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bf\",\r\n \"inventoryqty\": 0,\r\n \"housekeepinguser\": [],\r\n \"status\": \"active\",\r\n \"itemid\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bd\",\r\n \"purchase\": {\r\n \"taxes\": []\r\n },\r\n \"sale\": {\r\n \"taxes\": [],\r\n \"rate\": 30\r\n },\r\n \"type\": \"service\",\r\n \"status\": \"active\",\r\n \"itemname\": \"Full Wash Test 10/10/20\",\r\n \"offertype\": \"5f812c521f27c01b7898c8bb\",\r\n \"unit\": \"pcs\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"enableinventory\": false,\r\n \"property\": {\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"createdAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"membership-offers\": \"Full Wash Test 10/10/20\",\r\n \"item_description\": \"Full Wash Test 10/10/20\",\r\n \"itemid\": \"5f812c521f27c01b7898c8bd\",\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"purchase\": [],\r\n \"createdAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"quantity\": 2,\r\n \"cost\": 30,\r\n \"discount\": 0,\r\n \"totalcost\": 60\r\n }\r\n ],\r\n \"totalamount\": 60,\r\n \"taxamount\": 0,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": {\r\n \"_id\": \"5eb4e4164df5b8f44508cbce\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozcarworkshop@gmail.com\",\r\n \"password\": \"$2a$10$vLkyHcfaCIBXp3B1o4n.Ze68HXVLR1/7INOXDhz7VhGkvvWflvB7m\",\r\n \"role\": \"5dd7e2b080199f0aecd400b5\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Service\",\r\n \"mobile_number\": \"8758363925\",\r\n \"email\": \"membrozservice@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-05-08T04:46:14.813Z\",\r\n \"updatedAt\": \"2020-05-08T04:47:00.243Z\",\r\n \"fullname\": \"Membroz Service \",\r\n \"namenumber\": \"Membroz Service | 8758363925\"\r\n },\r\n \"docnumber\": \"JO-2\"\r\n }"
response = https.request(request)
puts response.read_body
var client = new RestClient("https://live.membroz.com/api/jobs");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("authkey", "XXXXXXXXXX");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", " {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec95\",\r\n \"status\": \"active\",\r\n \"prefix\": \"JO\",\r\n \"jobnumber\": 2,\r\n \"date\": \"2020-10-14T12:34:31.628Z\",\r\n \"notes\": \"Notes TESTIKNMG\",\r\n \"customerid\": \"5eb4e61a2b81e31504110b35\",\r\n \"onModel\": \"Member\",\r\n \"dispositionid\": {\r\n \"_id\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"action\": [],\r\n \"conditions\": [],\r\n \"status\": \"active\",\r\n \"disposition\": \"Car\",\r\n \"formid\": \"5f6ede82bd01980d301f127f\",\r\n \"parent\": null,\r\n \"usagepercontext\": null,\r\n \"isfreezeonusage\": null,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedAt\": \"2020-10-08T04:50:35.232Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"dispositiondataid\": \"5f86f0bf0ce3361fcc69ec93\",\r\n \"tasks\": [\r\n {\r\n \"_id\": \"5f86f0c00ce3361fcc69ec96\",\r\n \"usertaskid\": {\r\n \"_id\": \"5f86f0aa0ce3361fcc69ec92\",\r\n \"displaywebparts\": [],\r\n \"assingeeuser\": [\r\n {\r\n \"_id\": \"5f524027e4cfba30d7544f51\",\r\n \"isfirstlogin\": true,\r\n \"status\": \"active\",\r\n \"username\": \"ssaurabh20323@gmail.com\",\r\n \"password\": \"$2a$10$pFrnmbibn6kh1Dbc30Lt1.dzjUZAvhlWTZSDjVzYBNsHtwlwVt9DW\",\r\n \"role\": \"5dd37f876c98a22df08b9509\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5f524027e4cfba30d7544f4f\",\r\n \"property\": {\r\n \"fullname\": \"Suman Saurabh\",\r\n \"mobile_number\": \"08095550551\",\r\n \"email\": \"ssaurabh20323@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5f524027e4cfba30d7544f4f\",\r\n \"isadmin\": true\r\n },\r\n \"createdAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"updatedAt\": \"2020-09-04T13:24:55.138Z\",\r\n \"fullname\": \"Suman Saurabh \",\r\n \"namenumber\": \"Suman Saurabh | 08095550551\",\r\n \"updatedby\": \"5a2cbf23ee5c2a1080793272\",\r\n \"addedby\": \"5a2cbf23ee5c2a1080793272\"\r\n }\r\n ],\r\n \"assingeerole\": [],\r\n \"status\": \"active\",\r\n \"title\": \"Car Wash\",\r\n \"description\": \"Car Wash\",\r\n \"priority\": \"moderate\",\r\n \"dispositionid\": \"5f7e9a9b3271df1d8b56c931\",\r\n \"taskid\": \"5f7ea0413271df1d8b56c939\",\r\n \"startdate\": \"2020-10-15T12:35:50.000Z\",\r\n \"duedate\": \"2020-10-15T16:35:52.617Z\",\r\n \"notes\": [],\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"onModel\": \"Formdata\",\r\n \"createdAt\": \"2020-10-14T12:35:54.773Z\",\r\n \"updatedAt\": \"2020-10-14T12:35:54.773Z\"\r\n },\r\n \"totalhours\": 2,\r\n \"amount\": 2500,\r\n \"stage\": 1,\r\n \"status\": \"active\"\r\n }\r\n ],\r\n \"items\": [\r\n {\r\n \"tax\": [],\r\n \"_id\": \"5f86f0c00ce3361fcc69ec97\",\r\n \"item\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bf\",\r\n \"inventoryqty\": 0,\r\n \"housekeepinguser\": [],\r\n \"status\": \"active\",\r\n \"itemid\": {\r\n \"_id\": \"5f812c521f27c01b7898c8bd\",\r\n \"purchase\": {\r\n \"taxes\": []\r\n },\r\n \"sale\": {\r\n \"taxes\": [],\r\n \"rate\": 30\r\n },\r\n \"type\": \"service\",\r\n \"status\": \"active\",\r\n \"itemname\": \"Full Wash Test 10/10/20\",\r\n \"offertype\": \"5f812c521f27c01b7898c8bb\",\r\n \"unit\": \"pcs\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"enableinventory\": false,\r\n \"property\": {\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"createdAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.652Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"membership-offers\": \"Full Wash Test 10/10/20\",\r\n \"item_description\": \"Full Wash Test 10/10/20\",\r\n \"itemid\": \"5f812c521f27c01b7898c8bd\",\r\n \"serviceid\": \"5f812c521f27c01b7898c8b9\"\r\n },\r\n \"purchase\": [],\r\n \"createdAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedAt\": \"2020-10-10T03:36:50.972Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": \"5eb4e4164df5b8f44508cbce\"\r\n },\r\n \"quantity\": 2,\r\n \"cost\": 30,\r\n \"discount\": 0,\r\n \"totalcost\": 60\r\n }\r\n ],\r\n \"totalamount\": 60,\r\n \"taxamount\": 0,\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"createdAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedAt\": \"2020-10-14T12:36:16.354Z\",\r\n \"updatedby\": \"5eb4e4164df5b8f44508cbce\",\r\n \"addedby\": {\r\n \"_id\": \"5eb4e4164df5b8f44508cbce\",\r\n \"isfirstlogin\": false,\r\n \"status\": \"active\",\r\n \"username\": \"membrozcarworkshop@gmail.com\",\r\n \"password\": \"$2a$10$vLkyHcfaCIBXp3B1o4n.Ze68HXVLR1/7INOXDhz7VhGkvvWflvB7m\",\r\n \"role\": \"5dd7e2b080199f0aecd400b5\",\r\n \"anroiddevices\": [],\r\n \"iosdevices\": [],\r\n \"designationid\": \"5c9a0e1112b3f913dc5ab3ba\",\r\n \"branchid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"property\": {\r\n \"fullname\": \"Membroz Service\",\r\n \"mobile_number\": \"8758363925\",\r\n \"email\": \"membrozservice@gmail.com\",\r\n \"country\": \"India\",\r\n \"membrozid\": \"5eb4e4164df5b8f44508cbcc\",\r\n \"isadmin\": false\r\n },\r\n \"createdAt\": \"2020-05-08T04:46:14.813Z\",\r\n \"updatedAt\": \"2020-05-08T04:47:00.243Z\",\r\n \"fullname\": \"Membroz Service \",\r\n \"namenumber\": \"Membroz Service | 8758363925\"\r\n },\r\n \"docnumber\": \"JO-2\"\r\n }", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Possible Errors
HTTP Status | Error Code | Message | Reason |
---|---|---|---|
permission denied | 403 | You do not have permission |
Sample Response
{
"status": "active",
"_id": "5f87dfad665ae4364e8521a7",
"prefix": "JO",
"jobnumber": 1,
"date": "2020-10-14T12:34:31.628Z",
"notes": "Notes TESTIKNMG",
"customerid": "5eb4e61a2b81e31504110b35",
"onModel": "Member",
"dispositionid": "5f7e9a9b3271df1d8b56c931",
"dispositiondataid": "5f86f0bf0ce3361fcc69ec93",
"tasks": [
{
"_id": "5f86f0c00ce3361fcc69ec96",
"usertaskid": "5f86f0aa0ce3361fcc69ec92",
"totalhours": 2,
"amount": 2500,
"stage": 1,
"status": "active"
}
],
"items": [
{
"tax": [],
"_id": "5f86f0c00ce3361fcc69ec97",
"item": "5f812c521f27c01b7898c8bf",
"quantity": 2,
"cost": 30,
"discount": 0,
"totalcost": 60
}
],
"totalamount": 60,
"taxamount": 0,
"branchid": "5eb4e4164df5b8f44508cbcc",
"createdAt": "2020-10-15T05:35:41.526Z",
"updatedAt": "2020-10-15T05:35:41.526Z",
"updatedby": "5e954c7b9df11624f81e785b",
"addedby": "5e954c7b9df11624f81e785b"
}