---
title: Patch an Invoice Item Detail
slug: patch-an-invoice-item-detail
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "OXIs3PBcSqB6IthymVwku",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://api.nue.io/billing/invoice-item-details/{invoiceItemDetailId}",
    "servers": [
      {
        "url": "https://api.nue.io/billing/invoice-item-details/{invoiceItemDetailId}",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/billing/invoice-item-details/{invoiceItemDetailId}",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Patch an Invoice Item Detail",
    "description": "<p>Patch an invoice item detail for updating custom fields and certain non-monetary fields on invoice item details, with full synchronization to Salesforce.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "invoiceItemDetailId",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json",
            "*/*"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "example": "{\"fieldA\":\"valueA\",\"fieldB\":123,\"fieldC\":true}",
          "description": "<p>A flexible data model for updating billing entities. This request is a map of key-value pairs, where the key is the field API name and the value is the updated value. All keys and value types must conform to the object’s metadata schema. Refer to the Object Metadata API for details.</p>",
          "customType": "map<string, object>",
          "schema": [],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "default response",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// default response\n{\n  \"status\": \"\",\n  \"failures\": [\n    {\n      \"entity\": {},\n      \"error\": \"\"\n    }\n  ],\n  \"recordsToUpdate\": \"\",\n  \"recordsUpdated\": \"\"\n}"
          },
          {
            "label": "Update Invoice Item Details Response",
            "code": "{\n  \"status\": \"SUCCESS\",\n  \"failures\": null,\n  \"recordsToUpdate\": 1,\n  \"recordsUpdated\": 1\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "UpdateBillingModelResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string<FAILURE | SUCCESS | PARTIAL_SUCCESS>",
                "description": "",
                "enum": [
                  "FAILURE",
                  "SUCCESS",
                  "PARTIAL_SUCCESS"
                ]
              },
              {
                "name": "failures",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/Failure",
                "customType": "Failure[]",
                "schema": [
                  {
                    "name": "entity",
                    "kind": "optional",
                    "type": "object",
                    "description": "",
                    "example": "",
                    "schema": []
                  },
                  {
                    "name": "error",
                    "kind": "optional",
                    "type": "string",
                    "description": ""
                  }
                ]
              },
              {
                "name": "recordsToUpdate",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "format": "int32"
              },
              {
                "name": "recordsUpdated",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "",
                "format": "int32"
              }
            ],
            "modelRef": "#/components/schemas/UpdateBillingModelResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "title",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": ""
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "6gRwsaKr7K9xQ-Ie_rly3",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url https://api.nue.io/billing/invoice-item-details/{invoiceItemDetailId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "wa-WtrZ8jyd7o1_7WrCyi",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/billing/invoice-item-details/{invoiceItemDetailId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "hRAG6Q7UFubdD55WKfC3x",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/billing/invoice-item-details/{invoiceItemDetailId}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "YYiHL8nJxQaHuzChq58Rt",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"https://api.nue.io/billing/invoice-item-details/{invoiceItemDetailId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "6gRwsaKr7K9xQ-Ie_rly3"
    },
    "results": {
      "languages": [
        {
          "id": "H4bcK4IN6kGrEQ8mNM6Ca",
          "language": "200",
          "code": "// default response\n{\n  \"status\": \"\",\n  \"failures\": [\n    {\n      \"entity\": {},\n      \"error\": \"\"\n    }\n  ],\n  \"recordsToUpdate\": \"\",\n  \"recordsUpdated\": \"\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// default response\n{\n  \"status\": \"\",\n  \"failures\": [\n    {\n      \"entity\": {},\n      \"error\": \"\"\n    }\n  ],\n  \"recordsToUpdate\": \"\",\n  \"recordsUpdated\": \"\"\n}"
            },
            {
              "label": "Update Invoice Item Details Response",
              "code": "{\n  \"status\": \"SUCCESS\",\n  \"failures\": null,\n  \"recordsToUpdate\": 1,\n  \"recordsUpdated\": 1\n}"
            }
          ]
        },
        {
          "id": "uV5Aj0at_GT2lJjLqEl8Q",
          "language": "400",
          "code": "// Bad Request\n{\n  \"title\": \"\",\n  \"message\": \"\",\n  \"errorCode\": \"\"\n}"
        },
        {
          "id": "ssIS2SMHMquUdKphkzUwM",
          "language": "404",
          "code": "// Not Found\n"
        }
      ],
      "selectedLanguageId": "H4bcK4IN6kGrEQ8mNM6Ca"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}