Shopping Cart APIs
The following APIs are used for various shopping cart functions.
- Get Shopping Cart
- Create Shopping Cart
- Get Shopping Cart By Id
- Delete Shopping Cart By Id
- Update Shopping Cart
- Get Shopping Cart Update Event
- Get Shopping Cart Delete Event
- Get Shopping Cart Create Event
$OPE_HOME/samples/request_response/ShoppingCartRequest.json
file.Get Shopping Cart
Method: HTTP GET
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart
Create Shopping Cart
Method: HTTP POST
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart
Get Shopping Cart By Id
Method: HTTP GET
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart/{id}
Parameters: fields
and Id
(mandatory)
Delete Shopping Cart By Id
Method: HTTP DELETE
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart/{id}
Parameters: Id
(mandatory)
Update Shopping Cart
Method: HTTP PATCH
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart/{id}
Get Shopping Cart Update Event
Method: HTTP GET
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart/updateevent
Get Shopping Cart Delete Event
Method: HTTP GET
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart/deleteevent
Get Shopping Cart Create Event
Method: HTTP GET
Endpoint: http://<host_address>:<port_address>/v1/shoppingCart/createevent
The Shopping Cart Update Event, Delete Event, and Create Event APIs are Streaming APIs and are not yet supported on OpenAPI Specification 3.0 version. You can perform these API functions on a web browser.
To get notifications about any of the events (update, delete, or create), you must subscribe to the event.