Skip to main content

Sitecore Commerce – XC9 Tips – Configuring Postman

In this post, I am going to show how to setup postman and run the scripts.

When you download Sitecore Commerce, it includes ready to use postman sample requests (inside Sitecore.Commerce.Engine.SDK.x.x.x folder).



You need to import that postman folder to postman app. The steps are written in official documentation, just click import and choose postman folder.

You will see some parameters in sample requests such as {{SitecoreIdServerHost}}, {{OpsApiHost}}, {{OpsApi}}

Those are environment based variables that you can change according to your environment details.



When you click "setting" icon, you will see predefined environments: AdventureWorks and Habitat.

For example, click "Habitat Environment" to edit its variables.


You see that AuthoingHost is using port 5000, it is the default port if the that port is available. You can check which port is using your Authoring role from IIS.


If your Authoring port is different than 5000, you need to update your postman environment variables.

An important request is Bootstrap. It provides to move configurations from files to database.

To run it, first you need to get authentication token. Run {{SitecoreIdServerHost}}/connect/token request under Authentication > Sitecore > GetToken path.

If it doesn't work, check SitecoreIdServerHost parameter. It must match with your Id Server (see IIS).

After you get token, run Bootstrap request:



Again you can check OpsApiHost and OpsApi variables from environment configuration window, in case you get an error.

Hope, it helps!



Comments

  1. You can consult an Astrologer online from the comfort of their home and enjoy best astrology predictions using Astrogurutips Astrology, Hindu Astrology, Indian Astrology, Nadi Astrology, Tarot Card, KP Astrology, Prashna Chart and Lal Kitab Astrology
    Astro guru online

    ReplyDelete

Post a Comment

Popular posts from this blog

Sitecore Commerce – XC9 Tips – Missing Commerce Components in SXA Toolbox on Experience Editor

I've recently had an issue that commerce components were missing in SXA Toolbox. I setup Sitecore Commerce on top of an existing instance and I already had a SXA website working on it. The idea was to add commerce components and functionality to my existing website. But after commerce setup, the toolbox was still showing default SXA components and commerce components were missing although I add commerce tenant and website modules: I checked Available Renderings under Presentation folder, there was no problem, commerce renderings were there. I created another tenant and website to see if it shows the commerce components in toolbox. Nothing seemed different but I was seeing commerce components for new website and it was missing on existing one. Then, I noticed two things: 1- Selected catalog was empty in content editor (/sitecore/Commerce/Catalog Management/Catalogs) even if I see Habitat_Master catalog in Merchandising section on commerce management panel. 2- Bootstrap ...

Modern Observability for Sitecore 10.4 on AKS: Grafana, Alloy, Loki, and Prometheus

In this post, I’ll walk through how I extended the base Sitecore XM 10.4 AKS setup with a modern observability stack using Grafana, Alloy, Loki, and Prometheus. This setup provides deep insights into both infrastructure and application health, with powerful log aggregation and visualization. Project Overview Base:  Sitecore XM 10.4 running on Azure Kubernetes Service (AKS) Enhancements:  Added a full Grafana observability stack: Grafana  for dashboards and visualization Alloy  (Grafana Alloy, formerly Promtail) for log collection and multiline parsing Loki  for log aggregation and querying Prometheus  for metrics collection All configuration...

Sitecore 9 Playground Series - Marketing Automation, Custom Predicates, Activities, Page Events and More

This is going to be a series of blog posts that I am going to follow a scenario and build a demo project step by step. Here is the plan: Imagine that you have a website displaying movies. Visitors are able to see movie details and take some actions like save movie or share it.  You want to follow the visitors' activities and you want to take some marketing actions based on those activities. For example, if a contact visits a movie more than X time or she/he saves a movie, you want to send those movies to an external system. In addition, there is going to be a limit to send same movie. Such as, it will not be possible to send same movie more than 2 times.  You want to configure this as a marketing automation plan to give flexibility to your marketing managers. They should be able to add configurable rules and activities.  To be able to carry out this plan, I am going to implement and show those topics: Custom page events & XConnect queries Cal...