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 ...
    • 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 Platform is designed to offer a self service Order Management System. Retailers ...
    • How To Use Mockbin & JSON Parser In Conjunction With Push APIs

      What Has Been Updated Within Push APIs? The following article is going to run through how push APIs can be used in conjunction with integrations to view external links to better manage customer orders to capture and see order formats. The following ...
    • Order Status API

      Custom Gateway has developed an order status API to allow the order status of each order to be updated.   The following are examples of the API calls required to set the status of orders received from OMS platform via API:   There are two standard ...
    • Red Bubble API

      Red Bubble is an eCommerce artist portal that hosts millions of artwork designs by independent artists from all around the world. The artwork is available for purchase, on demand, printed on anything from clothing & apparel to home decor & ...