PhysicalSaleTransactionData
Physical sale data used to create the terminal transaction.
The ID of the Softpay point of sale to associate the physical sale with.
01924737-9c18-71c0-ab1a-88698eaceabfThe transaction type to process. Use PAYMENT for purchases and PAYOUT for refunds. Defaults to PAYMENT if not given.
Note that PAYOUT requires the feature to be enabled by SoftPay.
Possible values: [PAYMENT, PAYOUT]
PAYMENTPAYMENTThe amount must be defined in minor units. E.g. 2,50 DKK must be set as 250.
1000The currency code of the payment. For Danish Kroner defined as DKK. ISO 4217 alpha-3 (e.g., DKK)
Possible values: Value must match regular expression ^[A-Z]{3}$
DKKThe URL to receive the webhook with the final transaction result.
Possible values: <= 1024 characters
https://example.com/notificationThis is the transaction reference, similar to an order ID.
The reference SHOULD be unique for each payment, as some acquirers enforce per-payment uniqueness.
Using a duplicate reference may result in failed payments or make reconciliation difficult.
Only ASCII alphanumeric characters and dashes are allowed.
Possible values: non-empty and <= 36 characters, Value must match regular expression ^[A-Za-z0-9-]{1,36}$
store-sale-1attributes objectnullable
A list of pass through attributes that is sent back to the merchant on webhooks. Max size is 1kb.
A list of pass through attributes that is sent back to the merchant on webhooks. Max size is 1kb.
{"orderId":"order-123","cashRegisterId":"register-7"}An optional merchant defined customer id used to uniquely identify a user in the merchant system.
User159customer objectnullable
Customer info associated with the sale. It is recommended to send all the info that is available.
The first name of the paying customer.
Possible values: non-empty
PeterThe last name of the paying customer.
Possible values: non-empty
NielsenThe date of birth of the cardholder in YYYY-MM-DD format.
2000-07-25The email of the paying customer.
Possible values: non-empty
email@example.comE.164 phone number format with a single space between country code and local number. No additional spaces allowed.
Format: "+[countryCode] [number]".
Possible values: Value must match regular expression ^\+\d{1,3} \d+$
+45 12345678shippingAddress objectnullable
The shipping address of the purchase. If no wares are shipped, leave this empty. If billing and shipping address is the same, then fill both properties with identical information.
ISO 3166-1 alpha-2 country code
Possible values: >= 2 characters and <= 2 characters
DKThe local postal code of the address
Possible values: non-empty and <= 16 characters
1400The city
Possible values: non-empty and <= 50 characters
KøbenhavnThe first address line. Most address only has a singular line.
Possible values: non-empty and <= 50 characters
Torvegade 45Second address line. Only use if address contains multiple lines. Always start with line1.
Possible values: non-empty and <= 50 characters
2. th.Third address line. Only use if address contains multiple lines. Always start with line1 and line2.
Possible values: non-empty and <= 50 characters
ChristianshavnbillingAddress objectnullable
The billing address of the customer. Often the personal address of the customer or the business address of paying company. If billing and shipping address is the same, then fill both properties with identical information.
ISO 3166-1 alpha-2 country code
Possible values: >= 2 characters and <= 2 characters
DKThe local postal code of the address
Possible values: non-empty and <= 16 characters
1400The city
Possible values: non-empty and <= 50 characters
KøbenhavnThe first address line. Most address only has a singular line.
Possible values: non-empty and <= 50 characters
Torvegade 45Second address line. Only use if address contains multiple lines. Always start with line1.
Possible values: non-empty and <= 50 characters
2. th.Third address line. Only use if address contains multiple lines. Always start with line1 and line2.
Possible values: non-empty and <= 50 characters
Christianshavn{
"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"
}
}
}