---
title: Fetch Customer Credit Memos
slug: fetch-customer-credit-memos
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "Z7m3g7mqkEZP5ui0yFhHW",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.nue.io/customers/{customerId}/credit-memos",
    "servers": [
      {
        "url": "https://api.nue.io/customers/{customerId}/credit-memos",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/customers/{customerId}/credit-memos",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Fetch Customer Credit Memos",
    "description": "<p>Warning: Deprecated\nRetrieve all credit memos for a specific customer with filtering, pagination, and data enrichment options.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "customerId",
          "type": "string",
          "description": "<p>Customer ID (internal or external)</p>"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        },
        {
          "kind": "required",
          "name": "nue-api-key",
          "type": "string",
          "description": "API key for authentication"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "page",
          "type": "integer",
          "description": "Page number for pagination",
          "default": 1,
          "minimum": 1
        },
        {
          "kind": "optional",
          "name": "limit",
          "type": "integer",
          "description": "Number of records per page",
          "default": 100,
          "minimum": 1,
          "maximum": 500
        },
        {
          "kind": "optional",
          "name": "paymentStatus",
          "type": "string",
          "description": "Filter by payment status",
          "enum": [
            "NotTransferred",
            "Transferred",
            "Applied",
            "PartiallyApplied"
          ]
        },
        {
          "kind": "optional",
          "name": "includes",
          "type": "string",
          "description": "Include related data",
          "enum": [
            "assets",
            "orders"
          ]
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successfully retrieved customer credit memos",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "pagination",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": []
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "deprecated": true,
    "examples": {
      "languages": [
        {
          "id": "Z49pHg4ZhJ2i6iYuuiIQd",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://api.nue.io/customers/{customerId}/credit-memos?page=1&limit=100' \\\n     --header 'accept: application/json' \\\n     --header 'nue-api-key: string'"
        },
        {
          "id": "MqA9L_mzCk2X9Qu0V5kkn",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"nue-api-key\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/customers/{customerId}/credit-memos?page=1&limit=100\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "i9eqoSOZUQcFhxaIZPHML",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/customers/{customerId}/credit-memos?page=1&limit=100\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"nue-api-key\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "s64hnOCGnhL7XAuEb3gMC",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/customers/{customerId}/credit-memos?page=1&limit=100\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'nue-api-key': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "Z49pHg4ZhJ2i6iYuuiIQd"
    },
    "results": {
      "languages": [
        {
          "id": "hOJCnADX969N7PW2KXNkY",
          "language": "200",
          "code": "// Successfully retrieved customer credit memos\n{\n  \"status\": \"\",\n  \"data\": [\n    {}\n  ],\n  \"pagination\": {}\n}"
        }
      ],
      "selectedLanguageId": "hOJCnADX969N7PW2KXNkY"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}