Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
integration:nhlmis [2026/07/22 16:00] Gary Willettsintegration:nhlmis [2026/08/28 12:29] (current) – [Sending shipments] Gary Willetts
Line 104: Line 104:
  
 ==== Sending shipments ==== ==== Sending shipments ====
-When a customer invoice, which comes from a requisition generated from an NHLMIS order, is finalised it is sent to NHLMIs by making a PATCH call to the ''/orders'' endpoint. All shipments are sent with a "packed" status. If it is successful, all is well. If the send fails then it is added to a queue and the send is retried after the number of minutes in the **Minutes between retries** field. When the call is successful then the shipment is removed from the queue. If it fails the number of times in the **No. times to retry sends** field then the shipment is removed from the queue and an error email is sent to the email(s) in the **Error email** field.+When a customer invoice, which comes from a requisition generated from an NHLMIS order, is finalised it is sent to NHLMIS by making a POST call to the ''/shipments'' endpoint. All shipments are sent with a "packed" status. If it is successful, all is well. If the send fails then it is added to a queue and the send is retried after the number of minutes in the **Minutes between retries** field. When the call is successful then the shipment is removed from the queue. If it fails the number of times in the **No. times to retry sends** field then the shipment is removed from the queue and an error email is sent to the email(s) in the **Error email** field.
  
  
  • Last modified: 2026/08/28 12:29
  • by Gary Willetts