Fluent Commerce Logo
Docs
Sign In

Bulk update Location Hours using Postman Runner

How-to Guide

Author:

Randy Chan

Changed on:

17 Jan 2024

Key Points

  • Perform a bulk mutation update on the Location hours.
  • Requires Postman and Pycharm 

Steps

Step arrow right iconExtract Location Hours CSV

Reference bulk extract can be found in the prerequisites section.

  • Save the output file in CSV format
  • Only the location hours-related column should be modified.  (First 8 columns are informational only and should not be modified)
No alt provided

Step arrow right iconOpen Postman App

Open Postman, select the Environment and oauth retailer:

  • Ensure to select the correct Environment:
No alt provided
  • Go to the Collection and run Oauth - Retailer:
No alt provided
  • Output:  access_token returned from the response.
No alt provided

Step arrow right iconTest the connection by running "query getLocation"

Test the connection by running "query getLocation"

No alt provided

Click on "Send" Button to run. If responded with result and 200 OK which means we are connected to OMS.

No alt provided

Step arrow right iconIn Postman, click on the "Runner" button in bottom right hand corner to open Postman Runner

  • In Postman, click on the "Runner" button in the bottom right hand corner to open Postman Runner
No alt provided
  • A new RUNNER is displayed:
No alt provided
  • In the left hand side menu, drag "Update Location Hours" folder into Runner:
No alt provided
  • After dragging the folder into the runner, The "mutation updateLocation" script in part of the runner.  Then click on "Select File" button on the right to choose the csv to process: 
No alt provided
  • Select the csv file that wish to process:
No alt provided
  • Click on the Run <Example - Location Update> Button on the right:
No alt provided
  • The Runner is showing the run result: 
No alt provided


Step arrow right iconCheck Result in UI

Go to OMS Webapp UI -> Stores -> Stores -> Location Details (this path is for Admin Console: Admin Console → Location → Details) to review the output:

No alt provided

Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo