---
title: Customer Transaction Hub Data
slug: customer-transaction-hub-data
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "reKOl_NlXMVCbll5eA4ER",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.nue.io/customers/{customerId}/transactionHubData",
    "servers": [
      {
        "url": "https://api.nue.io/customers/{customerId}/transactionHubData",
        "description": "**Production Environment** - Live production server for all customer-facing operations. Use this for production integrations with real customer data and transactions."
      },
      {
        "url": "https://api.sandbox.nue.io/customers/{customerId}/transactionHubData",
        "description": "**Sandbox Environment** - Safe testing environment with sample data for development and integration testing. No rate limits apply. Data is reset weekly. Perfect for prototyping and QA testing."
      }
    ],
    "name": "Customer Transaction Hub Data",
    "description": "Retrieves transaction hub data for a specific customer.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "customerId",
          "type": "string",
          "description": "ID of the customer to retrieve transaction hub data for"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "ApiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful response",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "Indicates the overall status of the request"
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": [
                  {
                    "name": "customerId",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the customer"
                  },
                  {
                    "name": "transactionDetails",
                    "kind": "optional",
                    "type": "array",
                    "description": "List of transactions for the customer",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "transactionId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Unique identifier for the transaction"
                      },
                      {
                        "name": "date",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "Date and time of the transaction",
                        "format": "date-time"
                      },
                      {
                        "name": "amount",
                        "kind": "optional",
                        "type": "number",
                        "description": "Transaction amount"
                      },
                      {
                        "name": "description",
                        "kind": "optional",
                        "type": "string",
                        "description": "Description of the transaction"
                      },
                      {
                        "name": "status",
                        "kind": "optional",
                        "type": "string",
                        "description": "Status of the transaction"
                      },
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Type of transaction"
                      }
                    ]
                  },
                  {
                    "name": "summary",
                    "kind": "optional",
                    "type": "object",
                    "description": "Summary of all transactions",
                    "example": "",
                    "schema": [
                      {
                        "name": "totalTransactions",
                        "kind": "optional",
                        "type": "integer",
                        "description": "Total number of transactions"
                      },
                      {
                        "name": "totalAmount",
                        "kind": "optional",
                        "type": "number",
                        "description": "Total amount of all transactions"
                      },
                      {
                        "name": "lastTransactionDate",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "Date and time of the last transaction",
                        "format": "date-time"
                      }
                    ]
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>Bad Request - The request was malformed or contained invalid parameters</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized - Authentication information is missing or invalid</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "<p>Not Found - The requested customer was not found</p>",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "yD3AFh76HYsPdYp_EiOBG",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.nue.io/customers/{customerId}/transactionHubData \\\n     --header 'accept: application/json'"
        },
        {
          "id": "2K1-SemXi5ZQN769QstNQ",
          "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: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/customers/{customerId}/transactionHubData\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "wj2OD3urmDnWHsKGSEmY5",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/customers/{customerId}/transactionHubData\")\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\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "fcsomwh1WfkIkZL7zaaj8",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/customers/{customerId}/transactionHubData\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "yD3AFh76HYsPdYp_EiOBG"
    },
    "results": {
      "languages": [
        {
          "id": "QKkBMDv9hNwhOcG4cRaih",
          "language": "200",
          "code": "// Successful response\n{\n  \"status\": \"\",\n  \"data\": {\n    \"customerId\": \"\",\n    \"transactionDetails\": [\n      {\n        \"transactionId\": \"\",\n        \"date\": \"\",\n        \"amount\": 0,\n        \"description\": \"\",\n        \"status\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"summary\": {\n      \"totalTransactions\": 0,\n      \"totalAmount\": 0,\n      \"lastTransactionDate\": \"\"\n    }\n  }\n}"
        },
        {
          "id": "J76S87MX3jMAhnTLxkov1",
          "language": "400",
          "code": "// Bad Request - The request was malformed or contained invalid parameters\n"
        },
        {
          "id": "VXbgGALx9OywQd41Ztk17",
          "language": "401",
          "code": "// Unauthorized - Authentication information is missing or invalid\n"
        },
        {
          "id": "dph-B7nbgfvY7Lgilbg6q",
          "language": "404",
          "code": "// Not Found - The requested customer was not found\n"
        }
      ],
      "selectedLanguageId": "QKkBMDv9hNwhOcG4cRaih"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}