Skip to main content

Carts

Get cart headers​

This endpoint allows you to get the cart headers for the authenticated user. Only open baskets are returned

URL : /so-carts

Method :

Auth required : Yes

Permissions required : No

Query parameters : Default filters

Success Response​

Condition : If cart headers are found.

Code : 200 OK

Content example

[
{
"bCollectiveInvoice": false,
"dtDeliveryDate": 1628812800000,
"dtEntryDate": 1628861902000,
"dtOrderDate": 1628861902000,
"lngCampaignID": 0,
"lngContactID": 0,
"lngCustomerID": 2003039,
"lngOrderID": 2102100000521,
"lngPayConnectionID": 0,
"lngProjectID": 0,
"oDeliveryAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "St. Florian am Inn",
"sCompany1": "Weyland GmbH",
"sCompany2": "",
"sContact": "",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "Haid 26",
"sZipBox": "",
"sZipCode": "4782"
},
"oInvoiceAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "St. Florian am Inn",
"sCompany1": "Weyland GmbH",
"sCompany2": "",
"sContact": "",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "Haid 26",
"sZipBox": "",
"sZipCode": "4782"
},
"sCartName": "",
"sContactName": "",
"sMemo": "",
"sOrderKind": "",
"sOrderText": "",
"sOrderType": "A100",
"sPaymentID": "",
"sPaymentIDType": "",
"shtBlocked": 1,
"shtOfferStatus": 0,
"shtPaymentCondition": 5,
"shtShippingCondition": 2,
"shtStatus": 1
}
]

or

Condition : no cart headers have been found.

Content example

{
"text": "Keine Warenkörbe gefunden."
}

Get cart by id​

This endpoint allows you to get a cart by id

URL : /carts/:id

Method :

Auth required : Yes

Permissions required : No

Success Response​

Condition : If the cart is found.

Code : 200 OK

Content example

{
"oSalesItemList": [
{
"bAlternativeItem": false,
"bBlockDelivery": false,
"bPartialDelivery": false,
"decFactorSalesPrice": 1.000000000000000,
"decItemGrossAmountFC": 1466.4000,
"decItemNetAmountFC": 1222.00,
"decItemTaxAmountFC": 0,
"decPrice": 1222.00,
"decPriceFactor": 1.00000000000000,
"decPricePG": 0,
"decQuantity": 0,
"decQuantityDelivered": 1.000,
"decQuantityDelivered2": 0,
"decQuantityOrdered": 1.000,
"decSalesPrice": 0,
"decTaxRate": 20.00,
"dtDeliveryDate": 1628812800000,
"dtDeliveryNoteIDDate": 0,
"dtInvoiceDate": 0,
"dtRequestedDate": 1628812800000,
"lngCampaignID": 0,
"lngCustomerOrderID": 0,
"lngDeliveryNoteID": 0,
"lngGoodsReceiptID": 0,
"lngInvoiceID": 0,
"lngOrderID": 2102100000521,
"lngPackingListID": 0,
"lngSalesPriceUnit": 0,
"lngSupplierID": 3000513,
"oArticle": null,
"oDiscount1": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount2": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount3": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount4": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount5": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount6": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"sArticleID": "BAMTEC",
"sArticleIDOfDataSupplier": null,
"sArticleName": "Bamtec - Bewehrungsteppich Durchmesser: 8-30 mm",
"sCustomerArticleID": "",
"sItemText": "",
"sItemType": "P",
"sItemsListID": "",
"sOfferStatus": null,
"sOrderStatus": "offen",
"sOrderText": null,
"sOrderType": "A100",
"sPurchOrderNumber": null,
"sQuantityUnit": "stk",
"sTaxCode": "MAT20",
"sUniformNumber": "22249340",
"shtBranchID": 0,
"shtFixedItemID": 1,
"shtHasAdditionalItems": 0,
"shtIsAdditionalToItem": 0,
"shtItemID": 1,
"shtItemsList": 0,
"shtOfferStatus": 0,
"shtPlanningCode": 0,
"shtRestOfItem": 0,
"shtStatus": 1,
"shtStorageID": 2000
},
{
"bAlternativeItem": false,
"bBlockDelivery": false,
"bPartialDelivery": false,
"decFactorSalesPrice": 1.000000000000000,
"decItemGrossAmountFC": 1466.4000,
"decItemNetAmountFC": 1222.00,
"decItemTaxAmountFC": 0,
"decPrice": 1222.00,
"decPriceFactor": 1.00000000000000,
"decPricePG": 0,
"decQuantity": 0,
"decQuantityDelivered": 1.000,
"decQuantityDelivered2": 0,
"decQuantityOrdered": 1.000,
"decSalesPrice": 0,
"decTaxRate": 20.00,
"dtDeliveryDate": 1628812800000,
"dtDeliveryNoteIDDate": 0,
"dtInvoiceDate": 0,
"dtRequestedDate": 1628812800000,
"lngCampaignID": 0,
"lngCustomerOrderID": 0,
"lngDeliveryNoteID": 0,
"lngGoodsReceiptID": 0,
"lngInvoiceID": 0,
"lngOrderID": 2102100000521,
"lngPackingListID": 0,
"lngSalesPriceUnit": 0,
"lngSupplierID": 3000513,
"oArticle": null,
"oDiscount1": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount2": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount3": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount4": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount5": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"oDiscount6": {
"decDiscountAmount": 0.00,
"decDiscountPercent": 0.00,
"decDiscountValue": 0,
"lngDiscountID": 0,
"sDiscountText": "",
"sDiscountType": ""
},
"sArticleID": "VORFERTIGUNG",
"sArticleIDOfDataSupplier": null,
"sArticleName": "vorgefertigte Bewehrung, lt. Plan ",
"sCustomerArticleID": "",
"sItemText": "",
"sItemType": "P",
"sItemsListID": "",
"sOfferStatus": null,
"sOrderStatus": "offen",
"sOrderText": null,
"sOrderType": "A100",
"sPurchOrderNumber": null,
"sQuantityUnit": "stk",
"sTaxCode": "MAT20",
"sUniformNumber": "22249388",
"shtBranchID": 0,
"shtFixedItemID": 2,
"shtHasAdditionalItems": 0,
"shtIsAdditionalToItem": 0,
"shtItemID": 2,
"shtItemsList": 0,
"shtOfferStatus": 0,
"shtPlanningCode": 0,
"shtRestOfItem": 0,
"shtStatus": 1,
"shtStorageID": 2000
}
],
"oSalesMaster": {
"bCollectiveInvoice": false,
"dtDeliveryDate": 1628812800000,
"dtEntryDate": 1628861902000,
"dtOrderDate": 1628861902000,
"lngCampaignID": 0,
"lngContactID": 0,
"lngCustomerID": 2003039,
"lngOrderID": 2102100000521,
"lngPayConnectionID": 0,
"lngProjectID": 0,
"oDeliveryAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "St. Florian am Inn",
"sCompany1": "Weyland GmbH",
"sCompany2": "",
"sContact": "",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "Haid 26",
"sZipBox": "",
"sZipCode": "4782"
},
"oInvoiceAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "St. Florian am Inn",
"sCompany1": "Weyland GmbH",
"sCompany2": "",
"sContact": "",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "Haid 26",
"sZipBox": "",
"sZipCode": "4782"
},
"sCartName": "",
"sContactName": "",
"sMemo": "",
"sOrderKind": "",
"sOrderText": "",
"sOrderType": "A100",
"sPaymentID": "",
"sPaymentIDType": "",
"shtBlocked": 1,
"shtOfferStatus": 0,
"shtPaymentCondition": 5,
"shtShippingCondition": 2,
"shtStatus": 1
}
}

