Update Purchase Request Data

Update Purchase Request Data

Purpose

To update the Purchase Indent/location detail of your organization.

Request URL

https://live.membroz.com/api/purchaseindents/[purchaseindentid]

Request Method

PUT
Note
  • Send authkey in https header
  • 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/purchaseindents
  • API return updated purchaseindent data in json format or return error message.

Request JSON

Attribute Data Type Mandatory Description
PURCHASEINDENTID String Yes The record ID of the purchaseindent you want to update. it is pass in request
/api/purchaseindents/[purchaseindentid]

Sample Request

curl --location --request PUT 'https://live.membroz.com/api/purchaseindents/[purchaseindentid]'\
--header 'authkey: XXXXXXXXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
        "_id": "5f098c6eefbfff35a1729789",
        "status": "active",
        "wfuserid": [],
        "indentnumber": 2,
        "indentprefix": "Membo",
        "indentdate": "2020-07-11T09:54:53.253Z",
        "items": [
            {
                "_id": "5f098c6eefbfff35a172978c",
                "item": {
                    "_id": "5f098b91efbfff35a172977d",
                    "purchase": {
                        "taxes": [],
                        "rate": 400
                    },
                    "sale": {
                        "taxes": [],
                        "rate": 500
                    },
                    "type": "product",
                    "status": "active",
                    "itemname": "Yoga mat",
                    "offertype": "5f098b10efbfff35a1729773",
                    "item_logo": "https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg",
                    "unit": "cm",
                    "branchid": "5f09734b99e17f23dc00c244",
                    "enableinventory": true,
                    "createdAt": "2020-07-11T09:51:13.962Z",
                    "updatedAt": "2020-07-11T09:51:13.962Z"
                },
                "quantity": 20
            }
        ],
        "requestor": "5f09731d99e17f23dc00c243",
        "note": "yoga mat",
        "branchid": "5f09734b99e17f23dc00c244",
        "createdAt": "2020-07-11T09:54:54.194Z",
        "updatedAt": "2020-08-15T13:54:45.177Z"
    }'
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n        \"_id\": \"5f098c6eefbfff35a1729789\",\r\n        \"status\": \"active\",\r\n        \"wfuserid\": [],\r\n        \"indentnumber\": 2,\r\n        \"indentprefix\": \"Membo\",\r\n        \"indentdate\": \"2020-07-11T09:54:53.253Z\",\r\n        \"items\": [\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978c\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098b91efbfff35a172977d\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Yoga mat\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg\",\r\n                    \"unit\": \"cm\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:51:13.962Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:51:13.962Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978b\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098bf6efbfff35a1729781\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Vajrasan stool\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"unit\": \"box\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:52:54.861Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:52:54.861Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978a\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098c3fefbfff35a1729785\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 100\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 150\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Kapoor dani\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461233/pshckbesfl4fvu8emvla.webp\",\r\n                    \"unit\": \"pcs\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:54:07.057Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:54:07.057Z\"\r\n                },\r\n                \"quantity\": 30\r\n            }\r\n        ],\r\n        \"requestor\": \"5f09731d99e17f23dc00c243\",\r\n        \"note\": \"yoga mat\",\r\n        \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n        \"createdAt\": \"2020-07-11T09:54:54.194Z\",\r\n        \"updatedAt\": \"2020-08-15T13:54:45.177Z\"\r\n    }");
Request request = new Request.Builder()
  .url("https://live.membroz.com/api/purchaseindents/[purchaseindentid]")
  .method("PUT", body)
  .addHeader("authkey", "XXXXXXXXXX")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
 "https://live.membroz.com/api/purchaseindents/[purchaseindentid]",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS =>"{\r\n        \"_id\": \"5f098c6eefbfff35a1729789\",\r\n        \"status\": \"active\",\r\n        \"wfuserid\": [],\r\n        \"indentnumber\": 2,\r\n        \"indentprefix\": \"Membo\",\r\n        \"indentdate\": \"2020-07-11T09:54:53.253Z\",\r\n        \"items\": [\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978c\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098b91efbfff35a172977d\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Yoga mat\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg\",\r\n                    \"unit\": \"cm\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:51:13.962Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:51:13.962Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978b\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098bf6efbfff35a1729781\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Vajrasan stool\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"unit\": \"box\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:52:54.861Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:52:54.861Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978a\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098c3fefbfff35a1729785\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 100\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 150\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Kapoor dani\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461233/pshckbesfl4fvu8emvla.webp\",\r\n                    \"unit\": \"pcs\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:54:07.057Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:54:07.057Z\"\r\n                },\r\n                \"quantity\": 30\r\n            }\r\n        ],\r\n        \"requestor\": \"5f09731d99e17f23dc00c243\",\r\n        \"note\": \"yoga mat\",\r\n        \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n        \"createdAt\": \"2020-07-11T09:54:54.194Z\",\r\n        \"updatedAt\": \"2020-08-15T13:54:45.177Z\"\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/purchaseindents/[purchaseindentid]"

