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
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ReDem Documentation","colors":{"primary":"#00a181","light":"#00a181","dark":"#00a181"},"logo":{"light":"https://mintcdn.com/redemgmbh/MbMZseQqK5DPUXC1/logo/ReDem-Logo-Light.png?fit=max\u0026auto=format\u0026n=MbMZseQqK5DPUXC1\u0026q=85\u0026s=6963f0c326adde403b805b6012c73c5d","dark":"https://mintcdn.com/redemgmbh/MbMZseQqK5DPUXC1/logo/ReDem-Logo-Dark.png?fit=max\u0026auto=format\u0026n=MbMZseQqK5DPUXC1\u0026q=85\u0026s=a5d5855c82b244a06b46fe52533ff988","href":"https://docs.redem.io/"},"favicon":"https://mintcdn.com/redemgmbh/JhRzQ1wyf4VQmVNq/ReDem-Fav-Icon.png?fit=max\u0026auto=format\u0026n=JhRzQ1wyf4VQmVNq\u0026q=85\u0026s=6df9604205f50179709e31a224cd6a3b","background":{"color":{"dark":"#061836"}},"navbar":{"links":[{"href":"mailto:support@redem.io","label":"Support"}],"primary":{"type":"button","label":"Login","href":"https://app.redem.io/"}},"seo":{"metatags":{"robots":"noindex"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"redemgmbh","hasAudioNarration":false,"actualSubdomain":"redemgmbh","customDomains":["docs.redem.io"],"gitSource":{"type":"github","owner":"redemoc","repo":"redem-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af6da5f23024a424fe5cd97","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Documentation","count":31},{"language":"default","tag":"Endpoints","count":21},{"language":"default","tag":"Knowledge Base","count":13},{"language":"default","tag":"User Guide","count":9},{"language":"default","tag":"Quality Checks","count":7},{"language":"default","tag":"How to integrate","count":4},{"language":"default","tag":"Others","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"API Specifications","count":3},{"language":"default","tag":"Core Features","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img.nav-logo{margin-top:10px;height:44px!important;width:auto!important}"}],"page":{"pagePath":"api-reference/endpoints/v3/creditCalculation","slug":"/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":"/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":"/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":"db794455-d545-4264-85ef-5a515966500b","responses":{"200":"033c3517-84a7-42b4-bf1d-66386af1a522","400":"277f6fb3-902c-4a60-9b5d-204e7e657b9f"},"method":"post","type":"path","servers":["da42eddd-ff63-473c-b12e-0d6f8ff0898e"],"security":["246c2102-4212-43ad-867f-0a7d1b1a3113"],"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":{"033c3517-84a7-42b4-bf1d-66386af1a522":{"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"},"277f6fb3-902c-4a60-9b5d-204e7e657b9f":{"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":{"246c2102-4212-43ad-867f-0a7d1b1a3113":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"api-key","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"da42eddd-ff63-473c-b12e-0d6f8ff0898e":{"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":"api-reference/openapi.json"},"subdomain":"redemgmbh","siteName":"ReDem Documentation","title":"Credit Calculation - ReDem Documentation","navMaps":{"firstHrefInVersion":{"v3":{"href":"/api-reference/endpoints/v3/creditCalculation","matchLevel":0},"v2":{"href":"/api-reference/endpoints/v2/creditCalculation","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-08-13T08:37:56.401Z","originalFileLocation":"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=\"ReDem Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_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/redemgmbh/TMtX1JNYtVvRL_24/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Credit Calculation - ReDem 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=\"ReDem Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://redemgmbh.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=028b1f037927d654d7a5f9e4\u0026amp;signature=54d35eb5a8bbcf53cab617c460fcde29b9cea56c37ceb21f97537530bac906a9\">\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 - ReDem 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://redemgmbh.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=028b1f037927d654d7a5f9e4\u0026amp;signature=54d35eb5a8bbcf53cab617c460fcde29b9cea56c37ceb21f97537530bac906a9\">\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/redemgmbh/TMtX1JNYtVvRL_24/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ReDem Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00a181\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.redem.io/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=\"/api-reference/endpoints/v3/creditCalculation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.redem.io/#organization\",\"name\":\"ReDem Documentation\",\"url\":\"https://docs.redem.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/redemgmbh/MbMZseQqK5DPUXC1/logo/ReDem-Logo-Light.png?fit=max\u0026auto=format\u0026n=MbMZseQqK5DPUXC1\u0026q=85\u0026s=6963f0c326adde403b805b6012c73c5d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.redem.io#website\",\"name\":\"ReDem Documentation\",\"url\":\"https://docs.redem.io\",\"publisher\":{\"@id\":\"https://docs.redem.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation#webpage\",\"url\":\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation\",\"name\":\"Credit Calculation\",\"description\":\"API endpoint for calculating the required number of credits for a respondent.\",\"dateModified\":\"2026-08-13T08:37:56.401Z\",\"isPartOf\":{\"@id\":\"https://docs.redem.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.redem.io/api-reference/endpoints/v3/addRespondent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Credit Calculation\",\"item\":\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.redem.io/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.redem.io/api-reference/endpoints/v3/creditCalculation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.redem.io/api-reference/endpoints/v3/creditCalculation#webpage\"},\"dateModified\":\"2026-08-13T08:37:56.401Z\",\"publisher\":{\"@id\":\"https://docs.redem.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.redem.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ReDem Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ReDem Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/v3/creditCalculation.md","siteName":"ReDem Documentation","nav":{"global":null,"versions":[{"version":"v3","tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/welcome"}]},{"tab":"Knowledge Base","pages":[{"title":"Knowledge Base","href":"/knowledge-base/quality-checks/redem-score"}]},{"tab":"API Documentation","groups":[{"group":"How to integrate","pages":[{"title":"Introduction","icon":"book-open","iconType":"regular","href":"/api-reference/intro/introduction"},{"title":"Synchronous Response","icon":"arrow-up-arrow-down","iconType":"regular","href":"/api-reference/intro/synchronous-response"},{"title":"Asynchronous Response","icon":"arrows-rotate","iconType":"regular","href":"/api-reference/intro/asynchronous-response"},{"title":"API Version Migration Guide","icon":"arrow-right-arrow-left","iconType":"regular","href":"/api-reference/others/migration-guide"}]},{"group":"API Specifications","pages":[{"title":"API Keys","icon":"key","iconType":"regular","href":"/api-reference/api-specifications/api-keys"},{"title":"Response Structure","icon":"brackets-curly","iconType":"regular","href":"/api-reference/api-specifications/response-structure"},{"title":"Rate Limits","icon":"clock","iconType":"regular","href":"/api-reference/api-specifications/rate-limits"}]},{"group":"Endpoints","pages":[{"title":"Add Respondent","openapi":"POST /v3/addRespondent","href":"/api-reference/endpoints/v3/addRespondent"},{"title":"Get Respondent","openapi":"POST /v3/getRespondent","href":"/api-reference/endpoints/v3/getRespondent"},{"title":"Get All Respondents","openapi":"POST /v3/getAllRespondents","href":"/api-reference/endpoints/v3/getAllRespondents"},{"title":"Restart Survey","openapi":"POST /v3/restartSurvey","href":"/api-reference/endpoints/v3/restartSurvey"},{"title":"Stop Survey","openapi":"POST /v3/stopSurvey","description":"Stop a survey to prevent further respondent additions.","href":"/api-reference/endpoints/v3/stopSurvey"},{"title":"Credit Calculation","openapi":"POST /v3/creditCalculation","href":"/api-reference/endpoints/v3/creditCalculation"},{"title":"Delete Respondents","openapi":"POST /v3/deleteRespondents","description":"Delete one or more respondents from a survey and clean up related data.","href":"/api-reference/endpoints/v3/deleteRespondents"},{"title":"Delete Surveys","openapi":"POST /v3/deleteSurveys","href":"/api-reference/endpoints/v3/deleteSurveys"},{"title":"Update Respondents Excluded Status","openapi":"POST /v3/updateRespondentsExcludedStatus","href":"/api-reference/endpoints/v3/updateRespondentsExcludedStatus"},{"title":"Recalculate Respondents","openapi":"POST /v3/recalculateRespondents","href":"/api-reference/endpoints/v3/recalculateRespondents"},{"title":"Change Cleaning Settings","openapi":"POST /v3/changeCleaningSettings","href":"/api-reference/endpoints/v3/changeCleaningSettings"},{"title":"Quality Check Suggestions","openapi":"POST /v3/qualityCheckSuggestions","href":"/api-reference/endpoints/v3/qualityCheckSuggestions"}]},{"group":"Others","pages":[{"title":"API Change Log","icon":"bullhorn","iconType":"regular","href":"/changelogs/api-change-log"},{"title":"Structuring Surveys Responses for ReDem Compatibility","icon":"lightbulb","iconType":"regular","href":"/api-reference/others/structuring-survey-responses"},{"title":"Behavior Tracking","icon":"eye","iconType":"regular","href":"/api-reference/others/behavior-tracking"}]}]},{"tab":"Status","href":"https://redem.instatus.com/"}]},{"version":"v2","pages":[{"title":"v2","href":"/api-reference/endpoints/v2/creditCalculation"}]}]},"basePath":"","title":"Credit Calculation - ReDem Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B6WFFOBL.js","utils-BN5um1KA.js","cloneDeep-C3md22mN.js","_Uint8Array-DLlL8L26.js","isObject-FP1Yky1u.js","utils-BSmbkXJR.js","addUniqueKeysToSchema-2tqcVnUE.js","snippetPresets-CtWfvr2J.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DkKHBy30.js","isEqual-O3q7y6pq.js","usePlaygroundInputsStore-Brc5H9UJ.js","shallow-C4L4xvbs.js","getApiPlaygroundDisplay-2bxyq_aI.js","CodeSnippet-BJu8ddd5.js","CodeSnippets-dazWmoqB.js","Page-CnLhKuUV.js","getPastedJson-Chy3Qa1S.js","icon-CyO7h3jh.js","MethodPill-Dle0_91v.js","DuplicateIcon-CVvWAf4a.js","createIcon-Di07A27B.js","DynamicMarkdown-C4w9kavL.js","SectionHeading-XiBebVYC.js","axios-vUo_bRtp.js","Markdown-DTeL0SpS.js","dist-OCScizqf.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-KcneGfMY.js"]}