v1
latestOpenAPI 3.1.02026-07-26270268.6 KBCreate Session
post/payment-intent/api/v2/direct/session
Headers
deviceBrandstring
For instance Apple
deviceModelstring
For instance 14 Pro
deviceTypestring
For instance iPhone
languagestring
For instance en or ar
sdkVersionstring
For instance 1.0.0
OSVersionstring
For instance 18.0
Request body
Response
200
Example response
{
"session": {
"id": "f1a0f785-7601-4d53-8f43-08dc33d8302c",
"amount": 1850,
"currency": "EGP",
"callbackUrl": "https://webhook.site/8ef88a07-b575-40a4-9a27-f2e78edf931e",
"expiryDate": "2024-03-04T14:28:52.0623131Z",
"status": "Initiated",
"merchantId": "4907f9f6-af43-434a-340a-08da8933ece3",
"merchantPublicKey": "40225a89-be31-4f2e-a10a-27b2bbc4e3b3",
"language": "en",
"merchantReferenceId": "10",
"paymentOperation": "Pay"
},
"responseMessage": "Success",
"detailedResponseMessage": "The operation was successful",
"language": "EN",
"responseCode": "000",
"detailedResponseCode": "000"
}