curl --request POST \
--url https://api.checkout.int.resurs.cloud/mock/payment/public/v1/stores/{storeId}/sessions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign": "SUMMER_SALE"
}
'{
"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"
}
}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
curl --request POST \
--url https://api.checkout.int.resurs.cloud/mock/payment/public/v1/stores/{storeId}/sessions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"campaign": "SUMMER_SALE"
}
'{
"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"
}
}Authorizations
JWT token for merchant authentication
Path Parameters
The unique identifier of the store resource.
"550e8400-e29b-41d4-a716-446655440000"
Body
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.
"SUMMER_SALE"
Response
Session successfully created with token and expiration
Session ID for authenticating payment method requests. Use this ID for subsequent API calls.
"550e8400-e29b-41d4-a716-446655440000"
Session expiration timestamp in ISO 8601 format. After this time, the session will no longer be valid for API requests.
"2025-11-17T15:30:00Z"
Contains the script URL that merchants use to load payment method components in their storefront.
Show child attributes
Show child attributes
Was this page helpful?