When processing orders you might come across the "Operation returned an invalid status code 

'InternalServerError" {"status":"error","error_code":"shipment.ship_errors", "error_message":"Ship errors: The request could not be understood by the server due to malformed syntax. Customs info error: missing required field: EEL or PFC"}" error.



This error is shown when you try to ship international orders that require EEL or PFC data.


NOTE: This article details how to correct this issue for an individual order. For a more comprehensive solution that automates this correction based on EEL/PFC coming as part of the WMS order information, add the field as a Custom Field in your API request and/or request your Techdinamics CSM to open an internal request to map Custom/Flex fields. 


Feel free to follow the step-by-step guide written below or the video guide, as you prefer:
 


To do so:


1. Find the order through any of the possible ways (after Import Orders, Batches, Order History, etc) as it applies to the case
 

2. Click the edit button of the order you wish to change


3. Access the Carrier Options tab


4. Complete the EEL/PFC field accordingly


5. Press Save to apply the changes


If the rest of the information in the order is correct, you will be able to process it.