diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml
index c9c0bfdd3..2fe629d5a 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-rake4.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..a269ec338 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-rake4.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..8344269f8 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-rake4.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..da2298f8c 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
- /api/v1/messages/{data.messageId}
-
+ {% if ENVIRONMENT_TYPE == 'sandbox' %}
+
+ requestpath
+ /api/v1/messages/{data.messageId}
+
+ {% else %}
+
+ target.url
+ https://comms-apim.de-rake4.communications.national.nhs.uk/api/v1/messages/{data.messageId}
+
+ {% endif %}
diff --git a/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml b/proxies/shared/policies/AssignMessage.NhsAppAccounts.Get.Request.xml
index 6d71f721a..ee362d0b9 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-rake4.communications.national.nhs.uk/api/channels/nhsapp/accounts
+
+ {% endif %}
diff --git a/sandbox/messages/2WL3qFTEFM0qMY8xjRbt1LIKCzM.json b/sandbox/messages/2WL3qFTEFM0qMY8xjRbt1LIKCzM.json
index 09f491a89..37351ff87 100644
--- a/sandbox/messages/2WL3qFTEFM0qMY8xjRbt1LIKCzM.json
+++ b/sandbox/messages/2WL3qFTEFM0qMY8xjRbt1LIKCzM.json
@@ -20,7 +20,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"delivered": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json b/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json
index 6deb2e8be..91e77ac45 100644
--- a/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json
+++ b/sandbox/messages/2WL3wwFhpZ6blJNIoh747bDEFNv.json
@@ -20,7 +20,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"delivered": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json b/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json
index 8a7a3a838..a1910ab8b 100644
--- a/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json
+++ b/sandbox/messages/2WL3ydEEk37IzREoWRhuAdolFCE.json
@@ -20,7 +20,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"delivered": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json b/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json
index e7f805af8..a6da3e5e6 100644
--- a/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json
+++ b/sandbox/messages/2WL3zxCY9e5vm2VP1ZfYMb53WPF.json
@@ -20,7 +20,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"delivered": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL44QP7vrKxKKBZdTtUQoB2bWl.json b/sandbox/messages/2WL44QP7vrKxKKBZdTtUQoB2bWl.json
index 8de405faf..e2163400a 100644
--- a/sandbox/messages/2WL44QP7vrKxKKBZdTtUQoB2bWl.json
+++ b/sandbox/messages/2WL44QP7vrKxKKBZdTtUQoB2bWl.json
@@ -19,8 +19,7 @@
"cascadeOrder": 1,
"channelStatus": "sending",
"timestamps": {
- "created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z"
+ "created": "2023-10-09T10:31:59Z"
},
"routingPlan": {
"id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1",
diff --git a/sandbox/messages/2WL45YuHOLATvC3GspEu0oSioux.json b/sandbox/messages/2WL45YuHOLATvC3GspEu0oSioux.json
index c7b0a922e..608572e41 100644
--- a/sandbox/messages/2WL45YuHOLATvC3GspEu0oSioux.json
+++ b/sandbox/messages/2WL45YuHOLATvC3GspEu0oSioux.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_PDSV_0004",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json b/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json
index bc81d260d..182a33feb 100644
--- a/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json
+++ b/sandbox/messages/2WL4GEeFVxXG9S57nRlefBwwKxp.json
@@ -19,8 +19,7 @@
"cascadeOrder": 1,
"channelStatus": "sending",
"timestamps": {
- "created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z"
+ "created": "2023-10-09T10:31:59Z"
},
"routingPlan": {
"id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1",
diff --git a/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json b/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json
index c87dbbfd3..6987bbc03 100644
--- a/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json
+++ b/sandbox/messages/2WL4JXrfauCaQnSFbAujoImSKwo.json
@@ -19,8 +19,7 @@
"cascadeOrder": 1,
"channelStatus": "sending",
"timestamps": {
- "created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z"
+ "created": "2023-10-09T10:31:59Z"
},
"routingPlan": {
"id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1",
diff --git a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json
index 524dc421a..2e58234f4 100644
--- a/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json
+++ b/sandbox/messages/2WL4JtCiOe7l2TT4szwPjNJah3z.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_SUPE_0007",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json b/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json
index b84dafcb6..8f6eff721 100644
--- a/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json
+++ b/sandbox/messages/2WL4LuyNMtoGAsJQIpTxZLl8e3e.json
@@ -19,8 +19,7 @@
"cascadeOrder": 1,
"channelStatus": "sending",
"timestamps": {
- "created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z"
+ "created": "2023-10-09T10:31:59Z"
},
"routingPlan": {
"id": "b838b13c-f98c-4def-93f0-515d4e4f4ee1",
diff --git a/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json b/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json
index a8ee0d575..7de1bb216 100644
--- a/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json
+++ b/sandbox/messages/2WL4MOuSeCTODDAScFG7KIq9a5r.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_SUPE_0007",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json
index af791ce1a..5810f0820 100644
--- a/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json
+++ b/sandbox/messages/2WL4W9RgbuLLByXdR77H8vjKSDd.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_SUPE_0007",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL4khXn32dOOj4bB4bi8Tkllrq.json b/sandbox/messages/2WL4khXn32dOOj4bB4bi8Tkllrq.json
index 7c7918a15..0de9d230b 100644
--- a/sandbox/messages/2WL4khXn32dOOj4bB4bi8Tkllrq.json
+++ b/sandbox/messages/2WL4khXn32dOOj4bB4bi8Tkllrq.json
@@ -15,7 +15,6 @@
"messageFailureReasonCode": "MFR_PDSV_0111",
"timestamps": {
"created": "2023-10-09T10:31:37Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:31:59Z"
},
"metadata": [
diff --git a/sandbox/messages/2WL4vHFZzInmaYwq6HRNDqTX8dH.json b/sandbox/messages/2WL4vHFZzInmaYwq6HRNDqTX8dH.json
index 90564ad92..073d0b13d 100644
--- a/sandbox/messages/2WL4vHFZzInmaYwq6HRNDqTX8dH.json
+++ b/sandbox/messages/2WL4vHFZzInmaYwq6HRNDqTX8dH.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_PDSV_0002",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:31:59Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json b/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json
index 56fa095b3..90eaa3f86 100644
--- a/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json
+++ b/sandbox/messages/2WL4xcWKvz4F32g0htBEl8DINzn.json
@@ -35,7 +35,6 @@
],
"timestamps": {
"created": "2023-10-09T10:31:37Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"metadata": [
diff --git a/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json b/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json
index 4d20d03cb..49c388e3e 100644
--- a/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json
+++ b/sandbox/messages/2WL50w41YaZXcyFCNT346LY8rlz.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_PDSV_0002",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json b/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json
index eaaae732c..3b2fce1ab 100644
--- a/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json
+++ b/sandbox/messages/2WL54x0XQjCbWeE5lN0DKQZcokU.json
@@ -24,7 +24,6 @@
"channelFailureReasonCode": "CFR_PDSV_0002",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json b/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json
index 140cdbecb..34c2effc2 100644
--- a/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json
+++ b/sandbox/messages/2WL5TWl7F7PondWbZ1vctlEtOZ3.json
@@ -20,7 +20,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"delivered": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json b/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json
index 212b1f1a8..a7be3a1e0 100644
--- a/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json
+++ b/sandbox/messages/2WL5eDefrbW31uw1il84WdF8ndH.json
@@ -22,7 +22,6 @@
"channelFailureReasonCode": "CFR_PDSV_0004",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
@@ -39,7 +38,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"delivered": "2023-10-09T11:25:23Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json
index 3db4df677..0a57b1ad6 100644
--- a/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json
+++ b/sandbox/messages/2WL5eYSWGzCHlGmzNxuqVusPxDg.json
@@ -22,7 +22,6 @@
"channelFailureReasonCode": "CFR_PDSV_0004",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
@@ -41,7 +40,6 @@
"channelFailureReasonCode": "CFR_SUPE_0007",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"failed": "2023-10-09T11:25:23Z"
},
"routingPlan": {
@@ -58,7 +56,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:32:37Z",
"delivered": "2023-10-09T11:48:52Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json
index 126ce0165..da8d5af1c 100644
--- a/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json
+++ b/sandbox/messages/2WL5f8j4XVxUPgd3OOqXVYvVFIW.json
@@ -22,7 +22,6 @@
"channelFailureReasonCode": "CFR_PDSV_0004",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"failed": "2023-10-09T10:52:12Z"
},
"routingPlan": {
@@ -41,7 +40,6 @@
"channelFailureReasonCode": "CFR_SUPE_0007",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"failed": "2023-10-09T11:25:23Z"
},
"routingPlan": {
@@ -60,7 +58,6 @@
"channelFailureReasonCode": "CFR_SUPE_0007",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"failed": "2023-10-09T11:48:52Z"
},
"routingPlan": {
@@ -77,7 +74,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:39:37Z",
"delivered": "2023-10-12T08:23:41Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2WL5qbEa7TzSWZXU2IAOCCrLXVL.json b/sandbox/messages/2WL5qbEa7TzSWZXU2IAOCCrLXVL.json
index f66dbb015..03d2a63c3 100644
--- a/sandbox/messages/2WL5qbEa7TzSWZXU2IAOCCrLXVL.json
+++ b/sandbox/messages/2WL5qbEa7TzSWZXU2IAOCCrLXVL.json
@@ -20,7 +20,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"delivered": "2023-10-09T10:52:12Z"
},
"routingPlan": {
diff --git a/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json b/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json
index 16a203534..e23424ae8 100644
--- a/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json
+++ b/sandbox/messages/2n7C5wdJ9JSOSeCJTyd50GvtZeR.json
@@ -21,7 +21,6 @@
"channelStatusDescription": "Message not read in specified time frame",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:31:59Z",
"failed": "2023-10-09T10:31:59Z"
},
"routingPlan": {
@@ -38,7 +37,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:32:37Z",
"delivered": "2023-10-09T11:48:52Z"
},
"routingPlan": {
@@ -55,7 +53,6 @@
"channelStatus": "delivered",
"timestamps": {
"created": "2023-10-09T10:31:59Z",
- "enriched": "2023-10-09T10:32:37Z",
"delivered": "2023-10-09T11:48:52Z"
},
"routingPlan": {
diff --git a/specification/schemas/responses/MessageResponse.yaml b/specification/schemas/responses/MessageResponse.yaml
index a3fc84126..deca0978b 100644
--- a/specification/schemas/responses/MessageResponse.yaml
+++ b/specification/schemas/responses/MessageResponse.yaml
@@ -78,11 +78,6 @@ properties:
description: The date and time that this channel was created at.
format: date-time
example: '2023-11-17T14:27:51.413Z'
- enriched:
- type: string
- description: The date and time when we last enriched the contact details associated with this channel.
- format: date-time
- example: '2023-11-17T14:27:51.413Z'
delivered:
type: string
description: The date and time that this channel was successfully delivered.