How to integrate any ERP with Commerceup

This document describes functionality to implement ERP with commerceup. No matter which ERP you are using, Following are the ways and details we will need.

  1. Basic ERP Integration (Order Flow Process)

  2. Advanced ERP Integration (Order Flow Process)

This is basic flow how ERP integration will work if we just want to push order details from website to commerceup.

This will require 2 apis :

  1. Create Customer Api

    1. When customer creates account in your website

    2. Must return new Customer ID created in ERP

  2. Create Order Api

    1. When order is placed in website

    2. Must return new Order ID created in ERP

Sample API Format to create for commerceup :

URL - https://www.abc.com/createCustomer
Method : POST
Auth : In headers 
UserName = “commerceup”
Password = “abc@123”

Basic Auth with Username and Password is the minimum requirement, which will be sent in headers. If any other Auth is required, then documentation and example JS code (or in POSTMAN) must be shared.

Sample API format to create via custom ERP

GET /createcustomer

When customer creates account in website hosted by commerce, Commerceup will call above sample api hosted at ERP end.

Headers

NameTypeDescription

password

string

username

string

Request Body

NameTypeDescription

body

object

{}

Above format is JSON, It can be XML format as well according to which you api and systems support. This is just for reference which we are using currently with other erp.

Basic Auth with Username and Password is the minimum requirement, which will be sent in headers. You can also use bearer token authorization. If any other Auth is required, then documentation and example JS code (or in POSTMAN) must be shared.

Above format is JSON, It can be XML format as well according to which you api and systems support. This is just for reference which we are using currently with other erp.

  1. Advanced ERP Integration (Order Flow Process) :

Apart from basic integration, If you want to enable cancellation and returns from the website and push it to ERP. You can use following api :

Cancel Order

  1. When user cancels order items from Order placed

  2. Must return success flag

For this you can also use commerceup open api’s to write and update inventory and other details in commerceup from your system.

Last updated