XML Fulfillment Template



The following template serves as an example of a request text and request details structure for XML order fulfillment. However, it's important to note that this template may not work seamlessly with every vendor due to specific node requirements. To ensure compatibility, adjustments need to be made for each vendor’s unique XML structure. You should collaborate with the respective vendor to identify and implement their specific nodes for accurate order processing.


Instructions for Customizing Vendor-specific Nodes:

  1. Identify Vendor-specific Nodes: Contact the vendor to acquire their XML node structure for order fulfillment requests. Gather details about the specific nodes they require within the XML structure.

  2. Adjust Request Text Details: Similarly, customize the request details section <order_item> according to the vendor's requirements. Replace placeholders like $vendor_sku$, $item_name$, etc., with the actual node names specified by the vendor in compliance with the request text variables defined by Spark.

  3. Validate Compatibility: After integrating the vendor-specific nodes into the XML structure, ensure that the modified structure aligns with the vendor's expectations. Verify that the XML format complies with their system for seamless order processing.

  4. Testing and Collaboration: Test the adjusted XML structure by sending sample orders to the vendor’s system. Collaborate closely with the vendor’s technical team to resolve any issues or mismatches in the structure to achieve successful order fulfillment.

  5. Iterate and Refine: Continuously refine and iterate on the XML structure based on feedback from the vendor. Make necessary adjustments until the structure aligns perfectly with the vendor's expectations for hassle-free order submissions.

By following these steps and collaborating effectively with each vendor, you can ensure that the XML order fulfillment requests align accurately with their specific node requirements, leading to successful order processing and fulfillment.


Below is an example that will most likely not work by default however it can serve as a template for iterating through multi line orders as well as ensure you have a set it and forget it type of setup unless the vendor makes an adjustment.


Request Text

​​<order>
<order_id>$order_id$</order_id>
<shipping_information>
<shipping_first_name>$shipping_first_name$</shipping_first_name>
<shipping_last_name>$shipping_last_name$</shipping_last_name>
<shipping_address_1>$shipping_address_1$</shipping_address_1>
<shipping_city>$shipping_city$</shipping_city>
<shipping_state>$shipping_state$</shipping_state>
<shipping_state_code>$shipping_state_code$</shipping_state_code>
<shipping_zip_code>$shipping_zip_code$</shipping_zip_code>
<shipping_country>$shipping_country$</shipping_country>
<shipping_phone>$shipping_phone$</shipping_phone>
<shipping_email>$shipping_email$</shipping_email>
</shipping_information>
<order_items>
$request_details$
</order_items>
</order>


Request Text Details

<order_item>
    <product_sku>$vendor_sku$</product_sku>
    <item_name>$item_name$</item_name>
    <quantity>$quantity$</quantity>
    <item_price>$item_price$</item_price>
    <line_total>$line_total$</line_total>
</order_item>