Testing API orders into OMS yourself

Testing API orders into OMS yourself

You can run an API order into OMS yourself as a test straight from your desktop or laptop.

Windows 10 comes with CURL already installed so you should not need to do anything else to run this.

there is an example JSON file attached which can downloaded to use as a template but please note this needs to be modified, this contains examples of multiple item types and the SKU's contained are invalid and would need to match products available to your retailer company being imported against.


When you have your JSON file you are happy should work you need to place it in your home directory on your machine which should be Users/Your Username

You then need to open the command prompt in Windows by pressing Windows Key + R this will open the RUN menu where you can type "cmd" and hit enter.

This should open Windows command prompt where you can run your API request.

You can then run the following PENDING SOME CHANGES

curl -d@**training-example.json** -H"content-type: application/json" -H"authorization: basic **COMPANYREFID**:**APIKEY**" https://api-sl-2-2.custom-gateway.net/order

Where
BLUE = Your JSON filename
RED = Your Retailer Company Ref ID
GREEN - Your Retailer Company API KEY

If these steps have been done correctly when you run this and it enter if should import the order into OMS and return some data back. You can confirm this by checking OMS

NOTE - if you try to run multiple times you need to keep changing the order number "external_ref" in the JSON because this must be unique


    • Related Articles

    • Etsy - how to set up product listings to pass the orders to OMS

      The Etsy integration will pull any orders and their attributes in to OMS as textual orders. To set up the Etsy integration please see the sister article Etsy API Integration Currently it is only possible to use POD style products and text based ...
    • Re-sending orders from magento to OMS

      If you have created your own magneto site and have a order stuck in magento, please follow the steps below to resend the order. Orders must have status “Processing”..(there can be many reasons why order wasn't pushed to OMS) If the status is not set ...
    • Order Manager | Customer Services: Finding Order Information and FAQ's

      Overview This document will outline how the system can be used to address common order and customer service based queries experienced by Retailers (and Fulfillers). The Custom Gateway Platform is designed to offer a self service Order Management ...
    • Options for your Suppliers to Receive Orders

      This article explains the options for suppliers to receive and confirm orders from websites running the Gateway Order Management System (OMS)   It covers 3 key areas   Receiving an Order Confirming the Receipt of an Order Confirming the Despatch of ...
    • Locating Your Gateway OMS API Key

      1. Log into your Gateway OMS account 2. Select "Companies" from the settings menu (small cog) in the top right corner of your screen 3. Select your company and click the "i" icon next to the company name 4. Click on the 3rd tab "API & Incoming" 5. ...