---
updatedAt: 2026-10-13T13:38:43.000Z
---

# Update an Inventory Item

**Supported for:**

`freshbooks` `quickbooks` `xero` `oracleNetsuite` `sageIntacct` `dynamicsBusinessCentral` `wave` `myob` `zohoBooks`

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v2/accounting/inventory/{id}": {
      "put": {
        "operationId": "put-inventory",
        "summary": "Update an Inventory Item",
        "description": "**Supported for:**\n\n`freshbooks` `quickbooks` `xero` `oracleNetsuite` `sageIntacct` `dynamicsBusinessCentral` `wave` `myob` `zohoBooks`",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInventoryV2Dto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateInventoryV2ResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request Error - Thrown if fields sent via query does not follow specifications",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400ResponseDtoV2"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Not logged in or log in expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401ResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - Not enough permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error403ResponseDto"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error500ResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "tags": [
          "Inventory"
        ]
      }
    }
  },
  "info": {
    "title": "FIS® Accounting Data as a Service™ API",
    "description": "[What's changed in our API](https://docs.railz.ai/changelog)",
    "version": "v2",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.railz.ai",
      "description": "Main (production) API server"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "Error401Dto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "readOnly": true,
            "example": 401
          },
          "message": {
            "readOnly": true,
            "example": [
              "Unauthorized"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "readOnly": true,
            "example": "Unauthorized"
          }
        },
        "required": [
          "statusCode",
          "message",
          "error"
        ]
      },
      "Error401ResponseDto": {
        "type": "object",
        "properties": {
          "error": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Error401Dto"
              }
            ]
          },
          "payload": {
            "type": "object",
            "readOnly": true,
            "example": {}
          }
        },
        "required": [
          "error",
          "payload"
        ]
      },
      "Error403Dto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "readOnly": true,
            "example": 403
          },
          "message": {
            "readOnly": true,
            "example": [
              "Forbidden resource"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "readOnly": true,
            "example": "Forbidden"
          }
        },
        "required": [
          "statusCode",
          "message",
          "error"
        ]
      },
      "Error403ResponseDto": {
        "type": "object",
        "properties": {
          "error": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Error403Dto"
              }
            ]
          },
          "payload": {
            "type": "object",
            "readOnly": true,
            "example": {}
          }
        },
        "required": [
          "error",
          "payload"
        ]
      },
      "Error500Dto": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "readOnly": true,
            "example": "Internal Server Error"
          },
          "message": {
            "readOnly": true,
            "example": [
              "INTERNAL_ERROR"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "statusCode": {
            "type": "number",
            "readOnly": true,
            "example": 500
          }
        },
        "required": [
          "error",
          "message",
          "statusCode"
        ]
      },
      "Error500ResponseDto": {
        "type": "object",
        "properties": {
          "error": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Error500Dto"
              }
            ]
          },
          "payload": {
            "type": "object",
            "readOnly": true
          }
        },
        "required": [
          "error",
          "payload"
        ]
      },
      "Error400DtoV2": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "readOnly": true,
            "example": 400
          },
          "message": {
            "readOnly": true,
            "example": [
              "connectionUuid should not be empty"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "readOnly": true,
            "example": "Bad Request"
          }
        },
        "required": [
          "statusCode",
          "message",
          "error"
        ]
      },
      "Error400ResponseDtoV2": {
        "type": "object",
        "properties": {
          "error": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Error400DtoV2"
              }
            ]
          },
          "payload": {
            "type": "object",
            "readOnly": true
          }
        },
        "required": [
          "error",
          "payload"
        ]
      },
      "TaxRateRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "12"
          }
        },
        "required": [
          "id"
        ]
      },
      "SubsidiaryRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "4"
          }
        },
        "required": [
          "id"
        ]
      },
      "AccountRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "200"
          }
        },
        "required": [
          "id"
        ]
      },
      "InventoryRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "32"
          }
        },
        "required": [
          "id"
        ]
      },
      "QuantityOnHandV2Dto": {
        "type": "object",
        "properties": {
          "quantity": {
            "type": "number",
            "example": 2.5,
            "format": "float",
            "maximum": 999999999999
          },
          "locationRef": {
            "$ref": "#/components/schemas/InventoryRefDto"
          },
          "accountRef": {
            "$ref": "#/components/schemas/AccountRefDto"
          }
        }
      },
      "InventoryBillInvoiceLineItemsV2": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "maxLength": 4000,
            "example": "Item description."
          },
          "unitPrice": {
            "type": "number",
            "format": "float",
            "maximum": 999999999999,
            "example": 2.5
          },
          "accountRef": {
            "$ref": "#/components/schemas/AccountRefDto"
          },
          "taxRateRef": {
            "$ref": "#/components/schemas/TaxRateRefDto"
          }
        }
      },
      "UpdateInventoryV2": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 30,
            "example": "GOL-W"
          },
          "type": {
            "type": "string",
            "enum": [
              "inventory",
              "nonInventory",
              "service"
            ],
            "example": "inventory"
          },
          "quantityOnHand": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuantityOnHandV2Dto"
            }
          },
          "name": {
            "type": "string",
            "example": "White golf balls.",
            "maxLength": 50
          },
          "invoiceItem": {
            "$ref": "#/components/schemas/InventoryBillInvoiceLineItemsV2"
          },
          "billItem": {
            "$ref": "#/components/schemas/InventoryBillInvoiceLineItemsV2"
          },
          "isBillItem": {
            "type": "boolean",
            "example": true
          },
          "isInvoiceItem": {
            "type": "boolean",
            "example": true
          },
          "subsidiaryRefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubsidiaryRefDto"
            }
          },
          "passThrough": {
            "type": "object",
            "example": {
              "CustomField": [
                {
                  "DefinitionId": "1",
                  "StringValue": "my custom value",
                  "Name": "Field One"
                }
              ]
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "UpdateInventoryV2Dto": {
        "type": "object",
        "properties": {
          "connectionUuid": {
            "type": "string",
            "description": "Unique connection identifier.",
            "example": "CON-396d5daa-26b2-4979-89b6-cafb2c298155"
          },
          "data": {
            "$ref": "#/components/schemas/UpdateInventoryV2"
          }
        },
        "required": [
          "connectionUuid",
          "data"
        ]
      },
      "UpdateInventoryV2ResponseDto": {
        "type": "object",
        "properties": {
          "connectionUuid": {
            "type": "string",
            "readOnly": true,
            "example": "CON-396d5daa-26b2-4979-89b6-cafb2c298155"
          },
          "businessName": {
            "type": "string",
            "readOnly": true,
            "example": "Railz"
          },
          "serviceName": {
            "type": "string",
            "readOnly": true,
            "example": "xero",
            "enum": [
              "freshbooks",
              "quickbooks",
              "quickbooksDesktop",
              "xero",
              "oracleNetsuite",
              "sageBusinessCloud",
              "sageIntacct",
              "dynamicsBusinessCentral",
              "dynamics365Finance",
              "wave",
              "myob",
              "zohoBooks",
              "byod"
            ]
          },
          "pushCommunicationId": {
            "type": "string",
            "readOnly": true,
            "example": "60473b57f0cdd1683ca71f60"
          },
          "requestedOn": {
            "type": "string",
            "readOnly": true,
            "example": "2021-03-09T08:15:22.035Z",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "example": "pending",
            "enum": [
              "success",
              "failed",
              "pending"
            ]
          },
          "data": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/UpdateInventoryV2"
              }
            ]
          }
        },
        "required": [
          "connectionUuid",
          "businessName",
          "serviceName",
          "pushCommunicationId",
          "requestedOn",
          "status",
          "data"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```