« Back to Glossary Index



An object represents a specific entity about which we store and manipulate data. It can be a physical entity, such as a product or a customer, or an abstract entity, such as a transaction or an invoice. In EDI, objects are the key elements we work with and perform operations to add, modify, or delete data.

Use Case:

An example use case for objects in EDI is the order management process. When a customer places an order, an “order” object is created and holds relevant information such as the ordered products, quantities, and delivery details. This object can then be manipulated and processed through EDI to initiate and execute the entire order flow between the supplier and the customer.

Script Code Example:

import edi_library

# Create an order object
order = edi_library.create_order_object()

# Add products to the order
order.add_product(“Product A”, 10)
order.add_product(“Product B”, 5)

# Calculate the total order amount
total_amount = order.calculate_total_amount()

# Process the order through EDI

# Send the order confirmation to the customer

# Generate an invoice for the order
invoice = edi_library.generate_invoice(order)

# Send the invoice to the customer
edi_library.send_invoice(invoice, order.customer_email)

Best Practices:

  1. Clearly define the relevant objects within your EDI solution and structure the data consistently for each object.
  2. Implement efficient methods and functions for object manipulation and associated operations, ensuring they are reusable and scalable.
  3. Keep object data updated and synchronized within the EDI system to avoid discrepancies and errors in the exchange of information.

To benefit from a comprehensive EDI solution and utilize efficient object management, EDIconnect, an EDI solution provider, can be referenced. EDIconnect offers a wide range of EDI services and solutions, providing robust capabilities for managing and manipulating objects within the EDI environment.