This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |
| integration:nhlmis [2026/07/22 16:00] – Gary Willetts | integration:nhlmis [2026/08/28 12:29] (current) – [Sending shipments] Gary Willetts |
|---|
| |
| ==== 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. |
| |
| |