payload = "{\r\n        \"_id\": \"5f098c6eefbfff35a1729789\",\r\n        \"status\": \"active\",\r\n        \"wfuserid\": [],\r\n        \"indentnumber\": 2,\r\n        \"indentprefix\": \"Membo\",\r\n        \"indentdate\": \"2020-07-11T09:54:53.253Z\",\r\n        \"items\": [\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978c\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098b91efbfff35a172977d\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Yoga mat\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg\",\r\n                    \"unit\": \"cm\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:51:13.962Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:51:13.962Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978b\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098bf6efbfff35a1729781\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Vajrasan stool\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"unit\": \"box\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:52:54.861Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:52:54.861Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978a\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098c3fefbfff35a1729785\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 100\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 150\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Kapoor dani\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461233/pshckbesfl4fvu8emvla.webp\",\r\n                    \"unit\": \"pcs\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:54:07.057Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:54:07.057Z\"\r\n                },\r\n                \"quantity\": 30\r\n            }\r\n        ],\r\n        \"requestor\": \"5f09731d99e17f23dc00c243\",\r\n        \"note\": \"yoga mat\",\r\n        \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n        \"createdAt\": \"2020-07-11T09:54:54.194Z\",\r\n        \"updatedAt\": \"2020-08-15T13:54:45.177Z\"\r\n    }"
headers = {
  'authkey': 'XXXXXXXXXX',
  'Content-Type': 'application/json'
}

response = requests.request("PUT", url, headers=headers, data = payload)

print(response.text.encode('utf8'))
require "uri"
require "net/http"

url = URI("https://live.membroz.com/api/purchaseindents/[purchaseindentid]")

https = Net::HTTP.new(url.host, url.port);
https.use_ssl = true

request = Net::HTTP::Put.new(url)
request["authkey"] = "XXXXXXXXXX"
request["Content-Type"] = "application/json"
request.body = "{\r\n        \"_id\": \"5f098c6eefbfff35a1729789\",\r\n        \"status\": \"active\",\r\n        \"wfuserid\": [],\r\n        \"indentnumber\": 2,\r\n        \"indentprefix\": \"Membo\",\r\n        \"indentdate\": \"2020-07-11T09:54:53.253Z\",\r\n        \"items\": [\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978c\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098b91efbfff35a172977d\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Yoga mat\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg\",\r\n                    \"unit\": \"cm\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:51:13.962Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:51:13.962Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978b\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098bf6efbfff35a1729781\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Vajrasan stool\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"unit\": \"box\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:52:54.861Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:52:54.861Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978a\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098c3fefbfff35a1729785\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 100\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 150\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Kapoor dani\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461233/pshckbesfl4fvu8emvla.webp\",\r\n                    \"unit\": \"pcs\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:54:07.057Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:54:07.057Z\"\r\n                },\r\n                \"quantity\": 30\r\n            }\r\n        ],\r\n        \"requestor\": \"5f09731d99e17f23dc00c243\",\r\n        \"note\": \"yoga mat\",\r\n        \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n        \"createdAt\": \"2020-07-11T09:54:54.194Z\",\r\n        \"updatedAt\": \"2020-08-15T13:54:45.177Z\"\r\n    }"

