{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-country-apis-catalog/product-catalog/se/spar/sidebars.yaml","current-catalog-info":"current-catalog-info-/country-apis-catalog/product-catalog/se/spar/openapi"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Error Codes","llmstxt":{"hide":true}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"error-codes","__idx":0},"children":["Error Codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When an error occurs, the SPAR API returns a structured error response. The language of error messages is determined by the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," parameter in your request (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["en"]}," for English or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sv"]}," for Swedish)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"error-response-structure","__idx":1},"children":["Error Response Structure"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All error responses include ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metaData"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," only. Null fields are omitted from the JSON response. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["detail"]}," field within ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," is optional and may be omitted when no additional context is available."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"metaData\": {\n    \"apiLogId\": 547660,\n    \"timeStamp\": \"2026-07-21T09:25:00\",\n    \"resource\": \"SPAR Consumer (1231)\",\n    \"method\": \"GET\",\n    \"requestUrl\": \"https://se-webservice.apps.creditsafe.com/spar?searchnumber=199999999999\"\n  },\n  \"error\": {\n    \"code\": \"15\",\n    \"text\": \"Ingen träff\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"response-fields","__idx":2},"children":["Response Fields"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metaData"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request metadata for tracing and troubleshooting (always present)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Error details container (always present)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.code"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Application error code (e.g., \"R1\", \"EX2\", \"7\", \"15\")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.text"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Human-readable error message in the requested language"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.detail"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String or null"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Additional error details when available. May contain SPAR supplier error messages. Will be omitted when no additional details are available."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Language-Specific Errors"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Error messages are returned in the language specified by the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]}," parameter (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["en"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sv"]},"). Default is English."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"http-400---bad-request","__idx":3},"children":["HTTP 400 - Bad Request"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Text"},"children":["Text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Detail"},"children":["Detail"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The language must be either en (default) or sv (swedish)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["EX2"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ogiltigt personnummer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Felaktigt format på personnummer"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"http-401---unauthorized","__idx":4},"children":["HTTP 401 - Unauthorized"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Text"},"children":["Text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Detail"},"children":["Detail"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["EX1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Åtkomst till SPAR tjänsten"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Inloggningsuppgifter till SPAR saknas"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["EX1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Åtkomst till SPAR tjänsten"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SPAR uppdrags id felaktigt"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"http-403---forbidden","__idx":5},"children":["HTTP 403 - Forbidden"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"authentication-and-authorization-errors","__idx":6},"children":["Authentication and Authorization Errors"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Text"},"children":["Text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Detail"},"children":["Detail"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R2"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Token får inte saknas eller vara tom"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R3"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sluttiden för token är ogiltig"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R4"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Token har gått ut"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R5"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Token är ogiltig"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R6"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ogiltig token-utgivare"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"access-and-service-errors","__idx":7},"children":["Access and Service Errors"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Text"},"children":["Text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Detail"},"children":["Detail"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["7"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ej tillgång till tjänsten"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ditt kundkonto har inte tjänsten SPAR Consumer (1231)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["7"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ej tillgång till tjänsten"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Användaren har inte tjänsten SPAR Consumer (1231)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["7"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ej tillgång till tjänsten"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ingen åtkomst för kontot eller användaren till tjänsten SPAR Consumer (1231)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["8"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rapporter/poäng slut"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Inga kvarvarande rapporter för kontot eller användaren till tjänsten SPAR Consumer (1231)"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"http-404---not-found","__idx":8},"children":["HTTP 404 - Not Found"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Text"},"children":["Text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Detail"},"children":["Detail"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["15"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ingen träff"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["15"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ingen träff"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Söknumret får inte saknas eller vara tomt"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"http-500---internal-server-error","__idx":9},"children":["HTTP 500 - Internal Server Error"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Text"},"children":["Text"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Detail"},"children":["Detail"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["EX3"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Oväntat fel"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Oväntat felmeddelande från SPAR: <SPAR internt meddelande>"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Important"]},": The SPAR service depends on an external system operated by the Swedish Tax Agency. Creditsafe cannot guarantee 100% uptime and cannot intervene in the event of downtime caused by issues on SPAR's side."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"http-504---gateway-timeout","__idx":10},"children":["HTTP 504 - Gateway Timeout"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If a report request takes more than 30 seconds, a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["504 Gateway Timeout"]}," response will be returned."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Server Timeout"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A 504 Gateway Timeout is most likely a server environment issue at Creditsafe. Please report this kind of issue to Creditsafe support at ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"mailto:integration@creditsafe.se"},"children":["integration@creditsafe.se"]}]}," including details on the request that timed out (search number, timestamp, and any transaction IDs)."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"common-error-resolution-steps","__idx":11},"children":["Common Error Resolution Steps"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-implement-retry-logic","__idx":12},"children":["1. Implement Retry Logic"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For transient errors (EX1, EX3), implement exponential backoff retry logic:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Initial retry: Wait 1 second\nSecond retry: Wait 2 seconds\nThird retry: Wait 4 seconds\nMaximum: 3 retries\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-log-error-details","__idx":13},"children":["2. Log Error Details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Always log the complete error response including:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.code"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.text"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.detail"]}," (when present)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3-handle-specific-errors-appropriately","__idx":14},"children":["3. Handle Specific Errors Appropriately"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["15 (Ingen träff / No match)"]},": This is a valid business outcome, not a technical error"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["EX1, EX3 (SPAR issues)"]},": Retry after a delay"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["R2-R6 (Token errors)"]},": Refresh your token"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["7, 8 (Access errors)"]},": Contact Creditsafe - these require account configuration changes"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"4-monitor-error-patterns","__idx":15},"children":["4. Monitor Error Patterns"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Track error frequency to identify:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Systematic issues (for example, always getting error 7)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Intermittent problems (for example, occasional EX1 errors)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Usage patterns that need adjustment"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"contacting-support","__idx":16},"children":["Contacting Support"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When contacting Creditsafe support about an error:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Include the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.code"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.text"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.detail"]}," from the response"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Specify the timestamp when the error occurred"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Describe what you were trying to accomplish (search number, parameters used)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Include your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transactionid"]}," if you used one"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This information allows support to quickly locate and investigate your specific request."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"additional-information","__idx":17},"children":["Additional Information"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"environment-indicators","__idx":18},"children":["Environment Indicators"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["usespartest"]}," parameter, the service routes to different SPAR environments:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["false"]}," (default) - Uses live SPAR on production hosts, or sandbox database on sandbox hosts"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["true"]}," - Uses SPAR test environment on all hosts"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"usespartest-parameter","__idx":19},"children":["usespartest Parameter"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The optional ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["usespartest"]}," query parameter controls which SPAR environment is used:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," (default) - Uses live SPAR on production hosts, or sandbox database on sandbox hosts"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," - Uses SPAR test environment on all hosts"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/country-apis-catalog/product-catalog/se/spar"},"children":["API reference"]}," for more details on request parameters."]}]},"headings":[{"value":"Error Codes","id":"error-codes","depth":1},{"value":"Error Response Structure","id":"error-response-structure","depth":2},{"value":"Response Fields","id":"response-fields","depth":3},{"value":"HTTP 400 - Bad Request","id":"http-400---bad-request","depth":2},{"value":"HTTP 401 - Unauthorized","id":"http-401---unauthorized","depth":2},{"value":"HTTP 403 - Forbidden","id":"http-403---forbidden","depth":2},{"value":"Authentication and Authorization Errors","id":"authentication-and-authorization-errors","depth":3},{"value":"Access and Service Errors","id":"access-and-service-errors","depth":3},{"value":"HTTP 404 - Not Found","id":"http-404---not-found","depth":2},{"value":"HTTP 500 - Internal Server Error","id":"http-500---internal-server-error","depth":2},{"value":"HTTP 504 - Gateway Timeout","id":"http-504---gateway-timeout","depth":2},{"value":"Common Error Resolution Steps","id":"common-error-resolution-steps","depth":2},{"value":"1. Implement Retry Logic","id":"1-implement-retry-logic","depth":3},{"value":"2. Log Error Details","id":"2-log-error-details","depth":3},{"value":"3. Handle Specific Errors Appropriately","id":"3-handle-specific-errors-appropriately","depth":3},{"value":"4. Monitor Error Patterns","id":"4-monitor-error-patterns","depth":3},{"value":"Contacting Support","id":"contacting-support","depth":2},{"value":"Additional Information","id":"additional-information","depth":2},{"value":"Environment Indicators","id":"environment-indicators","depth":3},{"value":"usespartest Parameter","id":"usespartest-parameter","depth":3}],"frontmatter":{"seo":{"title":"Error Codes"}},"lastModified":"2026-08-03T11:28:09.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/country-apis-catalog/product-catalog/se/spar/documentation/errorcodes","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}