B2B/EDI Order to Cash Process API Template

home

Overview

This is a simple Mule application template to simulate a process API for standard B2B Order to Cash workflow. The objective of this template is to deploy an application to use in conjunction with Anypoint Partner Manager.

The application receives a purchase order messages (in JSON format) from Partner Manager via HTTPS, log them, and simulate outbound purchase order acknowledgement, advance ship notice and AR invoice transactions (in JSON format) back to Anypoint Partner Manager through a HTTPS call.

Steps

  • Download the application JAR and open the project in Anypoint Studio
  • Copy the folder 'apm-configs' under src/main/resources to your desktop. This folder contains various dataweave transformation files that you will use to configure Anypoint Partner Manager.
  • Once you complete the deployment of your first outbound PO Acknowledgement message flow in Partner Manager, note down the URL of the source endpoint (Source at host, HTTPS Receive) used in the message flow.
  • Open the file src/main/resources/app.properties and replace the occurences of the phrase "REPLACE_THIS", with the URL noted above.
otc-otb.po-ack.apm.endpointURL=REPLACE_THIS/send1/ob-src-po-ack
otc-otb.asn.apm.endpointURL=REPLACE_THIS/send1/ob-src-asn
otc-otb.ar-invoice.apm.endpointURL=REPLACE_THIS/send1/ob-src-ar-invoice
otc-otb.po-ack.apm.endpointURL=https://b2b-inbound-http-mnop.us-e2.cloudhub.io/send1/ob-src-po-ack
otc-otb.asn.apm.endpointURL=https://b2b-inbound-http-mnop.us-e2.cloudhub.io/send1/ob-src-asn
otc-otb.ar-invoice.apm.endpointURL=https://b2b-inbound-http-mnop.us-e2.cloudhub.io/send1/ob-src-ar-invoice

Flow

  • When the application receives purchase order JSON messages
    • it prints the received JSON message in the logs
    • automatically generates PO Acknowledgement, Advance ship notice and AR Invoice messages in JSON format and post them to the appropriate endpoints in Partner Manager for those transactions.
  • Note: Thiis is an example to simulate a typical order to cash workflow. In real-world implementation, you will map your B2B partner transactions with your actual internal message formats (such as SAP IDOCs, Salesforce Objects or any canonical JSON/XML/CSV message formats) and integrate with actual backend systems managing the Order to Cash workflow execution.
TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onOct 25, 2023
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.2
1.0.1
1.0.0

Tags