Infusion And Processing APIs icon

Infusion And Processing APIs

(0 reviews)

home

Infusion-Processing API

The API provides information about the Infusion-Processing details from the ICS account.

Introduction

The Infusion-Processing API allows to fetch/initiate details from ICS account. Infusion-Processing AP is secured by OAuth token validation, allowing customer to access specific or all records depending on the API use case:

  1. Fetch all Infusion-Processing details.
  2. Create/complete Infusion record.
  3. Create/complete Processing record.
  4. Update Infusion-Processing record.
Overview

The Infusion-Processing API is a REST-based solution that deals secure and convenient customer and business access to Infusion-Processing data.

The Infusion-Processing API is secured by Mule OAuth provider. The API has below endpoints

/Ping: This endpoint returns API health.

This endpoint consists of GET method, which gives the health status of the API.

/Infusion: This endpoint returns Infusion details from the ICS.

/processing: This endpoint returns processing details from the ICS.

This endpoint consists of GET, PUT, POST methods, these are used to fetch, create and complete the Infusion process.

  1. When create infusion request is passed from the request it initiates Infusion record.
  2. When complete infusion request is passed from the request it initiates complete Infusion record.
  3. When processing requests are passed from the request it initiates processing record.
  4. When complete processing request are passed from the request it initiates complete processing record.
  5. When specific queryParams are passed to fetch particular Infusion-Processing details user can pass on search criteria.

GET: This method returns Infusion-Processing details by using below query parameters.

1.partnerName: It is a mandatory field used for querying the Infusion-Processing details.

  1. recordType: It is a non-mandatory field used for querying the Infusion-Processing details.
  2. icsSFDCId: ICS record id generated. It is non mandatory parameter.
  3. sourceSystem: It is mandatory parameter for specific facility.
  4. icsBatchName: Batch name generated by ICS system, it is non mandatory parameter.
  5. sourceSystemBatchId: Source System batch id, it is non mandatory parameter.
  6. pageNumber: It is an optional field used for querying the Infusion-Processing details with specific page number.

POST: This method start Infusion-Processing in ICS system as a result infusion batch/ processing batch is created. While creating Infusion-Processing records below are the validation performed.

1.The partnerName, sourceSystem, sourceSystemBatchId, processingType/recordType are required parameters need to be passed.

2.The required fields to be passed for respective Infusion-Processings. for instance: PackageDetails, equipments, Ingredients need to be passed while creating a Infusion-Processing .

3.The details of specific record can also be modified/updated by using same method,user need to pass sourceSystemBatchId of particular record.

PUT: This method complete the Infusion-Processing in ICS system as a result infused batch/processed batch is created. While creating complete Infusion-Processing records below are the validation performed.

1.partnerName, sourceSystem, sourceSystemBatchId are required parameters need to be passed.

2.The required fields to be passed for respective Infusion-Processings. for instance: oldPackageDetails, equipments, newPackageDetails, actualIngredientsUsed need to be passed while creating a

Infusion-Processing .

3.The details of specific record can also be modified/updated by using same method, user need to pass sourceSystemBatchId of particular record.

Key features and benefits

The following are features and benefits of the Infusion-Processing AP:

  1. Provides access to account details including token validation.
  2. Puts your customers in control of their data sharing permissions and grants through our Security.
How it works

The following diagram illustrates how the Infusion-Processing AP works.

resources/Screenshot%202024-05-31%20175848-c34612b5-d233-4108-b211-017d93d08e4f.png

  1. The customer sends client ID and Secret requesting authorization token from Mule OAuth provider API.
  2. Send the security token with valid JSON request to Infusion-Processing endpoint.
  3. If the access is successful, API will perform the operations and create/update/get the records to/from ICS.
  4. Response from ICS is captured and return to source system.
  5. If any error in the flow or validation error, Mule API handles and reverts the specific error with the customer along with standard error codes.

Use cases.

The Infusion-Processing AP supports data access for the following use cases.

resources/Screenshot%202024-05-02%20144720-3941f434-48ec-43e0-a37b-8e824f79cc06.png


Reviews