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

PhysicalSaleTransactionData

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" }
[key: string]unknown
customerIdstring
Nullable
Example:
"User159"
nullnever
PhysicalSaleTransactionData
{  "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"    }  }}