Skip to main content
POST
/
session
/
refresh
Refresh Payment Widget Session
curl --request POST \
  --url https://api.example.com/session/refresh \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "data": {
    "expiresAt": "<string>",
    "token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT token for merchant authentication. Format: "Bearer {your-jwt-token}"

Body

application/json

Session refresh request containing the current session token

token
string
required

The current session token that needs to be refreshed required: true example: "rpmw_3jZ8k9Xy7Vb2N5mQ1rT6W"

Response

Session successfully refreshed with same token and new expiration

data
object

Session data containing the widget token and expiration information