If you need to estimate the number of credits required to add a respondent, you can use this endpoint.
This endpoint is optional and serves informational purposes only. It provides an estimate of the credits required based on the selected quality scores.
DESDataPoints is optional and defaults to 0 if omitted.
Authorizations
api-key
string
header
required
Body
application/json
Request body for calculating the maximum number of credits needed for a respondent. Send exactly one of GQSDataPoints or GQSAnswers. Sending both returns 400.
🔒 Authentication: Requires a private API key. Public keys may only call addRespondent.
OESDataPoints
number
required
The number of data points to be used for the Open-Ended Score (OES).
⭕ Note: If no OES data points are available, this value can be set to 0.
TSDataPoints
number
required
The number of data points to be used for the Time Score (TS).
⭕ Note: If no TS data points are available, this value can be set to 0.
CHSAnswers
number
required
The number of data points to be used for the Coherence Score (CHS).
⭕ Note: If no CHS answers are available, this value can be set to 0.
BASDataPoints
number
required
The number of data points to be used for the Behavioral-Analytics Score (BAS).
⭕ Note: If no BAS data points are available, this value can be set to 0.
GQSDataPoints
number
The number of GQS data points to price. Modular: min(0.2 × n, 2). All-inclusive: min(0.2 × max(0, n − 5), 2). Send this or GQSAnswers, not both.
GQSAnswers
number
Legacy alias for GQS. Deprecated; prefer GQSDataPoints. Send this or GQSDataPoints, not both.
DESDataPoints
number
default:0
The number of data points to be used for the Duplicate Entrance Score (DES). Optional; defaults to 0 if omitted.
⭕ Note: If no DES data points are available, this value can be omitted or set to 0.
Response
When a request is successfully processed, the API returns a 200 OK status code along with the expected data.
success
enum<boolean>
A variable indicating whether the operation was successful.
Available options:
true,
false
message
string
A variable that human-readable message providing additional context or confirmation of the requested action.
results
object
This object serves as a container to hold the results for the requested data, encapsulating all relevant information and outputs in a structured format.
Show child attributes
Was this page helpful?
Calculate the maximum number of credits needed for a respondent
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Rep Data Documentation","colors":{"primary":"#9B31CF","light":"#9B31CF","dark":"#9B31CF"},"logo":{"light":"https://mintcdn.com/repdata/oPuIFCbtr5tUZERq/public/rep-data-logo-inline-light.png?fit=max\u0026auto=format\u0026n=oPuIFCbtr5tUZERq\u0026q=85\u0026s=82f5eeb30e8795397f8c2368e92e9bc1","dark":"https://mintcdn.com/repdata/M70fS1kJzi8uECBc/public/logo.svg?fit=max\u0026auto=format\u0026n=M70fS1kJzi8uECBc\u0026q=85\u0026s=17c7f815fad9b0adde887ba0f9f6c87a"},"favicon":"https://mintcdn.com/repdata/pylBvYgIEi2ZHBns/public/favicon.png?fit=max\u0026auto=format\u0026n=pylBvYgIEi2ZHBns\u0026q=85\u0026s=3d54ba9b8677d7b231163af74f4621ca","styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"repdata","hasAudioNarration":false,"actualSubdomain":"repdata","customDomains":["docs.repdata.com"],"gitSource":{"type":"github","owner":"repdata-team","repo":"product-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10bda99ffae5051c403b02"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0ea829de330cb387d81bcc","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"default","tag":"ReDem Application \u0026 API","count":53},{"language":"default","tag":"Research Desk","count":38},{"language":"default","tag":"Research Defender","count":34},{"language":"default","tag":"API Documentation","count":30},{"language":"default","tag":"Research Desk Supply API","count":30},{"language":"default","tag":"Integration Guide","count":29},{"language":"default","tag":"Research Desk Demand API","count":27},{"language":"default","tag":"v3 (Latest)","count":21},{"language":"default","tag":"Endpoints","count":21},{"language":"default","tag":"Overview","count":17}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"accordion#us-genpop-survey-request code-block{display:block;max-height:28rem;overflow-y:auto}:root{--rd-border-light: #64748b;--rd-border-strong: #475569}.dark{--rd-border-light: #94a3b8;--rd-border-strong: #cbd5e1}a.card{border-color:var(--rd-border-light)!important;border-width:1.5px!important;transition:border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease}a.card:hover{border-color:#16a34a!important;box-shadow:0 8px 24px -12px rgba(22, 163, 74, 0.35);transform:translateY(-2px)}div[class*=\"card-group\"],div[class*=\"CardGroup\"],.card-group,#card-group{border-color:transparent!important;background-color:transparent!important;box-shadow:none!important}div[class*=\"callout\"]{border-width:1.5px!important}table{border-color:var(--rd-border-strong)!important}table th,table td{border-color:var(--rd-border-light)!important}pre,code{border-color:var(--rd-border-light)!important}hr{border-color:var(--rd-border-strong)!important;border-top-width:1.5px!important}details,[class*=\"accordion\"]{border-color:var(--rd-border-light)!important}"}]}
{"page":{"pagePath":"redem/api-reference/endpoints/v3/creditCalculation","slug":"/redem/api-reference/endpoints/v3/creditCalculation","pageMetadata":{"title":"Credit Calculation","openapi":"POST /v3/creditCalculation","description":"API endpoint for calculating the required number of credits for a respondent.","href":"/redem/api-reference/endpoints/v3/creditCalculation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"API endpoint for calculating the required number of credits for a respondent.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`If you need to estimate the number of credits required to add a respondent, you can use this endpoint.`}),`\n`,_jsx(Note,{children:`This endpoint is optional and serves informational purposes only. It provides an estimate of the credits required based on the selected quality scores.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`DESDataPoints`}),` is optional and defaults to `,_jsx(_components.code,{children:`0`}),` if omitted.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Credit Calculation","openapi":"POST /v3/creditCalculation","description":"API endpoint for calculating the required number of credits for a respondent.","href":"/redem/api-reference/endpoints/v3/creditCalculation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Respondent"],"summary":"Calculate the maximum number of credits needed for a respondent","operationId":"creditCalculation","description":"API endpoint for calculating the required number of credits for a respondent.","requestBody":"b567528f-01d1-4870-9c24-e8122ab5cd56","responses":{"200":"66f7f4f8-0b9e-4ee0-9e2e-54b0cf30b79c","400":"2b024b0c-5ed4-4993-badb-cd06275e56f3"},"method":"post","type":"path","servers":["ea6b60dd-650e-474e-a85b-bbed7f604d3c"],"security":["3f7166cb-a618-453f-b86a-fd8208999641"],"path":"/v3/creditCalculation","baseUrlOptions":["https://api.redem.io"],"title":"Calculate the maximum number of credits needed for a respondent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for calculating the maximum number of credits needed for a respondent. Send exactly one of `GQSDataPoints` or `GQSAnswers`. Sending both returns 400.\n\n **🔒 Authentication:** Requires a **private** API key. Public keys may only call `addRespondent`.","required":["OESDataPoints","TSDataPoints","CHSAnswers","BASDataPoints"],"type":"object","properties":{"OESDataPoints":{"type":"number","description":"**The number of data points** to be used for the Open-Ended Score (OES). \n **⭕ Note:** If no OES data points are available, this value can be set to `0`.","isRequired":true,"uniqueKey":"OESDataPoints","typeLabel":"number"},"TSDataPoints":{"type":"number","description":"**The number of data points** to be used for the Time Score (TS). \n **⭕ Note:** If no TS data points are available, this value can be set to `0`.","isRequired":true,"uniqueKey":"TSDataPoints","typeLabel":"number"},"CHSAnswers":{"type":"number","description":"**The number of data points** to be used for the Coherence Score (CHS). \n **⭕ Note:** If no CHS answers are available, this value can be set to `0`.","isRequired":true,"uniqueKey":"CHSAnswers","typeLabel":"number"},"BASDataPoints":{"type":"number","description":"**The number of data points** to be used for the Behavioral-Analytics Score (BAS). \n **⭕ Note:** If no BAS data points are available, this value can be set to `0`.","isRequired":true,"uniqueKey":"BASDataPoints","typeLabel":"number"},"GQSDataPoints":{"type":"number","description":"**The number of GQS data points** to price. Modular: `min(0.2 × n, 2)`. All-inclusive: `min(0.2 × max(0, n − 5), 2)`. Send this or `GQSAnswers`, not both.","uniqueKey":"GQSDataPoints","typeLabel":"number"},"GQSAnswers":{"type":"number","description":"Legacy alias for GQS. Deprecated; prefer `GQSDataPoints`. Send this or `GQSDataPoints`, not both.","uniqueKey":"GQSAnswers","typeLabel":"number"},"DESDataPoints":{"type":"number","default":0,"description":"**The number of data points** to be used for the Duplicate Entrance Score (DES). Optional; defaults to `0` if omitted. \n **⭕ Note:** If no DES data points are available, this value can be omitted or set to `0`.","uniqueKey":"DESDataPoints","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"example":{"OESDataPoints":2,"GQSDataPoints":7,"TSDataPoints":2,"CHSAnswers":25,"BASDataPoints":2},"examples":{"Example":{"title":"Example","value":{"OESDataPoints":2,"GQSDataPoints":7,"TSDataPoints":2,"CHSAnswers":25,"BASDataPoints":2}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"66f7f4f8-0b9e-4ee0-9e2e-54b0cf30b79c":{"description":"When a request is successfully processed, the API returns a 200 OK status code along with the expected data.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"A variable indicating whether the **operation was successful**.","enum":[true,false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"message":{"type":"string","description":"A variable that **human-readable message** providing additional context or confirmation of the requested action.","uniqueKey":"message","typeLabel":"string"},"results":{"type":"object","description":"This object serves as a **container to hold the results for the requested data**, encapsulating all relevant information and outputs in a structured format.","properties":{"creditCalculation":{"description":"Detailed breakdown of the number of credits estimated for a respondent","type":"object","properties":{"OES":{"type":"object","description":"Detailed breakdown of the number of OES credits estimated for a respondent","properties":{"credits":{"type":"number","description":"Number of OES credits estimated for a respondent","uniqueKey":"results.creditCalculation.OES.credits","typeLabel":"number"},"dataPoints":{"type":"number","description":"Number of OES data points estimated for a respondent","uniqueKey":"results.creditCalculation.OES.dataPoints","typeLabel":"number"}},"uniqueKey":"results.creditCalculation.OES","typeLabel":"object"},"GQS":{"type":"object","description":"Detailed breakdown of the number of GQS credits estimated for a respondent","properties":{"credits":{"type":"number","description":"Number of GQS credits estimated for a respondent","uniqueKey":"results.creditCalculation.GQS.credits","typeLabel":"number"},"dataPoints":{"type":"number","description":"Number of GQS data points. Present when the request used `GQSDataPoints`.","uniqueKey":"results.creditCalculation.GQS.dataPoints","typeLabel":"number"},"answers":{"type":"number","description":"Echo of the request `GQSAnswers` value. Present when the request used `GQSAnswers`.","uniqueKey":"results.creditCalculation.GQS.answers","typeLabel":"number"}},"uniqueKey":"results.creditCalculation.GQS","typeLabel":"object"},"TS":{"type":"object","description":"Detailed breakdown of the number of TS credits estimated for a respondent","properties":{"credits":{"type":"number","description":"Number of TS credits estimated for a respondent","uniqueKey":"results.creditCalculation.TS.credits","typeLabel":"number"},"dataPoints":{"type":"number","description":"Number of TS data points estimated for a respondent","uniqueKey":"results.creditCalculation.TS.dataPoints","typeLabel":"number"}},"uniqueKey":"results.creditCalculation.TS","typeLabel":"object"},"CHS":{"type":"object","description":"Detailed breakdown of the number of CHS credits estimated for a respondent","properties":{"credits":{"type":"number","description":"Number of CHS credits estimated for a respondent","uniqueKey":"results.creditCalculation.CHS.credits","typeLabel":"number"},"answers":{"type":"number","description":"Number of CHS interviews estimated for a respondent","uniqueKey":"results.creditCalculation.CHS.answers","typeLabel":"number"}},"uniqueKey":"results.creditCalculation.CHS","typeLabel":"object"},"BAS":{"type":"object","description":"Detailed breakdown of the number of BAS credits estimated for a respondent","properties":{"credits":{"type":"number","description":"Number of BAS credits estimated for a respondent","uniqueKey":"results.creditCalculation.BAS.credits","typeLabel":"number"},"answers":{"type":"number","description":"Number of BAS data points estimated for a respondent","uniqueKey":"results.creditCalculation.BAS.answers","typeLabel":"number"}},"uniqueKey":"results.creditCalculation.BAS","typeLabel":"object"},"DES":{"type":"object","description":"Detailed breakdown of the number of DES credits estimated for a respondent","properties":{"credits":{"type":"number","description":"Number of DES credits estimated for a respondent","uniqueKey":"results.creditCalculation.DES.credits","typeLabel":"number"},"dataPoints":{"type":"number","description":"Number of DES data points estimated for a respondent","uniqueKey":"results.creditCalculation.DES.dataPoints","typeLabel":"number"}},"uniqueKey":"results.creditCalculation.DES","typeLabel":"object"}},"uniqueKey":"results.creditCalculation","typeLabel":"object"}},"uniqueKey":"results","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"message":"Credit calculation successfully retrieved","results":{"creditCalculation":{"totalCredits":12,"calculationBreakdown":{"OES":{"credits":4,"dataPoints":2},"GQS":{"credits":1.4,"dataPoints":7},"TS":{"credits":1,"dataPoints":2},"CHS":{"credits":4,"answers":25},"BAS":{"credits":4,"dataPoints":2}}}}},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Credit calculation successfully retrieved","results":{"creditCalculation":{"totalCredits":12,"calculationBreakdown":{"OES":{"credits":4,"dataPoints":2},"GQS":{"credits":1.4,"dataPoints":7},"TS":{"credits":1,"dataPoints":2},"CHS":{"credits":4,"answers":25},"BAS":{"credits":4,"dataPoints":2}}}}}}},"exampleType":"examples"}},"exampleType":"examples"},"2b024b0c-5ed4-4993-badb-cd06275e56f3":{"description":"When a request fails due to invalid input or other errors, the API returns a 400 Bad Request status code. The response includes a descriptive `message` explaining the issue and an `error` object containing additional details to aid in diagnosing and resolving the problem.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Validation Error","description":"Indicating a validation failure, the response includes a `message` field specifying the issue and an `errors` object listing the missing or incorrect fields to help clients resolve them. \n\n **⭕ Note:** Refer to the [response structure](/api-reference/api-specifications/response-structure) for the format of the error response.","uniqueKey":"oneOf.0","typeLabel":"Validation Error · object"},{"type":"object","title":"Failed to calculate credits","description":"This error occurs when the **system fails to calculate the credits**. \n\n **⭕ Note:** Refer to the [response structure](/api-reference/api-specifications/response-structure) for the format of the error response.","uniqueKey":"oneOf.1","typeLabel":"Failed to calculate credits · object"}],"uniqueKey":"","typeLabel":"Validation Error · object | Failed to calculate credits · object"},"examples":{"Validation Error":{"title":"Validation Error","value":{"success":false,"message":"Validation Error","errors":{"0":"\"OESDataPoints\" is required","1":"\"value\" must contain at least one of [GQSAnswers, GQSDataPoints]","2":"\"TSDataPoints\" is required","3":"\"CHSAnswers\" is required","4":"\"BASDataPoints\" is required"}}},"Failed to calculate credits":{"title":"Failed to calculate credits","value":{"success":false,"message":"Failed to calculate credits","errors":{}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3f7166cb-a618-453f-b86a-fd8208999641":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"api-key","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"ea6b60dd-650e-474e-a85b-bbed7f604d3c":{"url":"https://api.redem.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"api-key","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"redem/openapi.json"},"subdomain":"repdata","siteName":"Rep Data Documentation","title":"Credit Calculation - Rep Data Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T10:58:03.012Z","originalFileLocation":"redem/api-reference/endpoints/v3/creditCalculation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"API endpoint for calculating the required number of credits for a respondent.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rep Data Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Credit Calculation - Rep Data Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"API endpoint for calculating the required number of credits for a respondent.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rep Data Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://repdata.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Credit+Calculation\u0026amp;description=API+endpoint+for+calculating+the+required+number+of+credits+for+a+respondent.\u0026amp;theme=fc0818212b70ef127e987125\u0026amp;signature=9b597762172c2438ae635a1da8777a61cc387a8dfa088332d8085661e64f1b33\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Credit Calculation - Rep Data Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"API endpoint for calculating the required number of credits for a respondent.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://repdata.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Credit+Calculation\u0026amp;description=API+endpoint+for+calculating+the+required+number+of+credits+for+a+respondent.\u0026amp;theme=fc0818212b70ef127e987125\u0026amp;signature=9b597762172c2438ae635a1da8777a61cc387a8dfa088332d8085661e64f1b33\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/repdata/awZMcsoe6C3Qodff/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rep Data Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9B31CF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/redem/api-reference/endpoints/v3/creditCalculation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.repdata.com/#organization\",\"name\":\"Rep Data Documentation\",\"url\":\"https://docs.repdata.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/repdata/oPuIFCbtr5tUZERq/public/rep-data-logo-inline-light.png?fit=max\u0026auto=format\u0026n=oPuIFCbtr5tUZERq\u0026q=85\u0026s=82f5eeb30e8795397f8c2368e92e9bc1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.repdata.com#website\",\"name\":\"Rep Data Documentation\",\"url\":\"https://docs.repdata.com\",\"publisher\":{\"@id\":\"https://docs.repdata.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation#webpage\",\"url\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation\",\"name\":\"Credit Calculation\",\"description\":\"API endpoint for calculating the required number of credits for a respondent.\",\"dateModified\":\"2026-12-01T10:58:03.012Z\",\"isPartOf\":{\"@id\":\"https://docs.repdata.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/addRespondent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Credit Calculation\",\"item\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation#apireference\",\"headline\":\"Credit Calculation\",\"name\":\"Credit Calculation\",\"description\":\"API endpoint for calculating the required number of credits for a respondent.\",\"url\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.repdata.com/redem/api-reference/endpoints/v3/creditCalculation#webpage\"},\"dateModified\":\"2026-12-01T10:58:03.012Z\",\"publisher\":{\"@id\":\"https://docs.repdata.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.repdata.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rep Data Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Rep Data Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/redem/api-reference/endpoints/v3/creditCalculation.md","siteName":"Rep Data Documentation","nav":{"global":null,"products":[{"product":"Home","icon":"house","description":"Rep Data documentation hub","pages":[{"title":"Home","href":""}]},{"product":"Research Desk","icon":"desktop","description":"Self-serve sampling platform","pages":[{"title":"Research Desk","href":"/research-desk"}]},{"product":"Research Desk Demand API","icon":"code","description":"Create projects, surveys, and manage respondents","pages":[{"title":"Research Desk Demand API","href":"/demand"}]},{"product":"Research Desk MCP","icon":"plug","description":"Connect an AI assistant to Research Desk","pages":[{"title":"Research Desk MCP","href":"/mcp/getting-started"}]},{"product":"Research Desk Supply API","icon":"server","description":"Survey streams, redirects, and reconciliation","pages":[{"title":"Research Desk Supply API","href":"/supply"}]},{"product":"SightX","icon":"chart-pie","description":"User guides and knowledge base for the SightX application.","pages":[{"title":"SightX","href":"/sightx/knowledge-base"}]},{"product":"SightX API","icon":"chart-mixed","description":"Watch this space for new documentation","pages":[{"title":"SightX API","href":"/coming-soon/sightx-api"}]},{"product":"Research Defender","icon":"shield-halved","description":"Fraud detection and respondent quality scoring","pages":[{"title":"Research Defender","href":"/research-defender"}]},{"product":"ReDem Application \u0026 API","icon":"broom-wide","description":"Data quality analytics and cleaning for survey data","tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/redem/welcome"}]},{"tab":"Knowledge Base","pages":[{"title":"Knowledge Base","href":"/redem/knowledge-base/quality-checks/redem-score"}]},{"tab":"API Documentation","dropdowns":[{"dropdown":"v3 (Latest)","icon":"code","groups":[{"group":"Introduction","pages":[{"title":"Introduction","icon":"book-open","iconType":"regular","href":"/redem/api-reference/introduction"},{"title":"Synchronous Response","icon":"arrow-up-arrow-down","iconType":"regular","href":"/redem/api-reference/sync-response"},{"title":"Asynchronous Response","icon":"arrows-rotate","iconType":"regular","href":"/redem/api-reference/async-response"}]},{"group":"API Specifications","pages":[{"title":"API Keys","icon":"key","iconType":"regular","href":"/redem/api-reference/api-keys"},{"title":"Rate Limits","icon":"clock","iconType":"regular","href":"/redem/api-reference/rate-limits"},{"title":"Response Structure","icon":"brackets-curly","iconType":"regular","href":"/redem/api-reference/response-structure"},{"title":"Structuring Surveys Responses for ReDem Compatibility","icon":"lightbulb","iconType":"regular","href":"/redem/api-reference/structuring-survey-responses"}]},{"group":"Endpoints","pages":[{"title":"Add Respondent","openapi":"POST /v3/addRespondent","href":"/redem/api-reference/endpoints/v3/addRespondent"},{"title":"Get Respondent","openapi":"POST /v3/getRespondent","href":"/redem/api-reference/endpoints/v3/getRespondent"},{"title":"Get All Respondents","openapi":"POST /v3/getAllRespondents","description":"Retrieve all respondents for a survey.","href":"/redem/api-reference/endpoints/v3/getAllRespondents"},{"title":"Credit Calculation","openapi":"POST /v3/creditCalculation","href":"/redem/api-reference/endpoints/v3/creditCalculation"},{"title":"Recalculate Respondents","openapi":"POST /v3/recalculateRespondents","description":"This endpoint allows you to recalculate specific quality checks for a list of respondents within a given survey. It is useful for re-running checks with updated parameters or if they were skipped previously. Note that this operation requires the survey to be created with API version v3 and after the feature release date (2025-12-02).","href":"/redem/api-reference/endpoints/v3/recalculateRespondents"},{"title":"Update Respondents Excluded Status","openapi":"POST /v3/updateRespondentsExcludedStatus","href":"/redem/api-reference/endpoints/v3/updateRespondentsExcludedStatus"},{"title":"Delete Respondents","openapi":"POST /v3/deleteRespondents","href":"/redem/api-reference/endpoints/v3/deleteRespondents"},{"title":"Delete Surveys","openapi":"POST /v3/deleteSurveys","href":"/redem/api-reference/endpoints/v3/deleteSurveys"},{"title":"Restart Survey","openapi":"redem/openapi.json POST /v3/restartSurvey","href":"/redem/api-reference/endpoints/v3/restart-survey"},{"title":"Stop Survey","openapi":"redem/openapi.json POST /v3/stopSurvey","href":"/redem/api-reference/endpoints/v3/stop-survey"},{"title":"Change Cleaning Settings","openapi":"POST /v3/changeCleaningSettings","href":"/redem/api-reference/endpoints/v3/changeCleaningSettings"},{"title":"Quality Check Suggestions","openapi":"POST /v3/qualityCheckSuggestions","href":"/redem/api-reference/endpoints/v3/qualityCheckSuggestions"}]},{"group":"Advanced","pages":[{"title":"Behavior Tracking","icon":"eye","iconType":"regular","href":"/redem/api-reference/behavior-tracking"},{"title":"API Version Migration Guide","icon":"arrow-right-arrow-left","iconType":"regular","href":"/redem/api-reference/migration-guide"}]}]},{"dropdown":"v2","icon":"code","groups":[{"group":"Endpoints","pages":[{"title":"Add Respondent","openapi":"POST /v2/addRespondent","href":"/redem/api-reference/endpoints/v2/addRespondent"},{"title":"Get Respondent","openapi":"POST /v2/getRespondent","href":"/redem/api-reference/endpoints/v2/getRespondent"},{"title":"Get All Respondents","openapi":"POST /v2/getAllRespondents","href":"/redem/api-reference/endpoints/v2/getAllRespondents"},{"title":"Credit Calculation","openapi":"POST /v2/creditCalculation","href":"/redem/api-reference/endpoints/v2/creditCalculation"},{"title":"Update Respondents Excluded Status","openapi":"POST /v2/updateRespondentsExcludedStatus","href":"/redem/api-reference/endpoints/v2/updateRespondentsExcludedStatus"},{"title":"Delete Respondents","openapi":"POST /v2/deleteRespondents","href":"/redem/api-reference/endpoints/v2/deleteRespondents"},{"title":"Delete Surveys","openapi":"POST /v2/deleteSurveys","href":"/redem/api-reference/endpoints/v2/deleteSurveys"},{"title":"Restart Survey","openapi":"redem/openapi.json POST /v2/restartSurvey","href":"/redem/api-reference/endpoints/v2/restart-survey"},{"title":"Stop Survey","openapi":"redem/openapi.json POST /v2/stopSurvey","href":"/redem/api-reference/endpoints/v2/stop-survey"}]}]}]},{"tab":"Status","href":"https://redem.instatus.com/"}]},{"product":"SightX Application \u0026 API","hidden":true,"pages":[{"title":"SightX Application \u0026 API","href":"/sightx"}]},{"product":"SightX Application","hidden":true,"pages":[{"title":"SightX Application","href":"/sightx/knowledge-base"}]}]},"basePath":"","title":"Credit Calculation - Rep Data Documentation","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-D6KNClEF.js","snippetPresets-CN44Lskf.js","utils-DugrcZMa.js","style-to-object-BY3JEAdk.js","utils-Cc3Z-gDc.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Ca3zz9z4.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D-iUE9nI.js","_Uint8Array-BHx8QAcS.js","isObject-FP1Yky1u.js","Page-LmYeW6Qw.js","api-description-markdown-CtLxKAvr.js","DynamicMarkdown-oxDihwef.js","CodeSnippet-Dal3UuOY.js","use-playground-group-access-gaOBzvE6.js","SectionHeading-Ksc-LLuU.js","ApiExamples-BNOMQHyZ.js","usePlaygroundInputsStore-w4dOiRHH.js","shallow-CPx44l9K.js","isEqual--ENmxjZX.js","CodeSnippets-BLcxds8m.js","MethodPill-Bf9L2jiF.js","getPastedJson-fbqO7msq.js","Check2Icon-Dfmbq_mm.js","axios-CsQoIw0U.js","Markdown-DtaCZrgp.js","AssistantPageLink-BwrhZg5d.js","dist-BOBeilfN.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}