Items List
info
Items are used to provide a detailed list of items that the customer is purchasing.
This information is displayed on the checkout page.
Request Example
{
"type": "PayByLink",
"terminalIdentifier": "1adfe4a1",
"amount": 48900,
"currency": "ISK",
"items": [
{
"name": "Lollipops",
"amount": 42000,
"unitPrice": 23500,
"quantity": 2,
"amountWithoutDiscount": 47000
}
]
}
Request Field
Field | Subfield | Type | Required | Description | Example | Min Length | Max Length |
---|---|---|---|---|---|---|---|
items | Array | Optional | List of cart items. Each item should have the following fields: | - | - | 200 | |
name | String | Required | The name of the item. | item 1 | - | - | |
amount | Integer | Required | The amount of the item in minor units. | 42000 | - | - | |
unitPrice | Integer | Required | The amount of a single quantity of item in minor units. | 23500 | - | - | |
quantity | Integer | Required | The quantity of the items bought. | 2 | - | - | |
amountWithoutDiscount | Integer | Required | The amount of the item without discount in minor units. If provided, Amount cannot be higher than the amount without discount | 47000 | - | - |