Updates Buyer information on a basket. If no Payer is associated with the Basket or the Payer is the same as the Buyer then Payer will also be updated. The same applies to ShipTo.
The actual Customer to use as Buyer. The Customer can optionally have one Company. If more than one Company is specified, the first will be used. Addresses will be resolve by first looking at the Company and then on the Customer. See UpdatePayer and UpdateShip on details regarding updating these address types.
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
{- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Email": "string",
- "SSN": "string",
- "FirstName": "string",
- "LastName": "string",
- "Phone": "string",
- "CellPhone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "Account": {
- "Id": 0,
- "Key": "string",
- "LoginName": "string",
- "Name": "string",
- "Roles": [
- 0
], - "Authorizations": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "IsActive": true
}, - "Companies": [
- {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Name": "string",
- "OrgNo": "string",
- "Phone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "ParentId": 0,
- "DeliveryMethodIds": [
- 0
], - "PaymentMethodIds": [
- 0
], - "Email": "string",
- "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "VatNo": "string"
}
], - "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "CrmId": "string",
- "IsActive": true,
- "Created": "2019-08-24T14:15:22Z",
- "Updated": "2019-08-24T14:15:22Z"
}
{- "Basket": {
- "Id": 0,
- "CustomerId": 0,
- "CompanyId": 0,
- "SalesContactId": 0,
- "StatusId": 0,
- "CurrencyId": 0,
- "CurrencyCode": "string",
- "Comment": "string",
- "OrderReference": "string",
- "DiscountCode": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "ValidTo": "2019-08-24T14:15:22Z",
- "IsEditable": true,
- "Items": [
- {
- "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
}
], - "Info": [
- {
- "TypeId": 0,
- "Value": "string",
- "Code": "string"
}
], - "Summary": {
- "Items": {
- "Amount": 0,
- "Vat": 0,
- "AmountIncVat": 0
}, - "Freigt": {
- "Amount": 0,
- "Vat": 0,
- "AmountIncVat": 0
}, - "Fees": {
- "Amount": 0,
- "Vat": 0,
- "AmountIncVat": 0
}, - "Total": {
- "Amount": 0,
- "Vat": 0,
- "AmountIncVat": 0
}
}, - "AppliedPromotions": [
- {
- "Id": 0,
- "Name": "string",
- "Header": "string",
- "ShortDescription": "string",
- "Description1": "string",
- "Description2": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "ImageKey": "string",
- "RequirementSeed": "string",
- "DiscountCode": "string",
- "IsExcludedFromPriceCalculation": true,
- "AllowProductListing": true,
- "Images": [
- {
- "Id": 0,
- "Type": 0,
- "Name": "string",
- "Description": "string",
- "Key": "string"
}
], - "ProductFilters": [
- {
- "ManufacturerId": 0,
- "CategorySeed": "string",
- "TypeId": 0,
- "ProductId": 0,
- "VariantProductId": 0,
- "PartNo": "string",
- "PricelistId": 0,
- "FlagId": 0
}
], - "AppliedAmount": 0,
- "EffectSeed": "string",
- "FreightDiscountPct": 0,
- "IsStackable": true,
- "AppliedAmountIncVat": 0,
- "ExclusivityType": 0
}
], - "IpAddress": "string",
- "AttestedBy": 0,
- "TypeId": 0,
- "DoHold": true,
- "IsBuyable": true,
- "InvoiceReference": "string",
- "PaymentMethodId": 0,
- "DeliveryMethodId": 0,
- "SalesAreaId": 0
}, - "Buyer": {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Email": "string",
- "SSN": "string",
- "FirstName": "string",
- "LastName": "string",
- "Phone": "string",
- "CellPhone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "Account": {
- "Id": 0,
- "Key": "string",
- "LoginName": "string",
- "Name": "string",
- "Roles": [
- 0
], - "Authorizations": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "IsActive": true
}, - "Companies": [
- {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Name": "string",
- "OrgNo": "string",
- "Phone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "ParentId": 0,
- "DeliveryMethodIds": [
- 0
], - "PaymentMethodIds": [
- 0
], - "Email": "string",
- "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "VatNo": "string"
}
], - "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "CrmId": "string",
- "IsActive": true,
- "Created": "2019-08-24T14:15:22Z",
- "Updated": "2019-08-24T14:15:22Z"
}, - "Payer": {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Email": "string",
- "SSN": "string",
- "FirstName": "string",
- "LastName": "string",
- "Phone": "string",
- "CellPhone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "Account": {
- "Id": 0,
- "Key": "string",
- "LoginName": "string",
- "Name": "string",
- "Roles": [
- 0
], - "Authorizations": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "IsActive": true
}, - "Companies": [
- {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Name": "string",
- "OrgNo": "string",
- "Phone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "ParentId": 0,
- "DeliveryMethodIds": [
- 0
], - "PaymentMethodIds": [
- 0
], - "Email": "string",
- "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "VatNo": "string"
}
], - "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "CrmId": "string",
- "IsActive": true,
- "Created": "2019-08-24T14:15:22Z",
- "Updated": "2019-08-24T14:15:22Z"
}, - "ShipTo": {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Email": "string",
- "SSN": "string",
- "FirstName": "string",
- "LastName": "string",
- "Phone": "string",
- "CellPhone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "Account": {
- "Id": 0,
- "Key": "string",
- "LoginName": "string",
- "Name": "string",
- "Roles": [
- 0
], - "Authorizations": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "IsActive": true
}, - "Companies": [
- {
- "Id": 0,
- "Key": "string",
- "Code": "string",
- "Name": "string",
- "OrgNo": "string",
- "Phone": "string",
- "ReferId": 0,
- "ReferUrl": "string",
- "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "ParentId": 0,
- "DeliveryMethodIds": [
- 0
], - "PaymentMethodIds": [
- 0
], - "Email": "string",
- "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "VatNo": "string"
}
], - "DeliveryAddresses": [
- {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}
], - "InvoiceAddress": {
- "Id": 0,
- "CareOf": "string",
- "Line1": "string",
- "Line2": "string",
- "Zip": "string",
- "City": "string",
- "CountryId": 0,
- "Country": "string",
- "Region": "string",
- "IsValidated": true,
- "GlobalLocationNo": "string",
- "ShippingPhoneNumber": "string"
}, - "Flags": [
- {
- "Id": 0,
- "Name": "string",
- "Group": 0,
- "IsSelected": true
}
], - "UseInvoiceAddressAsDeliveryAddress": true,
- "Info": [
- {
- "Id": 0,
- "Value": "string",
- "Code": "string"
}
], - "PricelistIds": [
- 0
], - "CrmId": "string",
- "IsActive": true,
- "Created": "2019-08-24T14:15:22Z",
- "Updated": "2019-08-24T14:15:22Z"
}, - "PaymentMethods": [
- {
- "Id": 0,
- "Name": "string",
- "TypeId": 0,
- "TypeName": "string",
- "Description": "string",
- "PartNo": "string",
- "Price": 0,
- "VatRate": 0,
- "ImagePath": "string",
- "IsSelected": true,
- "Service": {
- "Id": 0,
- "Name": "string",
- "Description": "string",
- "ImagePath": "string",
- "ImageKey": "string"
}, - "ImageKey": "string",
- "IsForCompanyOnly": true,
- "IsForPersonOnly": true
}
], - "DeliveryMethods": [
- {
- "Id": 0,
- "Name": "string",
- "TypeId": 0,
- "TypeName": "string",
- "Description": "string",
- "PartNo": "string",
- "Price": 0,
- "VatRate": 0,
- "IsNotifiable": true,
- "ImagePath": "string",
- "IsSelected": true,
- "ImageKey": "string",
- "IsForCompanyOnly": true,
- "IsForPersonOnly": true,
- "Cost": 0,
- "StoreId": 0,
- "WarehouseId": 0,
- "LocationId": 0,
- "DropPoints": [
- {
- "Code": "string",
- "RoutingCode": "string",
- "Depot": "string",
- "Name1": "string",
- "Name2": "string",
- "Address1": "string",
- "Address2": "string",
- "PostalCode": "string",
- "City": "string",
- "CountryCode": "string",
- "Contact": "string",
- "Phone": "string",
- "Fax": "string",
- "Email": "string",
- "Latitude": 0,
- "Longitude": 0,
- "Distance": 0,
- "OpeningHours": [
- {
- "Day": "string",
- "Open": "string",
- "Close": "string"
}
], - "IsSelected": true
}
], - "Code": "string",
- "Carrier": "string"
}
], - "Payments": [
- {
- "PaymentCode": 0,
- "Amount": 0,
- "CardNo": "string",
- "PaymentMethodId": 0,
- "PaymentServiceId": 0
}
]
}