Sitecore API catalog/OrderCloud//
- Refresh promotions on 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
Calculate the cart
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
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
Refresh promotions on the...
Re-calculates promotion discounts, removes promotions that are no longer valid, and adds eligible promotions where AutoApply=true (up to limit of 100)
Security
OAuth2(Required scopes: FullAccessShopper)
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/cart/refreshpromotions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X POST \
https://api.ordercloud.io/v1/cart/refreshpromotions \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Re-calculates promotion discounts, removes promotions that are no longer valid, and adds eligible promotions where AutoApply=true (up to limit of 100)
Promotions that were auto-applied.
Example:
[ { "LineItemID": "", "Amount": 0, "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": {} } ]
Promotions that were removed due to ineligibility or other reasons.
Example:
[ { "ErrorCode": "", "Reason": "", "LineItemID": "", "Amount": 0, "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": {} } ]
Response
{ "PromosAdded": [ { … } ], "PromosRemoved": [ { … } ] }