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

CreateMotoTransactionRequest

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" ]
textOnStatementstring
Nullable
Length:
1 <= length <= 39
Example:
"order 123"
customerIdstring
Nullable
Example:
"User159"
Example:
{ "firstName": "Peter", "lastName": "Nielsen", "email": "email@example.com" }
preAuthUrlstring
Nullable
Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/preAuth"
Items:
items <= 1000
CreateMotoTransactionRequest
{  "transaction": {    "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"    },    "preAuthUrl": "https://example.com/preAuth",    "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"      }    }  },  "paymentMethod": {    "card": {      "cardNumber": 1234567812345678,      "expiryMonth": "07",      "expiryYear": "35",      "securityCode": "123",      "brand": "Visa"    }  }}