{
"message": "The request could not be understood due to malformed syntax"
}
{
"message": "Invalid or expired authentication token"
}
{
"message": "You do not have permission to access this resource"
}
{
"message": "An unexpected error occurred while processing your request"
}
Sessions
Create Session
Creates a secure session for payment method integration. This endpoint is intended
for merchant backends to generate sessions that can be safely used by payment method
components in web applications. The session ID provides secure access to payment methods
without exposing sensitive merchant credentials.
Authentication Required: JWT Bearer token for merchant authentication
Intended for: Merchant backend systems
Security: Sessions are time-limited and scoped to specific stores
Optional campaign keyword to filter payment methods.
When provided, only payment methods matching this campaign keyword will be returned.
When omitted, only non-campaign payment methods are returned.
Example:
"SUMMER_SALE"
Response
Session successfully created with token and expiration
Contains the script URL that merchants use to load payment method components in their storefront.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Resurs Docs","description":"Documentation for Resurs payment solutions and APIs.","colors":{"primary":"#00807B","light":"#26938F","dark":"#006965"},"logo":{"light":"https://mintcdn.com/resurs-153b4238/GhUrYguDwYC9akfJ/logo/light.svg?fit=max\u0026auto=format\u0026n=GhUrYguDwYC9akfJ\u0026q=85\u0026s=dbbf314f685ca751a29e51e8d50e2df1","dark":"https://mintcdn.com/resurs-153b4238/GhUrYguDwYC9akfJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=GhUrYguDwYC9akfJ\u0026q=85\u0026s=5fc3151377cccf19d44b349d659be5a1"},"favicon":"https://mintcdn.com/resurs-153b4238/GhUrYguDwYC9akfJ/favicon.svg?fit=max\u0026auto=format\u0026n=GhUrYguDwYC9akfJ\u0026q=85\u0026s=25503133ece06d496a470976291fcac6","background":{"color":{"light":"#F8F9FA","dark":"#1A1E21"}},"navbar":{"links":[{"href":"mailto:support@resurs.se","label":"Support"}]},"footer":{"socials":{"instagram":"https://www.instagram.com/resurssverige","github":"https://github.com/resursbank","linkedin":"https://linkedin.com/company/resurs-bank"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"codeblocks":{"theme":{"light":"catppuccin-latte","dark":"one-dark-pro"}},"latex":false},"banner":{"content":"We're building out these docs. Can't find what you need? Check the [Merchant API docs](https://merchant-api.resurs.com/)."},"errors":{"404":{"redirect":false,"title":"I can't be found","description":"What ever **happened** to this _page_?"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"resurs-153b4238","hasAudioNarration":false,"actualSubdomain":"resurs-153b4238","customDomains":["docs.resurs.com"],"gitSource":{"type":"github","owner":"resurs-internal","repo":"rf-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad6055e03b76e0d8ece960d","collectionId":"8e54ab8a-98bc-499f-8383-89ec9243a501","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad6055e03b76e0d8ece960d"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ad6055e03b76e0d8ece960d","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Payment Methods","count":14},{"language":"default","tag":"Developer Guide","count":10},{"language":"default","tag":"Checkout","count":8},{"language":"default","tag":"API Reference","count":4},{"language":"default","tag":"Changelog","count":2},{"language":"default","tag":"Sessions","count":2},{"language":"default","tag":"Getting Started","count":1},{"language":"default","tag":"Price Info","count":1}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":false},"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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".dark [class*=accordion]{background-color:#1a1e21!important;border-color:#30383e!important}:root{--resurs-checkout-accent-color:light-dark(#3aa497, #236161);--resurs-checkout-text-color:light-dark(#272e33, #fff);--resurs-checkout-background:light-dark(#fff, #282c34)}"}],"page":{"pagePath":"api-reference/sessions/create-session","slug":"/api-reference/sessions/create-session","pageMetadata":{"title":"Create Session","description":"Creates a secure session for payment method integration. This endpoint is intended\nfor merchant backends to generate sessions that can be safely used by payment method\ncomponents in web applications. The session ID provides secure access to payment methods\nwithout exposing sensitive merchant credentials.\n\n**Authentication Required**: JWT Bearer token for merchant authentication\n**Intended for**: Merchant backend systems\n**Security**: Sessions are time-limited and scoped to specific stores\n","deprecated":null,"version":null,"openapi":"/api/payment-widget/openapi.json post /stores/{storeId}/sessions","href":"/api-reference/sessions/create-session","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Creates a secure session for payment method integration. This endpoint is intended\\nfor merchant backends to generate sessions that can be safely used by payment method\\ncomponents in web applications. The session ID provides secure access to payment methods\\nwithout exposing sensitive merchant credentials.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authentication Required\"\n }), \": JWT Bearer token for merchant authentication\\n\", _jsx(_components.strong, {\n children: \"Intended for\"\n }), \": Merchant backend systems\\n\", _jsx(_components.strong, {\n children: \"Security\"\n }), \": Sessions are time-limited and scoped to specific stores\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"catppuccin-latte","dark":"one-dark-pro"}},"config":{},"pageMetadata":{"title":"Create Session","description":"Creates a secure session for payment method integration. This endpoint is intended\nfor merchant backends to generate sessions that can be safely used by payment method\ncomponents in web applications. The session ID provides secure access to payment methods\nwithout exposing sensitive merchant credentials.\n\n**Authentication Required**: JWT Bearer token for merchant authentication\n**Intended for**: Merchant backend systems\n**Security**: Sessions are time-limited and scoped to specific stores\n","deprecated":null,"version":null,"openapi":"/api/payment-widget/openapi.json post /stores/{storeId}/sessions","href":"/api-reference/sessions/create-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Sessions"],"summary":"Create Session","description":"Creates a secure session for payment method integration. This endpoint is intended\nfor merchant backends to generate sessions that can be safely used by payment method\ncomponents in web applications. The session ID provides secure access to payment methods\nwithout exposing sensitive merchant credentials.\n\n**Authentication Required**: JWT Bearer token for merchant authentication\n**Intended for**: Merchant backend systems\n**Security**: Sessions are time-limited and scoped to specific stores\n","operationId":"createSession","x-amazon-apigateway-integration":{"uri":"createSession","type":"aws_proxy","httpMethod":"POST","passthroughBehavior":"never"},"security":["8a590cd0-35fa-4f7b-851a-83bc5ad5a70d"],"parameters":["909c59d6-9052-4bbb-9f2d-213f3d115cbc"],"requestBody":"b99e896a-bc7e-4840-95f5-49eff2ff4165","responses":{"200":"71b347bd-da1d-4337-a2c0-ad2d30ebcaac","400":"bbb9ce07-b7e9-49af-a170-29d7f1d69871","401":"c6872923-1892-444c-bcb2-9c0380f27f64","403":"c9f33184-0552-4107-8bc6-7b968c16bb0c","500":"be81b6e2-3b60-4148-9374-ef9f6bc59f7f"},"method":"post","type":"path","servers":["05b2bbad-0119-422e-af29-724dd45a4dfd"],"path":"/stores/{storeId}/sessions","baseUrlOptions":["https://api.checkout.int.resurs.cloud/mock/payment/public/v1"],"title":"Create Session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"909c59d6-9052-4bbb-9f2d-213f3d115cbc":{"name":"storeId","in":"path","required":true,"description":"The unique identifier of the store resource.","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":true,"description":"The unique identifier of the store resource.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaign":{"type":"string","description":"Optional campaign keyword to filter payment methods.\nWhen provided, only payment methods matching this campaign keyword will be returned.\nWhen omitted, only non-campaign payment methods are returned.\n","example":"SUMMER_SALE","uniqueKey":"campaign","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"campaign":"SUMMER_SALE"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"71b347bd-da1d-4337-a2c0-ad2d30ebcaac":{"description":"Session successfully created with token and expiration","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Session ID for authenticating payment method requests.\nUse this ID for subsequent API calls.\n","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","description":"Session expiration timestamp in ISO 8601 format.\nAfter this time, the session will no longer be valid for API requests.\n","example":"2025-11-17T15:30:00Z","isRequired":true,"uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time>"},"embed":{"type":"object","description":"Contains the script URL that merchants use to load payment method components in their storefront.\n","properties":{"src":{"type":"string","format":"uri","description":"Fully qualified URL to the payment method components script.","example":"https://static.checkout.dev.resurs.cloud/payment/abc1234/resurs-payment-elements.js","isRequired":true,"uniqueKey":"embed.src","typeLabel":"string\u003curi>"}},"required":["src"],"isRequired":true,"uniqueKey":"embed","typeLabel":"object"}},"required":["id","expiresAt","embed"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"550e8400-e29b-41d4-a716-446655440000","expiresAt":"2025-11-17T15:30:00Z","embed":{"src":"https://static.checkout.dev.resurs.cloud/payment/abc1234/resurs-payment-elements.js"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bbb9ce07-b7e9-49af-a170-29d7f1d69871":{"description":"Bad Request - The request could not be understood or was missing required parameters","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable description of the error","example":"Session not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"example":{"message":"The request could not be understood due to malformed syntax"},"examples":{"Example":{"title":"Example","value":{"message":"The request could not be understood due to malformed syntax"}}},"exampleType":"examples"}},"exampleType":"examples"},"c6872923-1892-444c-bcb2-9c0380f27f64":{"description":"Unauthorized - Authentication failed or token is invalid/expired","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable description of the error","example":"Session not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"example":{"message":"Invalid or expired authentication token"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid or expired authentication token"}}},"exampleType":"examples"}},"exampleType":"examples"},"c9f33184-0552-4107-8bc6-7b968c16bb0c":{"description":"Forbidden - Valid authentication but insufficient permissions","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable description of the error","example":"Session not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"example":{"message":"You do not have permission to access this resource"},"examples":{"Example":{"title":"Example","value":{"message":"You do not have permission to access this resource"}}},"exampleType":"examples"}},"exampleType":"examples"},"be81b6e2-3b60-4148-9374-ef9f6bc59f7f":{"description":"Internal Server Error - An unexpected error occurred on the server","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable description of the error","example":"Session not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"example":{"message":"An unexpected error occurred while processing your request"},"examples":{"Example":{"title":"Example","value":{"message":"An unexpected error occurred while processing your request"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"8a590cd0-35fa-4f7b-851a-83bc5ad5a70d":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"JWT token for merchant authentication","x-amazon-apigateway-authtype":"custom","x-amazon-apigateway-authorizer":{"type":"request","authorizerUri":"authorizerFunction","authorizerResultTtlInSeconds":0,"identitySource":"method.request.header.Authorization"},"scopes":[]}}},"servers":{"05b2bbad-0119-422e-af29-724dd45a4dfd":{"url":"https://api.checkout.int.resurs.cloud/mock/payment/public/v1","description":"Mock"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"Authorization","in":"header","description":"JWT token for merchant authentication","x-amazon-apigateway-authtype":"custom","x-amazon-apigateway-authorizer":{"type":"request","authorizerUri":"authorizerFunction","authorizerResultTtlInSeconds":0,"identitySource":"method.request.header.Authorization"},"scopes":[]},"schema":{"title":"Authorization","type":"string","description":"JWT token for merchant authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api/payment-widget/openapi.json"},"subdomain":"resurs-153b4238","siteName":"Resurs Docs","title":"Create Session - Resurs Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-19T14:15:54.555Z","originalFileLocation":"api-reference/sessions/create-session.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=\"Creates a secure session for payment method integration. This endpoint is intended for merchant backends to generate sessions that can be safely used by payment method components in web applications. The session ID provides secure access to payment methods without exposing sensitive merchant credentials. Authentication Required: JWT Bearer token for merchant authentication Intended for: Merchant backend systems Security: Sessions are time-limited and scoped to specific stores\">\u003cmeta data-mint-head name=\"application-name\" content=\"Resurs Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_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/resurs-153b4238/dl_H0G6ekZdPWg18/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Session - Resurs Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a secure session for payment method integration. This endpoint is intended for merchant backends to generate sessions that can be safely used by payment method components in web applications. The session ID provides secure access to payment methods without exposing sensitive merchant credentials. Authentication Required: JWT Bearer token for merchant authentication Intended for: Merchant backend systems Security: Sessions are time-limited and scoped to specific stores\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Resurs Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.resurs.com/api-reference/sessions/create-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://resurs-153b4238.mintlify.app/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Create+Session\u0026amp;description=Creates+a+secure+session+for+payment+method+integration.+This+endpoint+is+intended%0Afor+merchant+backends+to+generate+sessions+that+can+be+safely+used+by+payment\u0026amp;theme=1506013d7b527a1dfd7b412f\u0026amp;signature=019db3df6c521892c91baa3e446704ac9006775ca333adf58e5254545a05b850\">\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=\"Create Session - Resurs Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a secure session for payment method integration. This endpoint is intended for merchant backends to generate sessions that can be safely used by payment method components in web applications. The session ID provides secure access to payment methods without exposing sensitive merchant credentials. Authentication Required: JWT Bearer token for merchant authentication Intended for: Merchant backend systems Security: Sessions are time-limited and scoped to specific stores\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://resurs-153b4238.mintlify.app/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Create+Session\u0026amp;description=Creates+a+secure+session+for+payment+method+integration.+This+endpoint+is+intended%0Afor+merchant+backends+to+generate+sessions+that+can+be+safely+used+by+payment\u0026amp;theme=1506013d7b527a1dfd7b412f\u0026amp;signature=019db3df6c521892c91baa3e446704ac9006775ca333adf58e5254545a05b850\">\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/resurs-153b4238/dl_H0G6ekZdPWg18/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Resurs Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00807B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.resurs.com/api-reference/sessions/create-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sessions/create-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.resurs.com/#organization\",\"name\":\"Resurs Docs\",\"url\":\"https://docs.resurs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/resurs-153b4238/GhUrYguDwYC9akfJ/logo/light.svg?fit=max\u0026auto=format\u0026n=GhUrYguDwYC9akfJ\u0026q=85\u0026s=dbbf314f685ca751a29e51e8d50e2df1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.resurs.com#website\",\"name\":\"Resurs Docs\",\"url\":\"https://docs.resurs.com\",\"publisher\":{\"@id\":\"https://docs.resurs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.resurs.com/api-reference/sessions/create-session#webpage\",\"url\":\"https://docs.resurs.com/api-reference/sessions/create-session\",\"name\":\"Create Session\",\"description\":\"Creates a secure session for payment method integration. This endpoint is intended for merchant backends to generate sessions that can be safely used by payment method components in web applications. The session ID provides secure access to payment methods without exposing sensitive merchant credentials. Authentication Required: JWT Bearer token for merchant authentication Intended for: Merchant backend systems Security: Sessions are time-limited and scoped to specific stores\",\"dateModified\":\"2026-05-19T14:15:54.555Z\",\"isPartOf\":{\"@id\":\"https://docs.resurs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.resurs.com/api-reference/sessions/create-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.resurs.com/api-reference/sessions/create-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Resurs Docs\",\"item\":\"https://docs.resurs.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Session\",\"item\":\"https://docs.resurs.com/api-reference/sessions/create-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.resurs.com/api-reference/sessions/create-session#apireference\",\"headline\":\"Create Session\",\"name\":\"Create Session\",\"description\":\"Creates a secure session for payment method integration. This endpoint is intended for merchant backends to generate sessions that can be safely used by payment method components in web applications. The session ID provides secure access to payment methods without exposing sensitive merchant credentials. Authentication Required: JWT Bearer token for merchant authentication Intended for: Merchant backend systems Security: Sessions are time-limited and scoped to specific stores\",\"url\":\"https://docs.resurs.com/api-reference/sessions/create-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.resurs.com/api-reference/sessions/create-session#webpage\"},\"dateModified\":\"2026-05-19T14:15:54.555Z\",\"publisher\":{\"@id\":\"https://docs.resurs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.resurs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Resurs Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Resurs Docs","nav":{"global":null,"tabs":[{"tab":"Developer Guide","pages":[{"title":"Developer Guide","href":"/developer-guide/introduction"}]},{"tab":"API Reference","groups":[{"group":"Payment Methods","pages":[{"group":"Sessions","pages":[{"title":"Create Session","deprecated":null,"version":null,"openapi":"/api/payment-widget/openapi.json post /stores/{storeId}/sessions","href":"/api-reference/sessions/create-session"},{"title":"CORS preflight","description":null,"deprecated":null,"version":null,"openapi":"/api/payment-widget/openapi.json options /stores/{storeId}/sessions","href":"/api-reference/sessions/cors-preflight"}]},{"group":"Payment Methods","pages":[{"title":"Retrieve Payment Method Groups","deprecated":null,"version":null,"openapi":"/api/payment-widget/openapi.json get /sessions/{sessionId}/payment-method-groups","href":"/api-reference/payment-methods/retrieve-payment-method-groups"},{"title":"CORS preflight","deprecated":null,"version":null,"openapi":"/api/payment-widget/openapi.json options /sessions/{sessionId}/payment-method-groups","href":"/api-reference/payment-methods/cors-preflight"}]}]}]},{"tab":"Merchant API","hidden":true,"versions":[{"version":"v2","groups":[{"group":"Merchant API v2","pages":[{"title":"E-Commerce","href":"/merchant-api/v2/e-commerce"},{"title":"Broker Application Flow Denmark","href":"/merchant-api/v2/broker-flow-denmark"}]},{"group":"Stores endpoints","pages":[{"group":"Payment methods payment plan","pages":[{"title":"Retrieve payment plans for a specific payment method","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/stores_v2_openapi.json get /v2/stores/{store_id}/payment_methods/{payment_method_id}/annuity_factors","href":"/api-reference/payment-methods-payment-plan/retrieve-payment-plans-for-a-specific-payment-method"},{"title":"Retrieve pricing information for a specific payment method","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/stores_v2_openapi.json get /v2/stores/{store_id}/payment_methods/{payment_method_id}/price_signage","href":"/api-reference/payment-methods-payment-plan/retrieve-pricing-information-for-a-specific-payment-method"}]},{"group":"Store information","pages":[{"title":"Retrieve a paged list of stores accessible by the current user","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/stores_v2_openapi.json get /v2/stores","href":"/api-reference/store-information/retrieve-a-paged-list-of-stores-accessible-by-the-current-user"}]},{"group":"Advanced usage - Payment methods","pages":[{"title":"Retrieve personalized payment methods for a specific customer","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/stores_v2_openapi.json post /v2/stores/{store_id}/payment_methods/personalized","href":"/api-reference/advanced-usage--payment-methods/retrieve-personalized-payment-methods-for-a-specific-customer"},{"title":"Retrieve the application data specification for a payment method","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/stores_v2_openapi.json get /v2/stores/{store_id}/payment_methods/{payment_method_id}/application_data_specification","href":"/api-reference/advanced-usage--payment-methods/retrieve-the-application-data-specification-for-a-payment-method"}]},{"group":"Payment methods information","pages":[{"title":"Retrieve available payment methods by store and purchase amount","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/stores_v2_openapi.json get /v2/stores/{store_id}/payment_methods","href":"/api-reference/payment-methods-information/retrieve-available-payment-methods-by-store-and-purchase-amount"}]}]},{"group":"OAuth2 endpoints","pages":[{"group":"Oauth2 token resource","pages":[{"title":"Request an access token","deprecated":null,"version":null,"openapi":"/api/merchant-api/v2/oauth_openapi.json post /oauth2/token","href":"/api-reference/oauth2-token-resource/request-an-access-token"}]}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Merchant Integration","hidden":true,"pages":[{"title":"Merchant Integration","href":"/contact"}]}]},"title":"Create Session - Resurs Docs","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-Og7hgu7u.js","dist-BaREnp3o.js","lib--scc4DXi.js","lib-B8HbPgcC.js","clsx-CefdjKz2.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","AssistantPageLink-sgx_0XzF.js"]}