From f01e0b563767c11c612cc8d6ac5e9d11766e22a4 Mon Sep 17 00:00:00 2001 From: Daniel Anechitoaie Date: Fri, 1 Jun 2018 18:53:04 +0300 Subject: [PATCH] Update to OCAPI help message --- .../help/projectConfig-ocCredentialsId.html | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/main/webapp/help/projectConfig-ocCredentialsId.html b/src/main/webapp/help/projectConfig-ocCredentialsId.html index a6f3f21..d9bb9eb 100644 --- a/src/main/webapp/help/projectConfig-ocCredentialsId.html +++ b/src/main/webapp/help/projectConfig-ocCredentialsId.html @@ -2,4 +2,34 @@ Open Commerce API credentials of type "OSF Builder Suite :: Open Commerce API Credentials" for the SFCC instance where this data to be imported. Select "- none -" if you deploy to a instance that does not require two factor auth. +
+
+ Commerce API Settings +
+ Go to "Administration > Site Development > Open Commerce API Settings", + select type "Data", select context "Global" and add following configuration: +
+
+
{
+    "_v": "18.3",
+    "clients": [
+        {
+            "client_id": "YOUR_CLIENT_ID",
+            "resources": [
+                {
+                    "resource_id": "/jobs/*/executions",
+                    "methods": ["post"],
+                    "read_attributes": "(**)",
+                    "write_attributes": "(**)"
+                },
+                {
+                    "resource_id": "/jobs/*/executions/*",
+                    "methods": ["get"],
+                    "read_attributes": "(**)",
+                    "write_attributes": "(**)"
+                }
+            ]
+        }
+    ]
+}