Adds the provided items to the already checked out basket and updates the authorization for the payment. Calling this mehtod will close the basket.
The data needed to insert items post purchase
Array of objects <BasketItem> (BasketItem) The items to add to the purchase. The items to insert must have its PartNo, Quantity and PriceListId set. ParentLineNo, Name, Comment, ReferId and ReferUrl can be used if other values than the default are wanted. All other properties will be populated from the system. | |
Array of objects <NameValue> (NameValue) Roundtrip of the parameters received in the original payment response. |
Success
Bad Request
Key: BasketNotEditable. Gets raised when the basket is not editable or already paid for.
Key: InvalidCompanyOnBasket. Gets raised when the basket has an invalid company. The customer does not exist in this company.
Key: QuotationMissing. Gets raised when the basket is missing.
Internal Server Error
{- "ItemsToAdd": [
- {
- "Id": 0,
- "LineNo": 0,
- "ParentLineNo": 0,
- "ProductId": 0,
- "PartNo": "string",
- "ManufacturerPartNo": "string",
- "Name": "string",
- "SubHeader": "string",
- "ThumbnailImage": "string",
- "FlagIdSeed": "string",
- "Type": 0,
- "PriceDisplay": 0,
- "Price": 0,
- "PriceOriginal": 0,
- "Cost": 0,
- "VatRate": 0,
- "Quantity": 0,
- "UOM": "string",
- "UOMCount": 0,
- "Comment": "string",
- "PriceListId": 0,
- "ReferId": 0,
- "ReferUrl": "string",
- "IsEditable": true,
- "IsDiscountable": true,
- "Info": [
- {
- "TypeId": 0,
- "Value": "string",
- "Code": "string"
}
], - "OptionalItems": [
- { }
], - "OnHandValue": 0,
- "IncomingValue": 0,
- "NextDeliveryDate": "2019-08-24T14:15:22Z",
- "LeadtimeDayCount": 0,
- "PromotionIdSeed": "string",
- "ImageKey": "string",
- "ManufacturerName": "string",
- "CategoryId": 0,
- "OnHand": {
- "Value": 0,
- "IncomingValue": 0,
- "NextDeliveryDate": "2019-08-24T14:15:22Z",
- "LeadtimeDayCount": 0,
- "LastChecked": "2019-08-24T14:15:22Z",
- "IsActive": true,
- "IsReturnable": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
]
}, - "OnHandSupplier": {
- "Value": 0,
- "IncomingValue": 0,
- "NextDeliveryDate": "2019-08-24T14:15:22Z",
- "LeadtimeDayCount": 0,
- "LastChecked": "2019-08-24T14:15:22Z",
- "IsActive": true,
- "IsReturnable": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
]
}, - "PriceRecommended": 0,
- "ManufacturerId": 0,
- "UniqueName": "string",
- "StatusId": 0,
- "StockDisplayBreakPoint": 0,
- "PriceCatalog": 0,
- "IsBuyable": true,
- "SubDescription": "string",
- "CategoryIdSeed": "string",
- "RecommendedQuantity": 0,
- "IsRecommendedQuantityFixed": true,
- "AppliedPromotions": [
- {
- "Id": 0,
- "Name": "string",
- "DiscountCode": "string",
- "AppliedAmount": 0,
- "AppliedAmountIncVat": 0
}
], - "RequirementPromotionIdSeed": "string",
- "IsSubscribable": true,
- "DescriptionHeader": "string",
- "IsPriceManual": true,
- "PriceStandard": 0,
- "EanCode": "string",
- "CostUnit": 0,
- "PriceDisplayIncVat": 0,
- "PriceListLocked": true,
- "PriceOriginalIncVat": 0,
- "PriceRecommendedIncVat": 0,
- "PriceCatalogIncVat": 0,
- "PriceStandardIncVat": 0
}
], - "PaymentParameters": [
- {
- "Name": "string",
- "Value": "string"
}
]
}
{- "Status": "string",
- "StatusDescription": "string",
- "BasketId": 0,
- "OrderNo": "string",
- "PaymentCode": "string",
- "PaymentReference": "string",
- "HostedPaymentPage": "string",
- "RedirectUrl": "string",
- "RedirectParameters": [
- {
- "Name": "string",
- "Value": "string"
}
], - "IsSyncronous": true,
- "PaymentServiceId": 0
}