Supplier Integration | RPI

Supplier Integration | RPI

Introduction

This article has been created to show how to setup the supplier integration Kornit X has built to connect to RPI. 

Setup

To setup the RPI supplier integration, please head to your company and within the advanced settings head to "Supplier Integrations" and click to enable the RPI option. This has been shown below.

When setting this up you will need to set the "Username", "Password", "Sender ID" and "Customer ID" which will be provided to you by RPI themselves when you the customer sets up an account with them.

You can set additional options within the integration such as setting the "Start Timestamp", setting the timings for pushing minimal order age, an order data strategy  and an "Orders Provider" which allows you to choose between the options of "Standard" and "Event Based". 

Workflow

Orders for companies with RPI enabled that are on the status of received will be sent to RPI every hour. The following data will be sent out for each order:
{   
      "Sender": "AcmeGroup",   
      "CustomerID": "Acme",   
      "OrderID": "Acme123",   
      "AltOrderID": "Web123",   
      "OrderDate": "2016-07-23T10:42:00-07:00", 
      "Priority": null, 
      "Destination": [ 
      {     
             "DestinationID": "Dest1",   
            "ShipMethod": "UPS_GND",   
            "GifterName": "Fred",   
            "GiftMessage": "Happy Birthday!",                
            "ShipTo": {     
                  "Name": "Wilma Smith",      "
                  "Address1": "1922 1st Ave",     
                  "Address2": "Suite 110",     
                  "Address3": null ,       
                  "City": "Seattle",     
                  "State": "WA", 
                  "Postal": "98102",     
                   "Country": "USA",       
                  "Phone": "206-555 -1112",     
                  "Email": "customer@gmail.com
      },
      "MemberPhone": "999-888-7777",
      "MemberID": "RPI5551022",   
      "MemberName": "Wilma65" 
      }], 
      "OrderItems": {   
            "Item": [   
      {
      "ItemID": "Item1",     
      "DestinationRef": "Dest1",     
      "Sku": "Book_8x11_Softcover",       
      "Quantity": "2",
       "PageCount": "80",     
      "CoverImage": "http://www.acme.com/images/Web123/1/cover.pdf",       
      "Images": {
      "Image": [
      {           
            "@PageStart": "1",         
            "@PageEnd": "80",           
            "@Url": "http://www.acme.com/images/Web123/1/book.pdf"}]       
      },     
"RetailPrice": "14.99",         
"ItemDescription": "My Hawaii vacation"     
},     
{     
      "ItemID": "Item2",     
      "DestinationRef": "Dest1",     
      "Sku": "Book_8x11_Hardcover",       
      "Quantity": "2"  ,       
      "PageCount": "120",     
      "CoverImage": "http://www.acme.com/images/Web123/2/cover.pdf",       
      "Images": {
            "Image": [
      {           
            "@PageStart": "1",         
            "@PageEnd": "120",         
            }]       
      },     
      "RetailPrice": "29.99",     
      "ItemDescription": "My wedding album "   
            }]   
      }