Order

Order object

NameTypeLengthDescription
totalGrossAmount number - required
Total gross amount of order. Must match the grossUnitPrice * quantity of order items
totalNetAmount number - required
Total net amount of order.
currency enum (EUR, NOK, SEK, DKK, CHF) - optional
Possible values include: 'EUR', 'NOK', 'SEK', 'DKK', 'CHF'. Order currency. If not set it will be taken from client's source system currency setting.
googleAnalyticsClientId string 50 optional
Client ID is the identifier used by Google Analytics to represent a browser instance or device
googleAnalyticsUserId string 50 optional
User ID identifies a user that may interact with content using different browser instances and devices
imageUrl string 2048 optional
Order image URL. Overview image of the invoice in MyAfterPay portal.The merchant can provide a working URL for a square or rectangle image. Size constraints: 100-1280px
items array of OrderItem - optional
Array of order items
merchantImageUrl string 2048 optional
Image URL for the merchants brand. This image is shown at the top of the order page in MyAfterPay
number string 50 optional
Order number. Unique order number provided by the merchant. A valid order number can include alphanumeric characters, dashes and underscores.
risk OrderRisk - optional
Risk data