Sitecore API catalog/OrderCloud//
- Calculate the cart
Retrieve a cart
Create or update a cart
Delete a cart
Partially update a cart
Set an active cart
Auto-apply promotions to the cart
Set a billing address
Partially update a cart billing address
Create a cart bundle item
Delete a cart bundle item
List eligible promotions for the cart
Estimate shipping cost
Partially update a cart from user
List cart line items
Create a cart line item
Retrieve a cart line item
Create or update a cart line item
Delete a cart line item
Partially update a cart line item
List cart payments
Create a cart payment
Retrieve a cart payment
Delete a cart payment
Partially update a cart payment
Create a cart payment transaction
Delete a cart payment transaction
List cart promotions
Add a promotion
Delete a cart promotion
Refresh promotions on the cart
Select a ship method
Set a shipping address
Partially update a cart shipping address
Submit the cart
Validate the cart in it's current state
Retrieve a cart order worksheet
Calculate the cart
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/cart/calculate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X POST \
https://api.ordercloud.io/v1/cart/calculate \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Example:
{ "ID": "", "FromUser": { "ID": "", "CompanyID": "", "Username": "", "Password": "", "FirstName": "", "LastName": "", "Email": "", "Phone": "", "TermsAccepted": "2018-01-01T00:00:00-06:00", "Active": false, "xp": {}, "AvailableRoles": [ … ], "Locale": { … }, "DateCreated": "2018-01-01T00:00:00-06:00", "LastActive": "2018-01-01T00:00:00-06:00", "PasswordLastSetDate": "2018-01-01T00:00:00-06:00" }, "FromCompanyID": "", "ToCompanyID": "", "FromUserID": "", "BillingAddressID": "", "BillingAddress": { "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} }, "ShippingAddressID": "", "Comments": "", "LineItemCount": 0, "Status": "Unsubmitted", "DateCreated": "2018-01-01T00:00:00-06:00", "DateSubmitted": "2018-01-01T00:00:00-06:00", "DateApproved": "2018-01-01T00:00:00-06:00", "DateDeclined": "2018-01-01T00:00:00-06:00", "DateCanceled": "2018-01-01T00:00:00-06:00", "DateCompleted": "2018-01-01T00:00:00-06:00", "LastUpdated": "2018-01-01T00:00:00-06:00", "Subtotal": 0, "ShippingCost": 0, "TaxCost": 0, "Gratuity": 0, "Fees": 0, "BaseDiscount": 0, "PromotionDiscount": 0, "Currency": "", "Total": 0, "IsSubmitted": false, "SubscriptionID": "", "xp": {} }
Example:
[ { "ID": "", "ProductID": "", "Quantity": 0, "BundleItemID": "", "IsBundle": false, "DateAdded": "2018-01-01T00:00:00-06:00", "QuantityShipped": 0, "UnitPrice": 0, "PromotionDiscount": 0, "BaseDiscount": 0, "DiscountID": "", "LineTotal": 0, "LineSubtotal": 0, "CostCenter": "", "DateNeeded": "2018-01-01T00:00:00-06:00", "ShippingAccount": "", "ShippingAddressID": "", "ShipFromAddressID": "", "Product": { … }, "Variant": { … }, "ShippingAddress": { … }, "ShipFromAddress": { … }, "SupplierID": "", "InventoryRecordID": "", "PriceScheduleID": "", "IsOnSale": false, "PriceOverridden": false, "Specs": [ … ], "IncomingOrderID": "", "OutgoingOrderID": "", "xp": {} } ]
Example:
[ { "Amount": 0, "LineItemID": "", "AmountOverridden": false, "DateApplied": "2018-01-01T00:00:00-06:00", "ID": "", "LineItemLevel": false, "Code": "", "Name": "", "RedemptionLimit": 0, "RedemptionLimitPerUser": 0, "RedemptionCount": 0, "QuantityLimitPerOrder": 0, "ItemLimitPerOrder": 0, "ItemSortBy": "", "Description": "", "FinePrint": "", "StartDate": "2018-01-01T00:00:00-06:00", "ExpirationDate": "2018-01-01T00:00:00-06:00", "EligibleExpression": "", "ValueExpression": "", "CanCombine": false, "AllowAllBuyers": false, "OwnerID": "", "AutoApply": false, "Active": false, "UseIntegration": false, "Priority": 0, "xp": {} } ]
Example:
{ "ID": "", "Frequency": 0, "Interval": "Days", "NextOrderDate": "2018-01-01T00:00:00-06:00", "LastOrderDate": "2018-01-01T00:00:00-06:00", "NotificationDate": "2018-01-01T00:00:00-06:00", "DateCreated": "2018-01-01T00:00:00-06:00", "EndDate": "2018-01-01T00:00:00-06:00", "Active": false, "FromCompanyID": "", "FromUserID": "", "ToCompanyID": "", "Payment": { "Type": "PurchaseOrder", "CreditCardID": "", "SpendingAccountID": "" }, "BillingAddressID": "", "ShippingAddressID": "", "ProjectedSubtotal": 0, "xp": {} }
Example:
{ "ShipEstimates": [ { … } ], "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }
Example:
{ "LineItemOverrides": [ { … } ], "ShippingTotal": 0, "TaxTotal": 0, "FeeTotal": 0, "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }
Example:
{ "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }
Example:
{ "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }
Example:
{ "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }
Response
{ "Order": { "ID": "", "FromUser": { … }, "FromCompanyID": "", "ToCompanyID": "", "FromUserID": "", "BillingAddressID": "", "BillingAddress": { … }, "ShippingAddressID": "", "Comments": "", "LineItemCount": 0, "Status": "Unsubmitted", "DateCreated": "2018-01-01T00:00:00-06:00", "DateSubmitted": "2018-01-01T00:00:00-06:00", "DateApproved": "2018-01-01T00:00:00-06:00", "DateDeclined": "2018-01-01T00:00:00-06:00", "DateCanceled": "2018-01-01T00:00:00-06:00", "DateCompleted": "2018-01-01T00:00:00-06:00", "LastUpdated": "2018-01-01T00:00:00-06:00", "Subtotal": 0, "ShippingCost": 0, "TaxCost": 0, "Gratuity": 0, "Fees": 0, "BaseDiscount": 0, "PromotionDiscount": 0, "Currency": "", "Total": 0, "IsSubmitted": false, "SubscriptionID": "", "xp": {} }, "LineItems": [ { … } ], "OrderPromotions": [ { … } ], "Subscription": { "ID": "", "Frequency": 0, "Interval": "Days", "NextOrderDate": "2018-01-01T00:00:00-06:00", "LastOrderDate": "2018-01-01T00:00:00-06:00", "NotificationDate": "2018-01-01T00:00:00-06:00", "DateCreated": "2018-01-01T00:00:00-06:00", "EndDate": "2018-01-01T00:00:00-06:00", "Active": false, "FromCompanyID": "", "FromUserID": "", "ToCompanyID": "", "Payment": { … }, "BillingAddressID": "", "ShippingAddressID": "", "ProjectedSubtotal": 0, "xp": {} }, "ShipEstimateResponse": { "ShipEstimates": [ … ], "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }, "OrderCalculateResponse": { "LineItemOverrides": [ … ], "ShippingTotal": 0, "TaxTotal": 0, "FeeTotal": 0, "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }, "OrderSubmitResponse": { "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }, "OrderSubmitForApprovalResponse": { "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }, "OrderApprovedResponse": { "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false }, "SubscriptionIntegrationResponse": { "HttpStatusCode": 0, "UnhandledErrorBody": "", "xp": {}, "Succeeded": false } }