/vtex-external-seller-mock-api

Mock API in Express Js to simulate a VTEX external seller

Primary LanguageJavaScript

VTEX mock server

Back-end developed to simulate a VTEX External Seller. Used for analyzing external seller API behaviors with an API developed outside VTEX.

Endpoints:

  • Fulfilment Simulation (/pvt/orderForms/simulation)
  • Order Cancel (/pvt/orders/:orderId/cancel)
  • Order Dispatching (/pvt/orders/:orderId/fulfill)
  • Order Placement (/pvt/order)

Stack

  • Node JS
  • Express 4
  • Heroku for deploy

Installation

Before installing, download and install Node.js. Node.js is required.

Install dependencies:

$ npm install

Start the server:

$ npm start