Skip to main content

Update Inventory Transfer

PUT 

https://api-dev.ianai.co/v2/item/transfer/:id

Update inventory transfer information

Request

Responses

Inventory Transfer information

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
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());
Request Collapse all
Base URL
https://api-dev.ianai.co/v2
Auth
Parameters
— pathrequired
— header
Body required
{
  "active": true,
  "doc_number": "TR-123",
  "txn_datetime": "2021-01-01T00:00:00Z",
  "from_location": {
    "id": "uuid",
    "name": "Location 1"
  },
  "to_location": {
    "id": "uuid",
    "name": "Location 2"
  },
  "inter_company": {
    "id": "uuid",
    "name": "Inter Company 1"
  },
  "project_code": {
    "id": "uuid",
    "name": "Project 1"
  },
  "department": {
    "id": "uuid",
    "name": "Department 1"
  },
  "tracking_number": "TRACK-123",
  "ship_method": "UPS;;ups;;ups_ground",
  "create_shipment": true,
  "internal_notes": "Example internal notes",
  "line_items": [
    {
      "id": "uuid",
      "line_number": 1,
      "description": "Example line item description",
      "quantity": 10,
      "uom_conversion": 1,
      "lot": {
        "id": "uuid",
        "name": "LOT123456"
      },
      "expiry_date": "2021-01-01",
      "serials": "SERIAL111",
      "item": {
        "id": "uuid",
        "name": "Item 1"
      },
      "from_bin": {
        "id": "uuid",
        "name": "Bin Location 1"
      },
      "to_bin": {
        "id": "uuid",
        "name": "Bin Location 2"
      },
      "from_location": {
        "id": "uuid",
        "name": "Location 1"
      },
      "to_location": {
        "id": "uuid",
        "name": "Location 2"
      },
      "uom": {
        "id": "uuid",
        "name": "UOM 1"
      },
      "class_ref": {
        "id": "uuid",
        "name": "Class 1"
      }
    }
  ],
  "status": "open",
  "custom_fields": {},
  "linked_transaction": [
    {
      "entity_name": "PurchaseOrderLineItem",
      "entity_key": "uuid"
    }
  ],
  "class_ref": {
    "id": "string",
    "name": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!