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

CreateMotoTransactionRequest

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"    }  }}