or

Condition : if no cart is found.

Content example

{
"text": "Warenkorb nicht gefunden"
}

Create cart​

This endpoint allows you to create a cart

URL : /carts

Method :

Auth required : Yes

Permissions required : No

Body

{
"lngCampaignID": 0,
"lngProjectId": 0,
"sContactName": "testContact",
"sCartName": "testcart 200",
"oDeliveryAddress":
{
"sCity": "deliverCity",
"sCompany1": "deliverTest1",
"sCompany2": "deliverTest2",
"sContact": "deliverContact",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sStreet": "deliverStreet 123",
"sZipCode": "4321"
}
}

Success Response​

Condition : If the cart is successfully created.

Code : 200 OK

Content example

{
"bCollectiveInvoice": false,
"dtDeliveryDate": 1636502400000,
"dtEntryDate": 1636542113000,
"dtOrderDate": 1636542112000,
"lngCampaignID": 0,
"lngContactID": 103212,
"lngCustomerID": 10010,
"lngOrderID": 2100065,
"lngPayConnectionID": 0,
"lngProjectID": 0,
"oDeliveryAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "deliverCity",
"sCompany1": "deliverTest1",
"sCompany2": "deliverTest2",
"sContact": "deliverContact",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "deliverStreet 123",
"sZipBox": "",
"sZipCode": "4321"
},
"oInvoiceAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "Dübendorf",
"sCompany1": "LOBOS Informatik AG",
"sCompany2": "",
"sContact": "testContact",
"sCountry": "Schweiz",
"sCountryCode": "CH",
"sMemo": "",
"sPostBox": "",
"sStreet": "Auenstrasse 4",
"sZipBox": "",
"sZipCode": "8600"
},
"sCartName": "testcart 200",
"sContactName": "Herr Alexander Widmer",
"sMemo": "",
"sOrderKind": "Webshop",
"sOrderText": "",
"sOrderType": "A",
"sPaymentID": "",
"sPaymentIDType": "",
"shtBlocked": 0,
"shtOfferStatus": 0,
"shtPaymentCondition": 1,
"shtShippingCondition": 2,
"shtStatus": 1
}

