Update Inventory Transfer
PUThttps://api-dev.ianai.co/v2/item/transfer/:id
Update inventory transfer information
Request
Responses
- 200
- 400
- 401
- 403
- 500
Inventory Transfer information
Bad request error
Unauthorized error
Token issue like Expired or corrupted
Internal Server error
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api-dev.ianai.co/v2/item/transfer/:id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"active\": true,\n \"doc_number\": \"TR-123\",\n \"txn_datetime\": \"2021-01-01T00:00:00Z\",\n \"from_location\": {\n \"id\": \"uuid\",\n \"name\": \"Location 1\"\n },\n \"to_location\": {\n \"id\": \"uuid\",\n \"name\": \"Location 2\"\n },\n \"inter_company\": {\n \"id\": \"uuid\",\n \"name\": \"Inter Company 1\"\n },\n \"project_code\": {\n \"id\": \"uuid\",\n \"name\": \"Project 1\"\n },\n \"department\": {\n \"id\": \"uuid\",\n \"name\": \"Department 1\"\n },\n \"tracking_number\": \"TRACK-123\",\n \"ship_method\": \"UPS;;ups;;ups_ground\",\n \"create_shipment\": true,\n \"internal_notes\": \"Example internal notes\",\n \"line_items\": [\n {\n \"id\": \"uuid\",\n \"line_number\": 1,\n \"description\": \"Example line item description\",\n \"quantity\": 10,\n \"uom_conversion\": 1,\n \"lot\": {\n \"id\": \"uuid\",\n \"name\": \"LOT123456\"\n },\n \"expiry_date\": \"2021-01-01\",\n \"serials\": \"SERIAL111\",\n \"item\": {\n \"id\": \"uuid\",\n \"name\": \"Item 1\"\n },\n \"from_bin\": {\n \"id\": \"uuid\",\n \"name\": \"Bin Location 1\"\n },\n \"to_bin\": {\n \"id\": \"uuid\",\n \"name\": \"Bin Location 2\"\n },\n \"from_location\": {\n \"id\": \"uuid\",\n \"name\": \"Location 1\"\n },\n \"to_location\": {\n \"id\": \"uuid\",\n \"name\": \"Location 2\"\n },\n \"uom\": {\n \"id\": \"uuid\",\n \"name\": \"UOM 1\"\n },\n \"class_ref\": {\n \"id\": \"uuid\",\n \"name\": \"Class 1\"\n }\n }\n ],\n \"status\": \"open\",\n \"custom_fields\": {},\n \"linked_transaction\": [\n {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n }\n ],\n \"class_ref\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear