Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Order approvals

Describes the Order approvals API handler in Optimizely Configured Commerce.

HTTP Verb – GET

URL – /api/v1/orderapprovals - * really same as /api/v1/carts

Description – Returns all of the carts awaiting approval for the logged in user.

Base – HandlerBase<GetCartCollectionParameter, GetCartCollectionResult>

Handlers –

OrderHandlerDescription
500GetCartCollectionHandlerGets collection of carts with a status of AwaitingApproval. If requester is not signed in then handler return error result. If BillToId parameter not specified then handler return carts for current bill to. If current user doesn't have any bill to then handler return error result.

HTTP Verb – GET

URL – /api/v1/orderapprovals/{cartId} - * really same as /api/v1/carts/{cartId}

Description – Return a single shopping cart awaiting approval

Base – HandlerBase<GetCartParameter, GetCartResult>

Handlers –

OrderHandlerDescription
500GetCartHandlerGets cart. If CartId parameter not specified then handler create new cart using current context.