---
title: List Available Source Objects
slug: list-available-source-objects
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "tKrP0ms4xMOR5Ex7vO298",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.nue.io/v1/stripe/metadata-mapping/sourceObjects",
    "servers": [
      {
        "url": "https://api.nue.io/v1/stripe/metadata-mapping/sourceObjects",
        "description": "Nue API Production URL"
      },
      {
        "url": "https://api.sandbox.nue.io/v1/stripe/metadata-mapping/sourceObjects",
        "description": "Nue Sandbox API Server"
      }
    ],
    "name": "List Available Source Objects",
    "description": "Retrieve a list of Nue objects that can provide data for metadata mapping. These are the source objects from which data can be mapped to Stripe.",
    "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": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successfully retrieved source objects",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Successfully retrieved source objects\n[\n  \"\"\n]"
          },
          {
            "label": "Available Source Objects",
            "code": "[\n  \"Customer\",\n  \"Order\"\n]"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "example": "[\"Customer\",\"Order\"]",
            "description": "",
            "schema": [],
            "itemType": "string",
            "customType": "string[]",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized - Invalid or missing API key</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "error",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "",
                "schema": [
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "Error code",
                    "example": "VALIDATION_ERROR"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Human-readable error message</p>",
                    "example": "Invalid mapping configuration"
                  },
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "Additional error details",
                    "example": "[\"Target field 'oid' is read-only\"]",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "Ww2PoZCsPnqhOS5LVs-aB",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.nue.io/v1/stripe/metadata-mapping/sourceObjects \\\n     --header 'accept: application/json'"
        },
        {
          "id": "95U4AAYZ6H5hCk_VZLY_I",
          "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/v1/stripe/metadata-mapping/sourceObjects\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "mdoT2aRmdNuhlW7HPpadH",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/v1/stripe/metadata-mapping/sourceObjects\")\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": "lbOE9qir9MK54a81Rpw6Z",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/v1/stripe/metadata-mapping/sourceObjects\"\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": "Ww2PoZCsPnqhOS5LVs-aB"
    },
    "results": {
      "languages": [
        {
          "id": "qSugkgwI0Sjdc1o8Qy9Qt",
          "language": "200",
          "code": "// Successfully retrieved source objects\n[\n  \"\"\n]",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Successfully retrieved source objects\n[\n  \"\"\n]"
            },
            {
              "label": "Available Source Objects",
              "code": "[\n  \"Customer\",\n  \"Order\"\n]"
            }
          ]
        },
        {
          "id": "P_hAsyJxh1lr2pn_ivQYh",
          "language": "401",
          "code": "// Unauthorized - Invalid or missing API key\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"Invalid mapping configuration\",\n    \"details\": [\n      \"\"\n    ]\n  }\n}"
        }
      ],
      "selectedLanguageId": "qSugkgwI0Sjdc1o8Qy9Qt"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}