---
title: Sync Credit Types
slug: sync-credit-types
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "Smp8-oVbOIowB_B46Arcs",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/billing/credit-types:sync",
    "servers": [
      {
        "url": "https://api.nue.io/billing/credit-types:sync",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/billing/credit-types:sync",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Sync Credit Types",
    "description": "Sync credit types and pools between Salesforce and Nue.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "XykK0lYMS2uX-cWRdQmtq",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/billing/credit-types:sync \\\n     --header 'accept: application/json'"
        },
        {
          "id": "CKoWLec5Y5swgZdD3_rjR",
          "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: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/billing/credit-types:sync\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "4XQyD6pis8iqorDqiV-bW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/billing/credit-types:sync\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Ub8wXa5PhrsxSQB98dfbZ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/billing/credit-types:sync\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "XykK0lYMS2uX-cWRdQmtq"
    },
    "results": {
      "languages": [
        {
          "id": "sb4N_7INxnDIGS7qM7XUe",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "sb4N_7INxnDIGS7qM7XUe"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}