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

MitAuthorizationRequest

subscriptionIdstring
Required

The ID of the subscription to charge

Format:
uuid
Example:
"01929a94-5fce-7ccc-a7e4-7e9249133b39"
amountinteger
Required

Amount in minor units (e.g., 1095 = 10.95 DKK)

Example:
100
currencystring
Nullable

The currency of the transaction. If set to null, then the same currency as the subscription was created for will be used.

Match:
^[A-Z]{3}$
Example:
"DKK"
referencestring

The merchant reference for the payment. This is typically used for the order id.

Example:
"subscription-charge-1"
instantCapturestring

If the payment should be captured instantly or not.

  • OFF indicates that the payment should not be captured instantly.
  • VOID indicates that the payment should be captured instantly and if somehow the instant capture fails the payment is voided.
  • NO_VOID indicates that the payment should be captured instantly and if the capture fails the authorization is kept (no void is made)
Possible values:
"OFF""VOID""NO_VOID"
Example:
"OFF"
textOnStatementstring

The text to show on the cardholder bank statement. Many providers do not support long texts. Epay will cut the text to match the acquirer limitations.

Length:
1 <= length <= 39
Example:
"WineBox subscription"
descriptorstring
Nullable

Optional descriptor for the transaction. It overrides the Point of Sale descriptor unless the acquirer agreement has its own descriptor.

Descriptor override must be enabled for your account before you send this field. Contact ePay to enable it.

Length:
1 <= length <= 22
Example:
"WineBox"
notificationUrlstring
Required

The URL to receive the webhook with the transaction result

Format:
uri
Example:
"https://example.com/epay/notification"

A list of pass-through parameters that will be sent back on the notification URL

MitAuthorizationRequest
{  "subscriptionId": "01929a94-5fce-7ccc-a7e4-7e9249133b39",  "amount": 100,  "currency": "DKK",  "reference": "subscription-charge-1",  "instantCapture": "OFF",  "textOnStatement": "WineBox subscription",  "descriptor": "WineBox",  "notificationUrl": "https://example.com/epay/notification",  "attributes": {    "property1": null,    "property2": null  }}