Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

GetPaymentSessionResponse

idstring

The ID of the payment session

Format:
uuid
subscriptionIdstring
Nullable
Format:
uuid
amountinteger
Example:
[ "CARD", "VIPPS_MOBILEPAY" ]
currencystring
Match:
^[A-Z]{3}$
expiresAtstring
Format:
date-time
instantCapturestring

The instant capture mode.

Possible values:
"OFF""VOID""NO_VOID"
maxAttemptsinteger

The maximum number of transaction attempts allowed for the session

attemptsinteger

The current number of transaction attempts so far.

minimumAgeinteger
ageVerifiedboolean
reportFailureboolean
reportExpiredboolean
dynamicAmountboolean
notificationUrlstring

The URL to receive webhooks related to transaction attempts

Format:
uri
preAuthUrlstring
Nullable
Format:
uri
successUrlstring

The URL to redirect the client on successful payment attempts

Format:
uri
returnUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
failureUrlstring
Format:
uri
retryUrlstring
Nullable
Format:
uri
customerIdstring
Nullable
pointOfSaleIdstring

The ID of the associated point of sale

Format:
uuid
referencestring
Nullable

The transaction reference - Typically the order id.

statestring

The state of the transaction

Possible values:
"PENDING""PROCESSING""COMPLETED""EXPIRED"
textOnStatementstring

The text to display on the cardholders bank statement

Length:
1 <= length <= 39
scaModestring
Possible values:
"SKIP""NORMAL""FORCE"
timeoutinteger

The number of minutes the session is available.

createdAtstring

The time of creation

Format:
date-time
idstring

The ID of the transaction

Example:
"LDG7M4WW44G"
subscriptionIdstring
Nullable

The ID of the associated subscription

Format:
uuid
Example:
"0197c07b-3f6d-7be2-b848-702b08958128"
billingAgreementChargeIdstring
Nullable
Format:
uuid
Example:
"019a727b-987f-7768-a59e-71af920ef81f"
statestring
Possible values:
"PENDING""PROCESSING""SUCCESS""FAILED"
errorCodestring
Nullable
createdAtstring

The time of creation

Format:
date-time
sessionIdstring
Nullable
paymentMethodIdstring

The ID of the associated payment method

Format:
uuid
paymentMethodTypePaymentMethodType

The type of the payment method.

Possible values:
"CARD""VIPPS_MOBILEPAY""MOBILEPAY_ONLINE""APPLE_PAY""GOOGLE_PAY""SWISH""VIABILL""ANYDAY""KLARNA"
Example:
"CARD"
paymentMethodSubTypestring
Nullable
Possible values:
"Visa""Mastercard""Maestro""Dankort""VisaDankort""Discover""UnionPay""Electron""Amex""JCB"
Example:
"Visa"
paymentMethodExpirystring
Nullable
Format:
date
paymentMethodDisplayTextstring
paymentMethodHolderNamestring
Nullable
scaModestring

The SCA mode of the transaction.

Possible values:
"SKIP""NORMAL""FORCE"
customerIdstring
Nullable
amountinteger
feeinteger
currencystring
instantCapturestring

The instant capture mode.

Possible values:
"OFF""VOID""NO_VOID"
notificationUrlstring
Format:
uri
Length:
length <= 1024
pointOfSaleIdstring

The ID of the associated point of sale

Format:
uuid
referencestring
Nullable
textOnStatementstring
Nullable

The text to show on the cardholder bank statement

Length:
1 <= length <= 39
Example:
[ "LVT", "TRA" ]
[key: string]unknown
clientIpstring
Example:
"52.212.176.122"
clientCountrystring
Example:
"DK"
typestring

The type of transaction.

Possible values:
"PAYMENT""PAYOUT""MOTO"
GetPaymentSessionResponse
{  "session": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",    "amount": 0,    "attributes": {      "property1": null,      "property2": null    },    "exemptions": [      "string"    ],    "allowedPaymentMethods": [      "CARD",      "VIPPS_MOBILEPAY"    ],    "currency": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "instantCapture": "OFF",    "maxAttempts": 0,    "attempts": 0,    "minimumAge": 0,    "ageVerified": true,    "reportFailure": true,    "reportExpired": true,    "dynamicAmount": true,    "notificationUrl": "http://example.com",    "preAuthUrl": "http://example.com",    "successUrl": "http://example.com",    "returnUrl": "http://example.com",    "failureUrl": "http://example.com",    "retryUrl": "http://example.com",    "customerId": "string",    "pointOfSaleId": "be6bff4f-7fac-43c0-9f6b-cf2cd45ed7d1",    "reference": "string",    "state": "PENDING",    "textOnStatement": "string",    "scaMode": "SKIP",    "timeout": 0,    "createdAt": "2019-08-24T14:15:22Z"  },  "transaction": {    "id": "LDG7M4WW44G",    "subscriptionId": "0197c07b-3f6d-7be2-b848-702b08958128",    "billingAgreementChargeId": "019a727b-987f-7768-a59e-71af920ef81f",    "state": "PENDING",    "errorCode": "string",    "externalStatusCodes": {      "terminal": "string",      "acquirer": "string",      "network": "string",      "sca": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "sessionId": "string",    "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",    "paymentMethodType": "CARD",    "paymentMethodSubType": "Visa",    "paymentMethodExpiry": "2019-08-24",    "paymentMethodDisplayText": "string",    "paymentMethodHolderName": "string",    "scaMode": "SKIP",    "customerId": "string",    "amount": 0,    "fee": 0,    "currency": "string",    "instantCapture": "OFF",    "notificationUrl": "http://example.com",    "pointOfSaleId": "be6bff4f-7fac-43c0-9f6b-cf2cd45ed7d1",    "reference": "string",    "textOnStatement": "string",    "exemptions": [      "LVT",      "TRA"    ],    "attributes": {      "property1": null,      "property2": null    },    "clientIp": "52.212.176.122",    "clientCountry": "DK",    "type": "PAYMENT"  }}