From 04488e320e1ec1df330e39da38efea5286dfa93a Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Fri, 6 Mar 2026 10:16:26 +0000 Subject: [PATCH 1/8] CCM-14512: update sandbox responses --- .../messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json | 4 ++++ .../messages/2WL3ydEEk37IzREoWRhuAdolFCE.json | 4 ++++ .../messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json | 4 ++++ .../messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json | 4 ++++ .../messages/2WL4JXrfauCaQnSFbAujoImSKwo.json | 4 ++++ .../messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json | 8 +++++-- .../messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json | 4 ++++ .../messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json | 4 ++++ .../messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json | 8 +++++-- .../messages/2WL4xcWKvz4F32g0htBEl8DINzn.json | 4 ++++ .../messages/2WL50w41YaZXcyFCNT346LY8rlz.json | 3 +++ .../messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json | 3 +++ .../messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json | 12 ++++++++++ .../messages/2WL5eDefrbW31uw1il84WdF8ndH.json | 12 ++++++++++ .../messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json | 14 +++++++++++- .../messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json | 16 ++++++++++++-- .../messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json | 22 ++++++++++++------- .../messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json | 8 +++++++ 18 files changed, 123 insertions(+), 15 deletions(-) diff --git a/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json b/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json index bb2c0b485..ae3ae9a4d 100644 --- a/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json +++ b/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json @@ -26,6 +26,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "a1b2c3d4", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json b/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json index c78048986..89707919b 100644 --- a/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json +++ b/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json @@ -25,6 +25,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "e5f6g7h8", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json b/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json index 0413f41f2..b20782829 100644 --- a/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json +++ b/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json @@ -25,6 +25,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "i9j0k1l2", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json b/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json index 94a302fa1..e0ea0f18b 100644 --- a/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json +++ b/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json @@ -24,6 +24,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "m3n4o5p6", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json b/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json index cde74988b..ebd6defd0 100644 --- a/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json +++ b/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json @@ -24,6 +24,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "q7r8s9t0", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json index d13bd79b8..ebed5820b 100644 --- a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json +++ b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json @@ -11,7 +11,7 @@ }, "messageReference": "e21cd9c0-75af-4596-9e9a-57fa7581fe59", "messageStatus": "failed", - "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.", + "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You\u2019ll still be charged for text messages to phones that are not accepting messages.", "messageFailureReasonCode": "MFR_SUPE_0007", "channels": [ { @@ -20,7 +20,7 @@ "cascadeType": "primary", "cascadeOrder": 1, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You\u2019ll still be charged for text messages to phones that are not accepting messages.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", @@ -30,6 +30,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "u1v2w3x4", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json b/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json index a8ab59ffd..0d0b5e1fe 100644 --- a/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json +++ b/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json @@ -24,6 +24,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "y5z6a7b8", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json b/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json index 681291bc8..1c6515ca5 100644 --- a/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json +++ b/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json @@ -30,6 +30,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "c9d0e1f2", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json index ef06f33c1..3ff9d22e3 100644 --- a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json +++ b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json @@ -11,7 +11,7 @@ }, "messageReference": "0397b134-e30d-4fb1-9060-0d204b0ac340", "messageStatus": "failed", - "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "messageFailureReasonCode": "MFR_SUPE_0007", "channels": [ { @@ -20,7 +20,7 @@ "cascadeType": "primary", "cascadeOrder": 1, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", @@ -30,6 +30,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "a1b2c3d4", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json b/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json index 77a479b51..fdd0b78fb 100644 --- a/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json +++ b/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json @@ -30,6 +30,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "e5f6g7h8", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json b/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json index 674d07d56..09a53db0a 100644 --- a/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json +++ b/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json @@ -30,6 +30,9 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "source": "pds" } } ], diff --git a/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json b/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json index c5d32e86f..40763e58c 100644 --- a/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json +++ b/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json @@ -30,6 +30,9 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "source": "pds" } } ], diff --git a/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json b/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json index 68a604a21..0e353f1eb 100644 --- a/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json +++ b/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json @@ -39,6 +39,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "q7r8s9t0", + "source": "pds" } }, { @@ -53,6 +57,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "u1v2w3x4", + "source": "pds" } }, { @@ -67,6 +75,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "y5z6a7b8", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json b/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json index 9343c851a..bc6d3e543 100644 --- a/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json +++ b/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json @@ -42,6 +42,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "c9d0e1f2", + "source": "pds" } }, { @@ -56,6 +60,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "g3h4i5j6", + "source": "pds" } }, { @@ -70,6 +78,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "k7l8m9n0", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json index 7e13d4aff..2fe425110 100644 --- a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json +++ b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json @@ -35,7 +35,7 @@ "cascadeType": "primary", "cascadeOrder": 2, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", @@ -45,6 +45,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "o1p2q3r4", + "source": "pds" } }, { @@ -60,6 +64,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "s5t6u7v8", + "source": "pds" } }, { @@ -74,6 +82,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "w9x0y1z2", + "source": "pds" } } ], diff --git a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json index d695ab6e6..48aa63215 100644 --- a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json +++ b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json @@ -35,7 +35,7 @@ "cascadeType": "primary", "cascadeOrder": 2, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", @@ -45,6 +45,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "a3b4c5d6", + "source": "pds" } }, { @@ -53,7 +57,7 @@ "cascadeType": "primary", "cascadeOrder": 3, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You\u2019ll still be charged for text messages to phones that are not accepting messages.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", @@ -63,6 +67,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "e7f8g9h0", + "source": "pds" } }, { @@ -78,6 +86,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "i1j2k3l4", + "source": "pds" } } ], diff --git a/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json b/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json index be8d31583..6ff8f160e 100644 --- a/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json +++ b/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json @@ -4,8 +4,8 @@ "id": "2bBBpsiMl2rnQt99qm6JLZ6w1vq", "attributes": { "routingPlan": { - "id" : "b838b13c-f98c-4def-93f0-515d4e4f4ee1", - "version" : "1", + "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", + "version": "1", "name": "routing-plan-name", "createdDate": "2022-01-01T00:00:00.000Z" }, @@ -26,10 +26,14 @@ "created": "2023-10-09T10:31:59Z", "failed": "2023-10-09T10:52:12Z" }, - "routingPlan" : { - "id" : "9ba00d23-cd6f-4aca-8688-00abc85a7980", - "type" : "override", - "version" : "5" + "routingPlan": { + "id": "9ba00d23-cd6f-4aca-8688-00abc85a7980", + "type": "override", + "version": "5" + }, + "recipientContact": { + "id": "a1b2c3d4", + "source": "pds" } } ], @@ -42,7 +46,9 @@ { "queriedAt": "2023-10-09T10:31:59Z", "version": "23", - "labels":["sms"], + "labels": [ + "sms" + ], "source": "pds" } ] @@ -51,4 +57,4 @@ "self": "%PATH_ROOT%" } } -} +} \ No newline at end of file diff --git a/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json b/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json index 3ccda67eb..4cac8f423 100644 --- a/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json +++ b/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json @@ -43,6 +43,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "m5n6o7p8", + "source": "pds" } }, { @@ -58,6 +62,10 @@ "id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1", "version": "1", "type": "original" + }, + "recipientContact": { + "id": "q9r0s1t2", + "source": "pds" } } ], From 77ef4510bede51a36aac3ecd42d20630d965f1ee Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Fri, 6 Mar 2026 11:06:12 +0000 Subject: [PATCH 2/8] CCM-14512: repointed frontend --- proxies/live/apiproxy/targets/target.xml | 12 ++++++++---- ...ssignMessage.MessageBatches.Create.Request.xml | 15 +++++++++++---- .../AssignMessage.Messages.Create.Request.xml | 15 +++++++++++---- .../AssignMessage.Messages.GetSingle.Request.xml | 15 +++++++++++---- .../AssignMessage.NhsAppAccounts.Get.Request.xml | 15 +++++++++++---- 5 files changed, 52 insertions(+), 20 deletions(-) diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml index c9c0bfdd3..3e7779475 100644 --- a/proxies/live/apiproxy/targets/target.xml +++ b/proxies/live/apiproxy/targets/target.xml @@ -18,10 +18,14 @@ true - - - - {requestpath} + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + + + {requestpath} + {% else %} + https://comms-apim.de-iaho3.communications.national.nhs.uk + {% endif %} 29000 diff --git a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml index 3dfbc673b..21ce497b9 100644 --- a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - /api/v1/send - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + /api/v1/send + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/send + + {% endif %} %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml index 2a8e9cd5c..1179f3ba2 100644 --- a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - /api/v1/messages - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + /api/v1/messages + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages + + {% endif %} %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml index ce54ec959..358278336 100644 --- a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages/{data.messageId} + + {% endif %}
{backendCorrelationId}
diff --git a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml index 6d71f721a..181ec442f 100644 --- a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml +++ b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - /api/channels/nhsapp/accounts - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + /api/channels/nhsapp/accounts + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/channels/nhsapp/accounts + + {% endif %}
{backendCorrelationId}
From 302d5712a18720bf69371901db2f8a55b41193e6 Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Fri, 6 Mar 2026 15:43:41 +0000 Subject: [PATCH 3/8] CCM-14512: update documentation --- sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json | 4 ++-- sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json | 4 ++-- sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json | 2 +- sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json | 4 ++-- specification/schemas/components/SupplierStatus.yaml | 2 ++ specification/schemas/responses/MessageResponse.yaml | 2 ++ specification/snippets/recipientContact.yaml | 12 ++++++++++++ 7 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 specification/snippets/recipientContact.yaml diff --git a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json index ebed5820b..b947703fb 100644 --- a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json +++ b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json @@ -11,7 +11,7 @@ }, "messageReference": "e21cd9c0-75af-4596-9e9a-57fa7581fe59", "messageStatus": "failed", - "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You\u2019ll still be charged for text messages to phones that are not accepting messages.", + "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.", "messageFailureReasonCode": "MFR_SUPE_0007", "channels": [ { @@ -20,7 +20,7 @@ "cascadeType": "primary", "cascadeOrder": 1, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You\u2019ll still be charged for text messages to phones that are not accepting messages.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", diff --git a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json index 3ff9d22e3..2ebf650de 100644 --- a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json +++ b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json @@ -11,7 +11,7 @@ }, "messageReference": "0397b134-e30d-4fb1-9060-0d204b0ac340", "messageStatus": "failed", - "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "messageStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "messageFailureReasonCode": "MFR_SUPE_0007", "channels": [ { @@ -20,7 +20,7 @@ "cascadeType": "primary", "cascadeOrder": 1, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", diff --git a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json index 2fe425110..437732757 100644 --- a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json +++ b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json @@ -35,7 +35,7 @@ "cascadeType": "primary", "cascadeOrder": 2, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", diff --git a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json index 48aa63215..610f48c3b 100644 --- a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json +++ b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json @@ -35,7 +35,7 @@ "cascadeType": "primary", "cascadeOrder": 2, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s inbox is full or their anti-spam filter rejects your email. Check your content does not look like spam before you try to send the message again.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", @@ -57,7 +57,7 @@ "cascadeType": "primary", "cascadeOrder": 3, "channelStatus": "failed", - "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient\u2019s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You\u2019ll still be charged for text messages to phones that are not accepting messages.", + "channelStatusDescription": "Failed reason: The provider could not deliver the message. This can happen when the recipient’s phone is off, has no signal, or their text message inbox is full. You can try to send the message again. You’ll still be charged for text messages to phones that are not accepting messages.", "channelFailureReasonCode": "CFR_SUPE_0007", "timestamps": { "created": "2023-10-09T10:31:59Z", diff --git a/specification/schemas/components/SupplierStatus.yaml b/specification/schemas/components/SupplierStatus.yaml index fc804ab7f..fd301e5be 100644 --- a/specification/schemas/components/SupplierStatus.yaml +++ b/specification/schemas/components/SupplierStatus.yaml @@ -44,6 +44,8 @@ properties: example: '2023-11-17T14:27:51.413Z' retryCount: $ref: ../../snippets/RetryCount.yaml + recipientContact: + $ref: ../../snippets/recipientContact.yaml required: - messageId - messageReference diff --git a/specification/schemas/responses/MessageResponse.yaml b/specification/schemas/responses/MessageResponse.yaml index deca0978b..c747e0683 100644 --- a/specification/schemas/responses/MessageResponse.yaml +++ b/specification/schemas/responses/MessageResponse.yaml @@ -105,6 +105,8 @@ properties: type: description: Identifies if this is the original routing plan that was requested, or if a conditional override has been used. $ref: ../enums/RoutingPlanType.yaml + recipientContact: + $ref: ../../snippets/recipientContact.yaml timestamps: type: object additionalProperties: false diff --git a/specification/snippets/recipientContact.yaml b/specification/snippets/recipientContact.yaml new file mode 100644 index 000000000..b7de7674e --- /dev/null +++ b/specification/snippets/recipientContact.yaml @@ -0,0 +1,12 @@ +type: object +additionalProperties: false +description: Contact details used by this channel - optional. +properties: + id: + type: string + description: The source’s identifier for the contact - optional. + example: y5z6a7b8 + source: + type: string + description: The source of the contact. + example: pds \ No newline at end of file From e8f47dbc3bec171866b206b42ca9bf8c8c7cc492 Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Fri, 6 Mar 2026 15:49:38 +0000 Subject: [PATCH 4/8] CCM-14512: revert repoint backend --- proxies/live/apiproxy/targets/target.xml | 12 ++++-------- ...ssignMessage.MessageBatches.Create.Request.xml | 15 ++++----------- .../AssignMessage.Messages.Create.Request.xml | 15 ++++----------- .../AssignMessage.Messages.GetSingle.Request.xml | 15 ++++----------- .../AssignMessage.NhsAppAccounts.Get.Request.xml | 15 ++++----------- 5 files changed, 20 insertions(+), 52 deletions(-) diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml index 3e7779475..c9c0bfdd3 100644 --- a/proxies/live/apiproxy/targets/target.xml +++ b/proxies/live/apiproxy/targets/target.xml @@ -18,14 +18,10 @@ true - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - - - {requestpath} - {% else %} - https://comms-apim.de-iaho3.communications.national.nhs.uk - {% endif %} + + + + {requestpath} 29000 diff --git a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml index 21ce497b9..3dfbc673b 100644 --- a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - /api/v1/send - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/send - - {% endif %} + + requestpath + /api/v1/send + %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml index 1179f3ba2..2a8e9cd5c 100644 --- a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - /api/v1/messages - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages - - {% endif %} + + requestpath + /api/v1/messages + %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml index 358278336..ce54ec959 100644 --- a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages/{data.messageId} - - {% endif %} + + requestpath + +
{backendCorrelationId}
diff --git a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml index 181ec442f..6d71f721a 100644 --- a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml +++ b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - /api/channels/nhsapp/accounts - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/channels/nhsapp/accounts - - {% endif %} + + requestpath + /api/channels/nhsapp/accounts +
{backendCorrelationId}
From 91caf8d35f49fc731f77d847d5bc98f61a3c5409 Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Tue, 10 Mar 2026 11:39:57 +0000 Subject: [PATCH 5/8] CCM-14512: change in schema --- .../messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json | 11 +++--- .../messages/2WL3ydEEk37IzREoWRhuAdolFCE.json | 11 +++--- .../messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json | 11 +++--- .../messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json | 11 +++--- .../messages/2WL4JXrfauCaQnSFbAujoImSKwo.json | 11 +++--- .../messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json | 11 +++--- .../messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json | 11 +++--- .../messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json | 11 +++--- .../messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json | 11 +++--- .../messages/2WL4xcWKvz4F32g0htBEl8DINzn.json | 11 +++--- .../messages/2WL50w41YaZXcyFCNT346LY8rlz.json | 9 +++-- .../messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json | 9 +++-- .../messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json | 33 +++++++++++------- .../messages/2WL5eDefrbW31uw1il84WdF8ndH.json | 33 +++++++++++------- .../messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json | 33 +++++++++++------- .../messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json | 33 +++++++++++------- .../messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json | 11 +++--- .../messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json | 22 +++++++----- .../schemas/components/SupplierStatus.yaml | 11 ++++-- .../schemas/enums/ChannelMetadataLabel.yaml | 6 ++++ .../schemas/responses/MessageBatch.yaml | 11 ++++++ .../schemas/responses/MessageCreated.yaml | 12 +++++++ .../schemas/responses/MessageResponse.yaml | 34 +++++++++++++++++-- .../responses/NhsAppAccDetailsResponse.yaml | 12 +++++++ specification/schemas/types/Links.yaml | 2 ++ specification/schemas/types/RoutingPlan.yaml | 4 +++ specification/snippets/ChannelMetadata.yaml | 23 +++++++++++++ specification/snippets/recipientContact.yaml | 12 ------- 28 files changed, 298 insertions(+), 122 deletions(-) create mode 100644 specification/schemas/enums/ChannelMetadataLabel.yaml create mode 100644 specification/snippets/ChannelMetadata.yaml delete mode 100644 specification/snippets/recipientContact.yaml diff --git a/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json b/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json index ae3ae9a4d..ceb1ae2c8 100644 --- a/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json +++ b/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json @@ -27,10 +27,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "a1b2c3d4", - "source": "pds" - } + "metadata": [ + { + "id": "a1b2c3d4", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json b/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json index 89707919b..1bdaa1ceb 100644 --- a/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json +++ b/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json @@ -26,10 +26,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "e5f6g7h8", - "source": "pds" - } + "metadata": [ + { + "id": "e5f6g7h8", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json b/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json index b20782829..a66d277fb 100644 --- a/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json +++ b/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json @@ -26,10 +26,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "i9j0k1l2", - "source": "pds" - } + "metadata": [ + { + "id": "i9j0k1l2", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json b/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json index e0ea0f18b..5a5aa7b7e 100644 --- a/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json +++ b/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json @@ -25,10 +25,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "m3n4o5p6", - "source": "pds" - } + "metadata": [ + { + "id": "m3n4o5p6", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json b/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json index ebd6defd0..3e965ed9f 100644 --- a/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json +++ b/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json @@ -25,10 +25,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "q7r8s9t0", - "source": "pds" - } + "metadata": [ + { + "id": "q7r8s9t0", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json index b947703fb..0542877d3 100644 --- a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json +++ b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json @@ -31,10 +31,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "u1v2w3x4", - "source": "pds" - } + "metadata": [ + { + "id": "u1v2w3x4", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json b/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json index 0d0b5e1fe..101dc06fc 100644 --- a/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json +++ b/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json @@ -25,10 +25,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "y5z6a7b8", - "source": "pds" - } + "metadata": [ + { + "id": "y5z6a7b8", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json b/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json index 1c6515ca5..558cd802c 100644 --- a/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json +++ b/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json @@ -31,10 +31,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "c9d0e1f2", - "source": "pds" - } + "metadata": [ + { + "id": "c9d0e1f2", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json index 2ebf650de..0286b0b00 100644 --- a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json +++ b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json @@ -31,10 +31,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "a1b2c3d4", - "source": "pds" - } + "metadata": [ + { + "id": "a1b2c3d4", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json b/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json index fdd0b78fb..fbf50db6b 100644 --- a/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json +++ b/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json @@ -31,10 +31,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "e5f6g7h8", - "source": "pds" - } + "metadata": [ + { + "id": "e5f6g7h8", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json b/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json index 09a53db0a..84d211b17 100644 --- a/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json +++ b/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json @@ -31,9 +31,12 @@ "version": "1", "type": "original" }, - "recipientContact": { - "source": "pds" - } + "metadata": [ + { + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json b/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json index 40763e58c..dc7ba9e24 100644 --- a/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json +++ b/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json @@ -31,9 +31,12 @@ "version": "1", "type": "original" }, - "recipientContact": { - "source": "pds" - } + "metadata": [ + { + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json b/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json index 0e353f1eb..f1d0196a2 100644 --- a/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json +++ b/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json @@ -40,10 +40,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "q7r8s9t0", - "source": "pds" - } + "metadata": [ + { + "id": "q7r8s9t0", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "sms", @@ -58,10 +61,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "u1v2w3x4", - "source": "pds" - } + "metadata": [ + { + "id": "u1v2w3x4", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "letter", @@ -76,10 +82,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "y5z6a7b8", - "source": "pds" - } + "metadata": [ + { + "id": "y5z6a7b8", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json b/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json index bc6d3e543..c104b3576 100644 --- a/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json +++ b/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json @@ -43,10 +43,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "c9d0e1f2", - "source": "pds" - } + "metadata": [ + { + "id": "c9d0e1f2", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "sms", @@ -61,10 +64,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "g3h4i5j6", - "source": "pds" - } + "metadata": [ + { + "id": "g3h4i5j6", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "letter", @@ -79,10 +85,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "k7l8m9n0", - "source": "pds" - } + "metadata": [ + { + "id": "k7l8m9n0", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json index 437732757..51e4e22e7 100644 --- a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json +++ b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json @@ -46,10 +46,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "o1p2q3r4", - "source": "pds" - } + "metadata": [ + { + "id": "o1p2q3r4", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "sms", @@ -65,10 +68,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "s5t6u7v8", - "source": "pds" - } + "metadata": [ + { + "id": "s5t6u7v8", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "letter", @@ -83,10 +89,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "w9x0y1z2", - "source": "pds" - } + "metadata": [ + { + "id": "w9x0y1z2", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json index 610f48c3b..d7a5d5629 100644 --- a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json +++ b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json @@ -46,10 +46,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "a3b4c5d6", - "source": "pds" - } + "metadata": [ + { + "id": "a3b4c5d6", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "sms", @@ -68,10 +71,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "e7f8g9h0", - "source": "pds" - } + "metadata": [ + { + "id": "e7f8g9h0", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "letter", @@ -87,10 +93,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "i1j2k3l4", - "source": "pds" - } + "metadata": [ + { + "id": "i1j2k3l4", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json b/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json index 6ff8f160e..f27c40013 100644 --- a/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json +++ b/sandbox/messages/2bBBpsiMl2rnQt99qm6JLZ6w1vq.json @@ -31,10 +31,13 @@ "type": "override", "version": "5" }, - "recipientContact": { - "id": "a1b2c3d4", - "source": "pds" - } + "metadata": [ + { + "id": "a1b2c3d4", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json b/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json index 4cac8f423..8ffa45641 100644 --- a/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json +++ b/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json @@ -44,10 +44,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "m5n6o7p8", - "source": "pds" - } + "metadata": [ + { + "id": "m5n6o7p8", + "source": "pds", + "label": "recipient_contact" + } + ] }, { "type": "letter", @@ -63,10 +66,13 @@ "version": "1", "type": "original" }, - "recipientContact": { - "id": "q9r0s1t2", - "source": "pds" - } + "metadata": [ + { + "id": "q9r0s1t2", + "source": "pds", + "label": "recipient_contact" + } + ] } ], "timestamps": { diff --git a/specification/schemas/components/SupplierStatus.yaml b/specification/schemas/components/SupplierStatus.yaml index fd301e5be..de3155d09 100644 --- a/specification/schemas/components/SupplierStatus.yaml +++ b/specification/schemas/components/SupplierStatus.yaml @@ -1,5 +1,10 @@ type: object title: CallbackRequest +required: + - type + - attributes + - links + - meta properties: type: type: string @@ -44,11 +49,13 @@ properties: example: '2023-11-17T14:27:51.413Z' retryCount: $ref: ../../snippets/RetryCount.yaml - recipientContact: - $ref: ../../snippets/recipientContact.yaml + metadata: + $ref: ../../snippets/ChannelMetadata.yaml required: - messageId - messageReference + - cascadeType + - cascadeOrder - channel - channelStatus - timestamp diff --git a/specification/schemas/enums/ChannelMetadataLabel.yaml b/specification/schemas/enums/ChannelMetadataLabel.yaml new file mode 100644 index 000000000..8e3aca3f1 --- /dev/null +++ b/specification/schemas/enums/ChannelMetadataLabel.yaml @@ -0,0 +1,6 @@ +title: Enum_ChannelMetadataLabel +description: The label associated with the metadata for this channel at the time this response was generated. +type: string +enum: + - recipient_contact +example: recipient_contact diff --git a/specification/schemas/responses/MessageBatch.yaml b/specification/schemas/responses/MessageBatch.yaml index 2c31800a7..f3046db1b 100644 --- a/specification/schemas/responses/MessageBatch.yaml +++ b/specification/schemas/responses/MessageBatch.yaml @@ -5,6 +5,10 @@ properties: data: type: object additionalProperties: false + required: + - type + - id + - attributes properties: type: $ref: ../enums/EnumMessageBatch.yaml @@ -15,6 +19,10 @@ properties: attributes: type: object additionalProperties: false + required: + - messageBatchReference + - routingPlan + - messages properties: messageBatchReference: type: string @@ -29,6 +37,9 @@ properties: type: object title: Message additionalProperties: false + required: + - messageReference + - id properties: messageReference: $ref: ../../snippets/MessageReferenceSnippet.yaml diff --git a/specification/schemas/responses/MessageCreated.yaml b/specification/schemas/responses/MessageCreated.yaml index 096274a73..dbdca2fed 100644 --- a/specification/schemas/responses/MessageCreated.yaml +++ b/specification/schemas/responses/MessageCreated.yaml @@ -5,6 +5,11 @@ properties: data: type: object additionalProperties: false + required: + - type + - id + - attributes + - links properties: type: $ref: ../enums/EnumMessage.yaml @@ -14,6 +19,11 @@ properties: attributes: type: object additionalProperties: false + required: + - messageReference + - messageStatus + - timestamps + - routingPlan properties: messageReference: $ref: ../types/MessageReference.yaml @@ -23,6 +33,8 @@ properties: timestamps: type: object additionalProperties: false + required: + - created properties: created: type: string diff --git a/specification/schemas/responses/MessageResponse.yaml b/specification/schemas/responses/MessageResponse.yaml index c747e0683..5f5d5f2d6 100644 --- a/specification/schemas/responses/MessageResponse.yaml +++ b/specification/schemas/responses/MessageResponse.yaml @@ -5,6 +5,11 @@ properties: data: type: object additionalProperties: false + required: + - type + - id + - attributes + - links properties: type: $ref: ../enums/EnumMessage.yaml @@ -13,6 +18,11 @@ properties: attributes: type: object additionalProperties: false + required: + - messageReference + - messageStatus + - timestamps + - routingPlan properties: messageReference: $ref: ../types/MessageReference.yaml @@ -40,6 +50,13 @@ properties: items: type: object additionalProperties: false + required: + - type + - cascadeType + - cascadeOrder + - channelStatus + - timestamps + - routingPlan properties: type: $ref: ../enums/ChannelType.yaml @@ -72,6 +89,8 @@ properties: timestamps: type: object additionalProperties: false + required: + - created properties: created: type: string @@ -92,6 +111,9 @@ properties: type: object additionalProperties: false description: The routing plan that this channel was generated from. + required: + - id + - type properties: id: type: string @@ -105,11 +127,13 @@ properties: type: description: Identifies if this is the original routing plan that was requested, or if a conditional override has been used. $ref: ../enums/RoutingPlanType.yaml - recipientContact: - $ref: ../../snippets/recipientContact.yaml + metadata: + $ref: ../../snippets/ChannelMetadata.yaml timestamps: type: object additionalProperties: false + required: + - created properties: created: type: string @@ -144,6 +168,9 @@ properties: items: type: object additionalProperties: false + required: + - queriedAt + - source properties: version: description: This is the version of the document that was received from this source. @@ -178,6 +205,9 @@ properties: data: type: object additionalProperties: false + required: + - type + - id properties: type: $ref: ../enums/EnumMessageBatch.yaml diff --git a/specification/schemas/responses/NhsAppAccDetailsResponse.yaml b/specification/schemas/responses/NhsAppAccDetailsResponse.yaml index 62dfdeb0a..4c810d998 100644 --- a/specification/schemas/responses/NhsAppAccDetailsResponse.yaml +++ b/specification/schemas/responses/NhsAppAccDetailsResponse.yaml @@ -5,6 +5,10 @@ properties: data: type: object additionalProperties: false + required: + - type + - id + - attributes properties: type: $ref: ../enums/TypeNhsAppAccounts.yaml @@ -14,12 +18,17 @@ properties: attributes: type: object additionalProperties: false + required: + - accounts properties: accounts: type: array items: type: object additionalProperties: false + required: + - nhsNumber + - notificationsEnabled properties: nhsNumber: description: The patient's NHS number. @@ -32,6 +41,9 @@ properties: type: object additionalProperties: false description: Contains links to related objects. + required: + - last + - self properties: last: type: string diff --git a/specification/schemas/types/Links.yaml b/specification/schemas/types/Links.yaml index c86b717d4..39125f11d 100644 --- a/specification/schemas/types/Links.yaml +++ b/specification/schemas/types/Links.yaml @@ -1,6 +1,8 @@ type: object additionalProperties: false description: Contains links to related objects. +required: + - self properties: self: type: string diff --git a/specification/schemas/types/RoutingPlan.yaml b/specification/schemas/types/RoutingPlan.yaml index 0741116f0..6080b8869 100644 --- a/specification/schemas/types/RoutingPlan.yaml +++ b/specification/schemas/types/RoutingPlan.yaml @@ -1,5 +1,9 @@ type: object additionalProperties: false +required: + - id + - name + - createdDate properties: id: type: string diff --git a/specification/snippets/ChannelMetadata.yaml b/specification/snippets/ChannelMetadata.yaml new file mode 100644 index 000000000..b18972122 --- /dev/null +++ b/specification/snippets/ChannelMetadata.yaml @@ -0,0 +1,23 @@ +type: array +minItems: 0 +description: |- + This array includes a list of all metadata lookups done for this channel within the system. + + Currently only PDS is used for lookups. +items: + type: object + additionalProperties: false + required: + - source + - label + properties: + id: + type: string + description: The source’s identifier for the metadata. + example: y5z6a7b8 + source: + type: string + description: The source of the metadata. + example: pds + label: + $ref: ../schemas/enums/ChannelMetadataLabel.yaml \ No newline at end of file diff --git a/specification/snippets/recipientContact.yaml b/specification/snippets/recipientContact.yaml deleted file mode 100644 index b7de7674e..000000000 --- a/specification/snippets/recipientContact.yaml +++ /dev/null @@ -1,12 +0,0 @@ -type: object -additionalProperties: false -description: Contact details used by this channel - optional. -properties: - id: - type: string - description: The source’s identifier for the contact - optional. - example: y5z6a7b8 - source: - type: string - description: The source of the contact. - example: pds \ No newline at end of file From 0df2879f6e1b5327f8553166a55ad0bb7893bac8 Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Tue, 10 Mar 2026 11:42:27 +0000 Subject: [PATCH 6/8] CCM-14512: repoint backend --- proxies/live/apiproxy/targets/target.xml | 12 ++++++++---- ...ssignMessage.MessageBatches.Create.Request.xml | 15 +++++++++++---- .../AssignMessage.Messages.Create.Request.xml | 15 +++++++++++---- .../AssignMessage.Messages.GetSingle.Request.xml | 15 +++++++++++---- .../AssignMessage.NhsAppAccounts.Get.Request.xml | 15 +++++++++++---- 5 files changed, 52 insertions(+), 20 deletions(-) diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml index c9c0bfdd3..3e7779475 100644 --- a/proxies/live/apiproxy/targets/target.xml +++ b/proxies/live/apiproxy/targets/target.xml @@ -18,10 +18,14 @@ true - - - - {requestpath} + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + + + {requestpath} + {% else %} + https://comms-apim.de-iaho3.communications.national.nhs.uk + {% endif %} 29000 diff --git a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml index 3dfbc673b..21ce497b9 100644 --- a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - /api/v1/send - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + /api/v1/send + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/send + + {% endif %} %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml index 2a8e9cd5c..1179f3ba2 100644 --- a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - /api/v1/messages - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + /api/v1/messages + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages + + {% endif %} %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml index ce54ec959..358278336 100644 --- a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages/{data.messageId} + + {% endif %}
{backendCorrelationId}
diff --git a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml index 6d71f721a..181ec442f 100644 --- a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml +++ b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml @@ -16,10 +16,17 @@ target.copy.pathsuffix false - - requestpath - /api/channels/nhsapp/accounts - + {% if ENVIRONMENT_TYPE == 'sandbox' %} + + requestpath + /api/channels/nhsapp/accounts + + {% else %} + + target.url + https://comms-apim.de-iaho3.communications.national.nhs.uk/api/channels/nhsapp/accounts + + {% endif %}
{backendCorrelationId}
From de1014839368ba01efc1bc2bbedf7657d764ed57 Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Tue, 10 Mar 2026 14:44:55 +0000 Subject: [PATCH 7/8] CCM-14512: move ChannelMetadata.yaml into types --- specification/schemas/components/SupplierStatus.yaml | 2 +- specification/schemas/responses/MessageResponse.yaml | 2 +- specification/{snippets => schemas/types}/ChannelMetadata.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename specification/{snippets => schemas/types}/ChannelMetadata.yaml (90%) diff --git a/specification/schemas/components/SupplierStatus.yaml b/specification/schemas/components/SupplierStatus.yaml index de3155d09..aecfa14ea 100644 --- a/specification/schemas/components/SupplierStatus.yaml +++ b/specification/schemas/components/SupplierStatus.yaml @@ -50,7 +50,7 @@ properties: retryCount: $ref: ../../snippets/RetryCount.yaml metadata: - $ref: ../../snippets/ChannelMetadata.yaml + $ref: ../types/ChannelMetadata.yaml required: - messageId - messageReference diff --git a/specification/schemas/responses/MessageResponse.yaml b/specification/schemas/responses/MessageResponse.yaml index 5f5d5f2d6..8b2b5d5c9 100644 --- a/specification/schemas/responses/MessageResponse.yaml +++ b/specification/schemas/responses/MessageResponse.yaml @@ -128,7 +128,7 @@ properties: description: Identifies if this is the original routing plan that was requested, or if a conditional override has been used. $ref: ../enums/RoutingPlanType.yaml metadata: - $ref: ../../snippets/ChannelMetadata.yaml + $ref: ../types/ChannelMetadata.yaml timestamps: type: object additionalProperties: false diff --git a/specification/snippets/ChannelMetadata.yaml b/specification/schemas/types/ChannelMetadata.yaml similarity index 90% rename from specification/snippets/ChannelMetadata.yaml rename to specification/schemas/types/ChannelMetadata.yaml index b18972122..bdf1f2384 100644 --- a/specification/snippets/ChannelMetadata.yaml +++ b/specification/schemas/types/ChannelMetadata.yaml @@ -20,4 +20,4 @@ items: description: The source of the metadata. example: pds label: - $ref: ../schemas/enums/ChannelMetadataLabel.yaml \ No newline at end of file + $ref: ../enums/ChannelMetadataLabel.yaml \ No newline at end of file From 89ea32f0221bc64d1e1e60052df390ca66bbb96b Mon Sep 17 00:00:00 2001 From: Ian Hodges Date: Tue, 10 Mar 2026 14:45:22 +0000 Subject: [PATCH 8/8] CCM-14512: revert repoint backend --- proxies/live/apiproxy/targets/target.xml | 12 ++++-------- ...ssignMessage.MessageBatches.Create.Request.xml | 15 ++++----------- .../AssignMessage.Messages.Create.Request.xml | 15 ++++----------- .../AssignMessage.Messages.GetSingle.Request.xml | 15 ++++----------- .../AssignMessage.NhsAppAccounts.Get.Request.xml | 15 ++++----------- 5 files changed, 20 insertions(+), 52 deletions(-) diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml index 3e7779475..c9c0bfdd3 100644 --- a/proxies/live/apiproxy/targets/target.xml +++ b/proxies/live/apiproxy/targets/target.xml @@ -18,14 +18,10 @@ true - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - - - {requestpath} - {% else %} - https://comms-apim.de-iaho3.communications.national.nhs.uk - {% endif %} + + + + {requestpath} 29000 diff --git a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml index 21ce497b9..3dfbc673b 100644 --- a/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.MessageBatches.Create.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - /api/v1/send - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/send - - {% endif %} + + requestpath + /api/v1/send + %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml index 1179f3ba2..2a8e9cd5c 100644 --- a/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.Create.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - /api/v1/messages - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages - - {% endif %} + + requestpath + /api/v1/messages + %data.payload# diff --git a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml index 358278336..ce54ec959 100644 --- a/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml +++ b/proxies/shared/policies/AssignMessage.Messages.GetSingle.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/v1/messages/{data.messageId} - - {% endif %} + + requestpath + +
{backendCorrelationId}
diff --git a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml index 181ec442f..6d71f721a 100644 --- a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml +++ b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml @@ -16,17 +16,10 @@ target.copy.pathsuffix false - {% if ENVIRONMENT_TYPE == 'sandbox' %} - - requestpath - /api/channels/nhsapp/accounts - - {% else %} - - target.url - https://comms-apim.de-iaho3.communications.national.nhs.uk/api/channels/nhsapp/accounts - - {% endif %} + + requestpath + /api/channels/nhsapp/accounts +
{backendCorrelationId}