When attempting to make calls to the Shop and Data SFCC APIs with a sandbox store, is it the sandbox URL itself that should take the place of "https://hostname:port" in the endpoint URL? It's not super clear from the documentation. My SFCC sandbox URL is in the format "https://XXX-001.sandbox.us01.dx.commercecloud.salesforce.com/on/demandware.store/Sites-Site/" (realm ID redacted here). Using that URL with the format suggested by SFCC's API docs doesn't seem to do the trick, but I'm lost as to what other URL would be used here.
What base URL should be used with SFCC endpoints for sandbox instances?
1.1k Views Asked by Caroline Lu At
1
There are 1 best solutions below
Related Questions in DEMANDWARE
- OCAPI: exclude selected columns
- How to update an Image custom attribute in Demandware (i.e. Salesforce Commerce Cloud)?
- How to get information on whether a content asset is online or not in isml file?
- realm doesn't exist on the current cluster" B2C Commerce Developer Sandbox
- Why sfcc use isml instead of html?
- Get Type of Page(PLP or PDP) in SFCC
- Error configuring pipeline debugger in Eclipse
- Demandware (Salesforce Commerce Cloud) Controller Authentication
- How to replace Pipelet for ExportCustomerGroups in SFCC? (For removing Deprecated API usage)
- How to remove a product from a category API wise in Demandware(sfcc)?
- Not able to go to the function definition with SFRA code in vs code
- Custom event is triggered in Jquery but can't find any event handler
- What base URL should be used with SFCC endpoints for sandbox instances?
- Not able to save the user selected picklist value in SFCC Demandware
- Create session redirect link in content asset
Related Questions in SALESFORCE-COMMERCE-CLOUD
- User object Expressions not working in B2B Commerce LWR site
- REST API to fetch data from Wordpress
- Why Salesforce Ocapi customer deleted not working?
- Eslint Parsing problem in sfra salesforce project
- OCAPI: exclude selected columns
- the record id keeps being undefined?
- Unexpected token ? error while deploying Cartridge changes of SFCC using GIT
- Is there a way to identify unused script files in SFCC?
- SFCC OCAPI ProductSearch API - Returning ALL Products
- Not sure how to connect an AJAX call to a controller and make it update a object
- how to write an ajax call to a controller
- How to track button click in salesforce using javascript
- Salesforce B2B Commerce (LWR) - "global.css" style
- What is an example of an ajax function that can grab data based off a state change?
- Sticky element isn't fully viewable on mobile when scrolling down
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Try using the API Explorer first
With the API Explorer, which is an SFCC-built API client UI. You should modify the URL with your sandbox URL:
URL- If your sandbox URL is https://helloWorld-001.sandbox.us01.dx.commercecloud.salesforce.com/on/demandware.store/Sites-Site/, your OCAPI URL should be https://helloWorld-001.sandbox.us01.dx.commercecloud.salesforce.com/s/-/dw/meta/v1/rest
Account Manager Access Role - You need to ensure that you have the OCAPI Explorer access role in your Account Manager as well, and to the correct realm
Client ID - Ideally, your administrator should assign you with a API Client ID too. Else, use the default client ID for sandboxes (which is, type out 30 'a') and for password as well. NOTE: Do not use this approach for production/dev instances as it is a security vulnerability.
Once you are able to see the APIs showing, you should tinker around with the Version (i.e. 20.2 etc.) and the Site (i.e. RefArch) until you see the desired APIs in API exploerer. If this works, then you should have the necessary access and permissions to access OCAPI