Skip to main content
POST
/
initiateSession
Initiate Session
curl --request POST \
  --url https://dashu.sa/api/external/initiateSession \
  --header 'Content-Type: application/json' \
  --data '
{
  "apiKey": "<string>",
  "data": {},
  "test": true
}
'
{
  "SessionId": "e09da666-398d-4f0e-bc02-01346d9e3258",
  "CountryCode": "KWT",
  "CustomerTokens": []
}

Documentation Index

Fetch the complete documentation index at: https://paydocs.dashu.sa/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

apiKey
string
required
The API Key of your account.
data
object
required
test
boolean
Set this property to true to send the request to the development environment.
{
  "SessionId": "e09da666-398d-4f0e-bc02-01346d9e3258",
  "CountryCode": "KWT",
  "CustomerTokens": []
}

Response properties

SessionId
string
required
The created session identifier.
CountryCode
string
required
The country code (depends on your account)

Error Codes

Here’s a list of possible error codes of this endpoint.
CodeDescription
1Missing or invalid api key
2CustomerIdentifier is a required parameter.