Sitecore API catalog/OrderCloud//
- Refresh promotions on an order
List orders
Create an order
Retrieve an order
Create or update an order
Delete an order
Partially update an order
Auto-apply promotions to an order
List order approvals
Approve an order
Set a billing address
Partially update an order billing address
Cancel an order
Complete an order
Decline an order
List order eligible approvers
List eligible promotions for an order
Forward an order
Partially update an order from user
List order promotions
Add a promotion to an order
Remove a promotion from an order
Repeat an order
Create a new shipment containing all items on an order
List shipments for an order
Set a shipping address
Partially update an order shipping address
Split an order
Submit an order
Validate an order in its current state
Refresh promotions on an...
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: FullAccessOrderAdminShopper)
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/orders/{direction}/{orderID}/refreshpromotions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X POST \
'https://api.ordercloud.io/v1/orders/{direction}/{orderID}/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": [ { … } ] }