---
title: Patch Credit Memo Item Details
slug: patch-credit-memo-item-details
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "IRDyb4dlM05Xe3EmRAONY",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://api.nue.io/billing/credit-memo-item-details",
    "servers": [
      {
        "url": "https://api.nue.io/billing/credit-memo-item-details",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/billing/credit-memo-item-details",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Patch Credit Memo Item Details",
    "description": "<p>Patch a list of credit memo item details for updating custom fields and certain non-monetary fields on Credit Memo Item Details, with full synchronization to Salesforce.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "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": "array",
          "example": "{\"id\":\"UUID\",\"custom_fieldA\":\"valueA\",\"custom_fieldB\":123,\"custom_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>",
          "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 Credit Memo 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": "PJrHaIwUFBzGkNxvzNRRU",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url https://api.nue.io/billing/credit-memo-item-details \\\n     --header 'accept: application/json'"
        },
        {
          "id": "wQOJuIAfKmdr1QuADJZ6f",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/billing/credit-memo-item-details\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "p2-2QGGYJgxJ0FYbHTMo2",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/billing/credit-memo-item-details\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "QCL59p5n3Vk9vCQCicwgK",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/billing/credit-memo-item-details\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "PJrHaIwUFBzGkNxvzNRRU"
    },
    "results": {
      "languages": [
        {
          "id": "EouK9LiaCJxmgA_m0yedj",
          "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 Credit Memo Item Details Response",
              "code": "{\n  \"status\": \"SUCCESS\",\n  \"failures\": null,\n  \"recordsToUpdate\": 1,\n  \"recordsUpdated\": 1\n}"
            }
          ]
        },
        {
          "id": "53q9dj1Wo4wuTOg1tNsHh",
          "language": "400",
          "code": "// Bad Request\n{\n  \"title\": \"\",\n  \"message\": \"\",\n  \"errorCode\": \"\"\n}"
        },
        {
          "id": "_t6OB0gxdE6uKNELVcyUg",
          "language": "404",
          "code": "// Not Found\n"
        }
      ],
      "selectedLanguageId": "EouK9LiaCJxmgA_m0yedj"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}