Fluent Commerce Logo
Docs
Sign In

Bulk update Location Hours using Postman Runner

How-to Guide

Author:

Fluent Commerce staff

Changed on:

9 Apr 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.  (The 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 the "Send" Button to run. If respond with the result and 200 OK it 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 the "Update Location Hours" folder into Runner:
No alt provided
  • After dragging the folder into the runner, The "mutation updateLocation" script is part of the runner.  Then click on the "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
Fluent Commerce staff

Fluent Commerce staff

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