Giter Site home page Giter Site logo

onify / blueprint-dustin-edi-send-order Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 374 KB

Onify Blueprint: Send EDI order to Dustin

Home Page: https://onify.co

License: MIT License

JavaScript 100.00%
bpmn dustin edi flow integration onify onify-blueprint onify-blueprints onify-functions xml

blueprint-dustin-edi-send-order's Introduction

Onify Blueprints

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Test suite

Onify Blueprint: Send EDI order to Dustin

Dustin is the leading Nordic internet retailer of computer and electronic equipment. Many nordic companies are buying products from Dustin – often using Dustin’s own portal for purchase. Now several companies are looking for a way to incorporate the Dustin procurement process in their own custom portal provided by Onify.

This Blueprint is an example how to send a EDI order in XML format via Dustin web-service. It utilizes Onify Hub Functions /dustin/prepare/order function.

Onify Blueprint: Send EDI order to Dustin

Requirements

Preperations

Make sure you have an agreement with Dustin for EDI and can send orders via a web-service. Your IP needs to be whitelisted at Dustin or you will get a Bad request response when trying to send the order. You also need ReceiverEdiPortalId and SenderEdiPortalId.

Deploy

  1. Open the BPMN diagram in Camunda Modeler.
  2. Deploy the BPMN diagram (click Deploy current diagram and follow the steps).

Run

This workflow should be run as a adhoc workflow and can be part of another process.

Variables

  • OrderURL - URL to send the order request
  • Order - The EDI order
  • OrderRows - The order rows

Example request

Here is an example how to get a secret using a simple curl command.

curl -X 'POST' \
  '{url}/api/v2/my/workflows/run/dustin-edi-send-order?timeout=180' \
  -H 'accept: application/json' \
  -H 'authorization: {auth-token}' \
  -H 'Content-Type: application/json' \
  -d '{
  "OrderURL": "https://testreceive-ediportal.dustin.eu/HttpHandler.ashx?FormatTypeName=xml&ReceiverEdiPortalId=EP-0000000999&SenderEdiPortalId=EP-0000000999",
  "Order": {
    "BuyerOrderNumber": "INC-1234",
    "Currency": "SEK",
    "Notes": "Some notes",
    "CostCenter": "AB123",
    "GoodsMarking": "Storage room",
    "BuyerParty": {
      "PartyID": "45607080",
      "TaxIdentifier": "SE555555550001",
      "Name": "Company AB",
      "Street": "Street 1",
      "PostalCode": "12345",
      "City": "City",
      "Country": "SE",
      "ContactName": "John Doe",
      "ContactPhone": "+46 76-123 44 55",
      "ContactEmail": "[email protected]"
    }
  },
  "OrderRows": [
    {
      "PartID": "5010615730",
      "CommodityCode": "43211708",
      "Quantity": 1,
      "Price": 100,
      "Currency": "SEK"
    }
  ]
}'

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributors

Thanks Tony Aronsson and Joakim Jensen @ Zitac for the support.

blueprint-dustin-edi-send-order's People

Contributors

rolu01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.