response = https.request(request)
puts response.read_body
var client = new RestClient("https://live.membroz.com/api/purchaseindents/[purchaseindentid]");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("authkey", "XXXXXXXXXX");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n        \"_id\": \"5f098c6eefbfff35a1729789\",\r\n        \"status\": \"active\",\r\n        \"wfuserid\": [],\r\n        \"indentnumber\": 2,\r\n        \"indentprefix\": \"Membo\",\r\n        \"indentdate\": \"2020-07-11T09:54:53.253Z\",\r\n        \"items\": [\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978c\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098b91efbfff35a172977d\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Yoga mat\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg\",\r\n                    \"unit\": \"cm\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:51:13.962Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:51:13.962Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978b\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098bf6efbfff35a1729781\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 400\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 500\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Vajrasan stool\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"unit\": \"box\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:52:54.861Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:52:54.861Z\"\r\n                },\r\n                \"quantity\": 20\r\n            },\r\n            {\r\n                \"_id\": \"5f098c6eefbfff35a172978a\",\r\n                \"item\": {\r\n                    \"_id\": \"5f098c3fefbfff35a1729785\",\r\n                    \"purchase\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 100\r\n                    },\r\n                    \"sale\": {\r\n                        \"taxes\": [],\r\n                        \"rate\": 150\r\n                    },\r\n                    \"type\": \"product\",\r\n                    \"status\": \"active\",\r\n                    \"itemname\": \"Kapoor dani\",\r\n                    \"offertype\": \"5f098b10efbfff35a1729773\",\r\n                    \"item_logo\": \"https://res.cloudinary.com/dlopjt9le/image/upload/v1594461233/pshckbesfl4fvu8emvla.webp\",\r\n                    \"unit\": \"pcs\",\r\n                    \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n                    \"enableinventory\": true,\r\n                    \"createdAt\": \"2020-07-11T09:54:07.057Z\",\r\n                    \"updatedAt\": \"2020-07-11T09:54:07.057Z\"\r\n                },\r\n                \"quantity\": 30\r\n            }\r\n        ],\r\n        \"requestor\": \"5f09731d99e17f23dc00c243\",\r\n        \"note\": \"yoga mat\",\r\n        \"branchid\": \"5f09734b99e17f23dc00c244\",\r\n        \"createdAt\": \"2020-07-11T09:54:54.194Z\",\r\n        \"updatedAt\": \"2020-08-15T13:54:45.177Z\"\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": "5f098c6eefbfff35a1729789",
    "wfuserid": [],
    "indentnumber": 2,
    "indentprefix": "Membo",
    "indentdate": "2020-07-11T09:54:53.253Z",
    "items": [
        {
            "_id": "5f098c6eefbfff35a172978c",
            "item": {
                "purchase": {
                    "taxes": [],
                    "rate": 400
                },
                "sale": {
                    "taxes": [],
                    "rate": 500
                },
                "type": "product",
                "status": "active",
                "_id": "5f098b91efbfff35a172977d",
                "itemname": "Yoga mat",
                "offertype": "5f098b10efbfff35a1729773",
                "item_logo": "https://res.cloudinary.com/dlopjt9le/image/upload/v1594461061/cjiq8sfe8imozadwqgub.jpg",
                "unit": "cm",
                "branchid": "5f09734b99e17f23dc00c244",
                "enableinventory": true,
                "createdAt": "2020-07-11T09:51:13.962Z",
                "updatedAt": "2020-07-11T09:51:13.962Z"
            },
            "quantity": 20,
            "tax": []
        }
    ],
    "requestor": "5f09731d99e17f23dc00c243",
    "note": "yoga mat",
    "createdAt": "2020-07-11T09:54:54.194Z",
    "updatedAt": "2020-09-25T11:54:13.905Z",
    "updatedby": "5e954c7b9df11624f81e785b"
}
Send Message
Hello!
How can we help!