Import from Infor M3 to DocBits via API
Step 1: Create an API
Open Infor OS and navigate to API Gateway > Available APIs.
Click Add, then select Create New.
Fill in the details for the API:
Application Name:
DocBits-Stage,DocBits-Sandbox,DocBits-Prod, orDocBits-Demo(based on your environment).Suite Name: Same as the application name.
API Context: Same as the application name.
Description: Same as the application name.
Icon: Select a blue document icon.

Add a Target Endpoint:

Target Endpoint URL: Use the appropriate URL for your environment:
https://stage.api.docbits.comhttps://sandbox.api.docbits.comhttps://api.docbits.comhttps://demo.api.docbits.com
Target Endpoint Description:
Stage,Sandbox,Prod, orDemo(matching the environment).Proxy Context: Same as the environment (
Stage,Sandbox,Prod, orDemo).Proxy Security: Select OAuth 2.0.

Target Endpoint Security:
Authentication Type: API Key
Key Mode: Header
Key Name:
X-API-KEYKey Value: Retrieve the API key from DocBits by navigating to Settings > Global Settings > Integration, then copy the API key and paste it as the key value.
Save the target endpoint configuration.

Add API Documentation:
Return to the API documentation section by clicking Documentation Icon in the created Endpoint.

Scroll down to the Documentation section and click + Add Documentation.
Name:
DocBits-Stage,DocBits-Sandbox,DocBits-Prod, orDocBits-Demo(matching the environment).Type: Swagger
Enter URL or Upload Swagger JSON/YAML: Use the appropriate Swagger file URL for your environment:
https://stage.api.docbits.com/openapi.jsonhttps://sandbox.api.docbits.com/openapi.jsonhttps://api.docbits.com/openapi.jsonhttps://demo.api.docbits.com/openapi.json
Ensure there is no trailing space at the end of the URL.

The API documentation will automatically be added, and the metadata refresh will be triggered.

Step 2: Create an API Connection Point
Navigate to OS > ION > Connect > Connection Point.
Click Add and select API as the connection type.
Fill in the required details:
Name:
DocBits_ImportDescription:
DocBits_ImportService Account: Upload the service account file that was created earlier.
Step 2.1: Add and Configure Documents
You don't need to add all documents—only the necessary ones.
The documents Sync.ChartOfAccounts and Sync.CodeDefinition are required for auto-accounting.
Sync.SupplierPartyMaster
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.SupplierPartyMaster

Configure the ION API:
API Call Name:
Sync.SupplierPartyMasterClick on Select
For Product, choose the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/import/supplier_bodClick OK to confirm the selection.

Set the Request Body:
For File, select Input Document = No Compression.

Sync.RemitToPartyMaster
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.RemitToPartyMaster

Configure the ION API:
API Call Name:
Sync.RemitToPartyMasterClick on Select
For Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/import/supplier_bodClick OK to confirm the configuration.

Configure the Request Body:
For File, select Input Document = No Compression.

Acknowledge.SupplierInvoice
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Acknowledge.SupplierInvoice
Configure the ION API:
API Call Name:
Acknowledge.SupplierInvoiceClick on Select
For Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/infor/idm/handle_ack_bodClick OK to confirm the configuration.

Configure the Request Body: Add the following values in the Request Body section:
For idm_doc_type, set Value =
M3_SupplierInvoiceFor idm_bod_id_field_name, set Value =
BOD_AlternateDocumentID_1For attributes_map, set Value =
{"Export": "Success"}For acl_from, set Value =
PublicFor acl_to, set Value =
PrivateFor set_to_error_on_rejected, set Value =
TrueFor delete_from_idm_on_rejected, set Value =
TrueFor File, set Input Document = No Compression.
For ionapi_json: Add the content of the ionapi file.

Sync.PurchaseOrder
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.PurchaseOrder

Configure the ION API:
API Call Name:
Sync.PurchaseOrderClick on Select
For Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/import/purchase_order_bodClick OK to confirm the configuration.

Configure the Request Body:
For File, set Input Document = No Compression.

Sync.ReceiveDelivery
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.ReceiveDelivery

Configure the ION API:
API Call Name:
Sync.ReceiveDeliveryClick on Select
For Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/import/receive_delivery_bodClick OK to confirm the configuration.

