Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences between "Open Commerce API", "Demandware Order Management" and "Demandware API"

I'm wondering what are the differences between "Open Commerce API", "Demandware Order Management" and "Demandware API". Also I'd like to know how to get order information by using one of those APIs. Thanks a lot!

https://documentation.demandware.com/DOC1/index.jsp

like image 489
nike Avatar asked Mar 08 '16 09:03

nike


People also ask

What is Open Commerce API?

The Open Commerce API is a RESTful API that consists of three component APIs: Name. Description. Shop API, see Shop API resources and Shop API documents. Provides access to Commerce Cloud Digital storefront functionality.

What does Demandware do?

Demandware is a software technology company headquartered in Burlington, Massachusetts that provides a cloud-based unified e-commerce platform with mobile, AI personalization, order management capabilities, and related services for B2C and B2B retailers and brand manufacturers around the world.

What is demandware built on?

Demandware's core framework is built in Java that uses an efficient caching system that is based on Akamai technologies. The core framework of the same is so close to third parties and can be exposed through the Demandware script and Demandware's own pipelet system.

What language is used for Salesforce Commerce Cloud?

We have three core languages in this framework: - ISML: Markup language for views. - Digital Script (. ds): Server-side scripting language based on Javascript that is used throughout the platform.


2 Answers

The Open Commerce API, or more commonly OCAPI is a RESTful API that consists of three component APIs (as of v16.3):

  • Shop API (Provides access to Demandware storefront functionality)
  • Data API (Provides access to Demandware application configuration and integration functionality on a per object basis)
  • Meta API (Provides access to a formal description of the resources and documents available in the Open Commerce API)

Demandware Order Management is Business Manager module named Orders (under Merchant Tools) that you can find, update, export or track orders.


Demandware API is actually what you see in that documentation page. It can be found in Eclipse (Help > Help Contents > Demandware API) as well.


If you are going to use DWAPI, it's really easy:

function getOrder(orderNo) {
  var OrderMgr = require('dw/order/OrderMgr');

  return new Order(OrderMgr.getOrder(orderNo));
}    

Or, you can use OCAPI, it's also easy but it requires some kind of authentication first.

Get order

Gets information for an order.

URL: GET https://hostname:port/dw/shop/v16_2/orders/{order_no}

Formats: json, xml

Authentication: OAuthOrJWT - Requests with an OAuth token or Customer JWT token are supported.

Response Document: Order


So, please explain where do you want to use your order details.

like image 175
Gökay Gürcan Avatar answered Sep 27 '22 17:09

Gökay Gürcan


There is also a separate product called Demandware Order Center, which has its own separate set of API classes in the Demandware Script API.

The way you have asked your question is way too broad.

EDIT: If you provide some background as to what problem you are trying to solve, we may be able to identify which API you should look at.

like image 25
Zlatin Zlatev Avatar answered Sep 27 '22 19:09

Zlatin Zlatev