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

CreatePhysicalSaleRequest

nullnever

Physical sale data used to create the terminal transaction.

pointOfSaleIdstring
Required
Format:
uuid
Example:
"01924737-9c18-71c0-ab1a-88698eaceabf"
typestring
Nullable
Default:
"PAYMENT"
Possible values:
"PAYMENT""PAYOUT"
Example:
"PAYMENT"
amountinteger
Required
Example:
1000
currencystring
Required
Match:
^[A-Z]{3}$
Example:
"DKK"
notificationUrlstring
Required
Format:
uri
Length:
length <= 1024
Example:
"https://example.com/notification"
referencestring
Nullable
Match:
^[A-Za-z0-9-]{1,36}$
Length:
1 <= length <= 36
Example:
"store-sale-1"
Example:
{ "orderId": "order-123", "cashRegisterId": "register-7" }
customerIdstring
Nullable
Example:
"User159"
CreatePhysicalSaleRequest
{  "terminal": {    "id": "0197c07b-3f6d-7be2-b848-702b08958128",    "suppressAppNotifications": false,    "switchBackTimeout": 0,    "activityToResume": null,    "surcharge": false,    "dcc": false  },  "transaction": {    "pointOfSaleId": "01924737-9c18-71c0-ab1a-88698eaceabf",    "type": "PAYMENT",    "amount": 1000,    "currency": "DKK",    "notificationUrl": "https://example.com/notification",    "reference": "store-sale-1",    "attributes": {      "orderId": "order-123",      "cashRegisterId": "register-7"    },    "customerId": "User159",    "customer": {      "firstName": "Peter",      "lastName": "Nielsen",      "birthdate": "2000-07-25",      "email": "email@example.com",      "phoneNumber": "+45 12345678",      "shippingAddress": {        "countryCode": "DK",        "postalCode": "1400",        "city": "København",        "line1": "Torvegade 45"      },      "billingAddress": {        "countryCode": "DK",        "postalCode": "1400",        "city": "København",        "line1": "Torvegade 45"      }    }  }}