Accelerator Orders Process API

(0 reviews)
‎

home

This API specification is a component of MuleSoft Accelerators for Salesforce Clouds, which accelerates implementation of essential integration use cases for Service Cloud and Commerce Cloud.

Orders Process API - new orders

This application polls the configured SFTP location for files (with name-pattern orders_{yyyyMMdd-HHmmss}.xml) containing B2C Commerce exported orders, and publishes the content to Anypoint MQ (all orders go into one message).

The Order Process Listener extracts each order from AnypointMQ and calls the Orders Process API, which then calls OMS System API to create orders in the back-end OMS.

Orders Process API - order status update

The poll-orders-status_fetch-order-status-publish-to-amq flow polls the OMS (OFBiz is the reference implementation) for changes in order-status (since the last automated run, or the last manual update); if any status-changes are found, the order's status in B2C Commerce is updated.

Orders status values for the OMS (whichever it is) will not match B2C Commerce values, so the values are translated as needed before updates are made. Below are the values for OFBiz (reference implementation):

OMS :
- ORDER_APPROVED
- ORDER_CREATED
- ORDER_CANCELLED
- ORDER_COMPLETED
- ORDER_HOLD
- PAYMENT_SETTLED
- PAYMENT_NOT_RECEIVED

CC:
- created
- new
- completed
- cancelled
- failed

The values above are mapped as shown below:

OMSB2C Commerce
ORDER_APPROVEDcompleted
ORDER_CANCELLEDcancelled
ORDER_COMPLETEDcompleted
ORDER_HOLDfailed

Customers can use this integration template to accelerate implementation.


Reviews

TypeREST API
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onJun 29, 2021
Asset overview

Asset versions for 1.5.x

Asset versions
VersionActions
1.5.2
1.5.0