Configure the Request Body:
For File, set Input Document = No Compression.
Sync.AdvanceShipNotice
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.AdvanceShipNotice

Configure the ION API:
API Call Name:
Sync.AdvanceShipNoticeFor Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/master_data_lookup/xml/import_xml_fileClick OK to confirm the configuration.

Configure the Request Body:
For data_type, set Value =
AdvanceShipNoticeFor field_mappings, set Value =
{ "ID": "//DataArea/LnTaxCode/DocumentID/ID" }For File, set Input Document = No Compression.

Sync.ChartOfAccounts
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.ChartOfAccounts

Configure the ION API:
API Call Name:
Sync.ChartOfAccountsFor Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/master_data_lookup/xml/import_xml_fileClick OK to confirm the configuration.

Configure the Request Body:
For data_type, set Value =
ChartOfAccountsFor field_mappings, set Value =
{ "ID": "//DataArea/ChartOfAccounts/IDs/ID", "NominalAccount": "//DataArea/ChartOfAccounts/BaseChartOfAccounts/GLNominalAccount", "AccountType": "//DataArea/ChartOfAccounts/BaseChartOfAccounts/AccountType", "Description": "//DataArea/ChartOfAccounts/BaseChartOfAccounts/Description", "DimensionProfile": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/ID", "Dimension1": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[0]/ListID", "Usage1": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[0]/Usage", "Dimension2": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[1]/ListID", "Usage2": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[1]/Usage", "Dimension3": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[2]/ListID", "Usage3": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[2]/Usage", "Dimension4": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[3]/ListID", "Usage4": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[3]/Usage", "Dimension5": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[4]/ListID", "Usage5": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[4]/Usage", "Dimension6": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[5]/ListID", "Usage6": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[5]/Usage", "Dimension7": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[6]/ListID", "Usage7": "//DataArea/ChartOfAccounts/DimensionProfileSet/DimensionProfile/DimensionUsage[6]/Usage" }For File, set Input Document = No Compression.

Sync.CodeDefinition-AccountingDimension
Navigate to the Documents tab in the API Connection Point.

Click Add New Document and fill in the following details:
Scenario:
Send to APIDocuments:
Sync.CodeDefinition

Configure the ION API:
API Call Name:
Sync.CodeDefinition-AccountingDimensionFor Product, select the API endpoint created in Step 1: Create an API.
Locate and select:
CustomerApi/DocBits-Sandbox/Sandbox/master_data_lookup/xml/import_xml_fileClick OK to confirm the configuration.

Configure the Request Body:
For data_type, set Value =
M3DimensionFor field_mappings, set Value =
{ "ID": "//DataArea/CodeDefinition/DocumentID/ID", "Dimension": "substring(//DataArea/CodeDefinition/CodeValue/@listID,21)", "ListID": "//DataArea/CodeDefinition/ListID", "CodeValue": "//DataArea/CodeDefinition/CodeValue", "Description": "//DataArea/CodeDefinition/Description" }For File, set Input Document = No Compression

Step 3: Create the Document Flow
Navigate to OS > ION > Connect > Data Flows.
Click Add and select Document Flow.
Fill in the required fields:
Name: Use a name specific to your environment, such as
M3-to-DocBits-Stage-Import-APIfor stage,
M3-to-DocBits-Sandbox-Import-APIfor sandbox, orM3-to-DocBits-Prod-Import-APIfor production.Description: Same as the name above.
Configure the Application Node:
Under Application, set the Name to
M3.

Click the + button and select the customer's connection point.

Click on the Document icon next to the application node.
Select all the documents you want to export/sync from LN to DocBits.
Ensure these documents match the ones selected in Step 2: Create an API Connection Point.
If any documents are missing, they must be added to the customer's connection point.

Configure the API Node:
Add a API node and position it to the right of the application node.
Fill in the required fields:
Name:
DocBits-APIDescription:
DocBits-APIION API Connector: Use the connection point created in Step 2: Create an API Connection Point.
Click the Document icon next to the stream node. This should be empty.

Finalize the Setup:
Save the configuration.
Click Activate to complete the setup.

Last updated
Was this helpful?