> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resurs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CORS preflight



## OpenAPI

````yaml /api/payment-widget/openapi.json options /stores/{storeId}/sessions
openapi: 3.0.3
info:
  title: Payment Methods API
  description: >
    API for integrating Resurs Bank payment methods into web applications.

    Provides secure session management and payment method configuration for
    e-commerce platforms.


    ## Authentication


    | API | Auth Method |

    |-----|-------------|

    | Sessions | JWT Bearer token (merchant credentials) |

    | Payment Methods | Session ID (from session creation) |
  version: v1
  contact:
    name: Resurs Bank
    email: rf-checkout-experience@resurs.se
servers:
  - url: https://api.checkout.int.resurs.cloud/mock/payment/public/v1
    description: Mock
security: []
tags:
  - name: Sessions
    description: Create sessions for payment method integration
  - name: Payment Methods
    description: Retrieve available payment methods
paths:
  /stores/{storeId}/sessions:
    options:
      tags:
        - Sessions
      summary: CORS preflight
      parameters:
        - $ref: '#/components/parameters/storeId'
      responses:
        '204':
          $ref: '#/components/responses/corsPreflight'
components:
  parameters:
    storeId:
      name: storeId
      in: path
      required: true
      description: The unique identifier of the store resource.
      schema:
        type: string
        example: 550e8400-e29b-41d4-a716-446655440000
  responses:
    corsPreflight:
      description: CORS preflight response
      headers:
        Access-Control-Allow-Origin:
          schema:
            type: string
          example: '*'
        Access-Control-Allow-Methods:
          schema:
            type: string
          example: '*'
        Access-Control-Allow-Headers:
          schema:
            type: string
          example: '*'
        Access-Control-Max-Age:
          schema:
            type: string
          example: '3600'
      content:
        application/json:
          schema:
            type: object
          example: {}

````