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

CreatePaymentLinkRequest

pointOfSaleIdstring
Required
Format:
uuid
Example:
"01924737-9c18-71c0-ab1a-88698eaceabf"
referencestring
Nullable
Match:
^[A-Za-z0-9-]{1,36}$
Length:
1 <= length <= 36
Example:
"reference-1"
amountinteger
Required
Example:
100
currencystring
Required
Match:
^[A-Z]{3}$
Example:
"DKK"
instantCapturestring
Nullable
Possible values:
"OFF""VOID""NO_VOID"
Example:
"OFF"
Example:
[ "shift4" ]
[index]Processor
Possible values:
"shift4""clearhaus""nets""worldline"
textOnStatementstring
Nullable
Length:
1 <= length <= 39
Example:
"order 123"
[key: string]unknown
customerIdstring
Nullable
Example:
"User159"
Example:
{ "firstName": "Peter", "lastName": "Nielsen", "email": "email@example.com" }
Example:
{ "firstName": "Peter", "lastName": "Nielsen", "email": "email@example.com" }
nullnever
preAuthUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/preAuth"
Items:
items <= 1000
idstring
Format:
uuid
amountinteger
typestring
Required
Possible values:
"UNSCHEDULED""SCHEDULED"
Example:
"SCHEDULED"
referencestring
Example:
"subscription-1"
expiryDatestring
Format:
date
periodstring
Required

The period unit between charges

Possible values:
"DAY""WEEK""MONTH""YEAR"
frequencyinteger
Required
transactionTypestring
Nullable
Default:
"PAYMENT"
Possible values:
"PAYMENT""MOTO"
scaModestring
Nullable
Possible values:
"SKIP""NORMAL""FORCE"
Example:
"NORMAL"
timeoutinteger
Nullable
Range:
1 <= value <= 120
Example:
120
Example:
[]
[index]string
Possible values:
"TRA""LVT"
Example:
[ "CARD", "VIPPS_MOBILEPAY" ]
[index]PaymentMethodType

The type of the payment method.

Possible values:
"CARD""VIPPS_MOBILEPAY""MOBILEPAY_ONLINE""APPLE_PAY""GOOGLE_PAY""SWISH""VIABILL""ANYDAY""KLARNA"
Example:
"CARD"
maxAttemptsinteger
Nullable

The maximum allowed number of payment attempts for the session.

Range:
1 <= value <= 25
Example:
25
generateQrCodeboolean
Nullable
Default:
false
Example:
false
reportFailureboolean
Nullable
Example:
false
reportExpiredboolean
Default:
false
dynamicAmountboolean
Nullable
Example:
false
notificationUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/notification"
returnUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/success"
successUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/success"
failureUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/failure"
retryUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/retry"
minimumAgeinteger
Required
Range:
0 <= value <= 99
countrystring
Possible values:
"DK"
CreatePaymentLinkRequest
{  "pointOfSaleId": "01924737-9c18-71c0-ab1a-88698eaceabf",  "reference": "reference-1",  "amount": 100,  "currency": "DKK",  "instantCapture": "OFF",  "processor": [    "shift4"  ],  "textOnStatement": "order 123",  "attributes": {    "property1": null,    "property2": null  },  "customerId": "User159",  "customer": {    "firstName": "Peter",    "lastName": "Nielsen",    "email": "email@example.com"  },  "orderLines": [    {      "description": "Running shoe",      "imageUrl": "string",      "quantity": 2,      "totalAmount": 20000,      "unitPrice": 10000,      "type": "PHYSICAL"    }  ],  "subscription": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "amount": 0,    "type": "SCHEDULED",    "reference": "subscription-1",    "expiryDate": "2019-08-24",    "interval": {      "period": "DAY",      "frequency": 0    },    "billingAgreement": {      "billingPlanId": "019a7266-2f3a-7b26-9c93-b950aea9e13c",      "reference": "agreement-1",      "nextChargeAt": "2030-07-22"    }  },  "transactionType": "PAYMENT",  "scaMode": "NORMAL",  "timeout": 120,  "exemptions": [],  "allowedPaymentMethods": [    "CARD",    "VIPPS_MOBILEPAY"  ],  "maxAttempts": 25,  "generateQrCode": false,  "reportFailure": false,  "reportExpired": false,  "dynamicAmount": false,  "notificationUrl": "https://example.com/notification",  "preAuthUrl": "https://example.com/preAuth",  "returnUrl": "https://example.com/success",  "successUrl": "https://example.com/success",  "failureUrl": "https://example.com/failure",  "retryUrl": "https://example.com/retry",  "ageVerification": {    "minimumAge": 0,    "country": "DK"  }}