Embedded Integration
Initiate Session
Initiate new session for a payment. This endpoint will help you get the SessionId that will be used to execute the payment later.
POST
/
initiateSession
Query Parameters
apiKey
string
requiredThe API Key of your account.
data
object
requiredCustomerIdentifier
string|integer
A unique value represent the customer (your user).
Samples: "UID123"
, "123"
, or 123
.
test
boolean
Set this property to true
to send the request to the development
environment.
Response properties
SessionId
string
requiredThe created session identifier.
CountryCode
string
requiredThe country code (depends on your account)
Error Codes
Here’s a list of possible error codes of this endpoint.
Code | Description |
---|---|
1 | Missing or invalid api key |
2 | CustomerIdentifier is a required parameter. |