or

Condition : If the shopping cart could not be created.

Content example

{
"text": "Fehler beim Anlegen des Warenkorbes"
}

Update cart​

This endpoint allows you to update a cart

URL : /carts/:id

Method :

Auth required : Yes

Permissions required : No

Body

{
"bCollectiveInvoice": false,
"dtDeliveryDate": 1636502400000,
"dtEntryDate": 1636542113000,
"dtOrderDate": 1636542112000,
"lngCampaignID": 0,
"lngContactID": 103212,
"lngCustomerID": 10010,
"lngOrderID": 2100065,
"lngPayConnectionID": 0,
"lngProjectID": 0,
"oDeliveryAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "deliverCity",
"sCompany1": "deliverTest1",
"sCompany2": "deliverTest2",
"sContact": "deliverContact",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "deliverStreet 123",
"sZipBox": "",
"sZipCode": "4321"
},
"oInvoiceAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "Dübendorf",
"sCompany1": "LOBOS Informatik AG",
"sCompany2": "",
"sContact": "testContact",
"sCountry": "Schweiz",
"sCountryCode": "CH",
"sMemo": "",
"sPostBox": "",
"sStreet": "Auenstrasse 4",
"sZipBox": "",
"sZipCode": "8600"
},
"sCartName": "testcart 200",
"sContactName": "Herr Alexander Widmer",
"sMemo": "",
"sOrderKind": "Webshop",
"sOrderText": "",
"sOrderType": "A",
"sPaymentID": "",
"sPaymentIDType": "",
"shtBlocked": 0,
"shtOfferStatus": 0,
"shtPaymentCondition": 1,
"shtShippingCondition": 2,
"shtStatus": 1
}

Success Response​

Condition : If the cart is successfully updated.

Code : 200 OK

Content example

{
"oSalesItemList": [],
"oSalesMaster": {
"bCollectiveInvoice": false,
"dtDeliveryDate": 1636502400000,
"dtEntryDate": 1636542113000,
"dtOrderDate": 1636542112000,
"lngCampaignID": 0,
"lngContactID": 103212,
"lngCustomerID": 10010,
"lngOrderID": 2100065,
"lngPayConnectionID": 0,
"lngProjectID": 0,
"oDeliveryAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "deliverCity",
"sCompany1": "deliverTest1",
"sCompany2": "deliverTest2",
"sContact": "deliverContact",
"sCountry": "Österreich",
"sCountryCode": "AT",
"sMemo": "",
"sPostBox": "",
"sStreet": "deliverStreet 123",
"sZipBox": "",
"sZipCode": "4321"
},
"oInvoiceAddress": {
"lngAddressID": null,
"lngContactID": null,
"lngCustomerID": null,
"lngRouteBaseID": null,
"sCity": "Dübendorf",
"sCompany1": "LOBOS Informatik AG",
"sCompany2": "",
"sContact": "testContact",
"sCountry": "Schweiz",
"sCountryCode": "CH",
"sMemo": "",
"sPostBox": "",
"sStreet": "Auenstrasse 4",
"sZipBox": "",
"sZipCode": "8600"
},
"sCartName": "testcart 200",
"sContactName": "Herr Alexander Widmer",
"sMemo": "",
"sOrderKind": "Webshop",
"sOrderText": "",
"sOrderType": "A",
"sPaymentID": "",
"sPaymentIDType": "",
"shtBlocked": 0,
"shtOfferStatus": 0,
"shtPaymentCondition": 1,
"shtShippingCondition": 2,
"shtStatus": 1
}
}

Delete cart​

This endpoint allows you to delete a cart

URL : /carts/:id

Method :

Auth required : Yes

Permissions required : No

Body

None

Success Response​

Condition : If the cart is deleted successfully.

Code : 200 OK

Content example

None

Create cart-item​

This endpoint allows you create a cart-item

URL : /carts/:id/items

Method :

Auth required : Yes

Permissions required : No

Body

{
"sArticleID": "17074POTR",
"decQuantityOrdered": 7.000,
"sQuantityUnit": "stk"
}

Success Response​

Condition : If the item is succesfully created.

Code : 200 OK

Content example

{
...
}

Update cart-item​

This endpoint allows you to update a item

URL : /carts/:id/items/:id

Method :

Auth required : Yes

Permissions required : No

Body

{
...
}

Success Response​

Condition : If the cart is updated successfully.

Code : 200 OK

Content example

{
...
}

Delete cart-item​

This endpoint allows you to delete a cart-item

URL : /carts/:id/items/:id

Method :

Auth required : Yes

Permissions required : No

Body

None

Success Response​

Condition : If the cart-item is deleted successfully.

Code : 200 OK

Content example

None