This service provides endpoints for the counting and deleting of flags that block push retries on customs notifications.
Path | Method | Description |
---|---|---|
/blocked-count | GET |
Returns a count of the number of notifications for the given clientId that are blocked |
/blocked-flag | DELETE |
Deletes the flags blocking notifications from being pushed for the given clientId |
curl -v -X GET http://customs-notification-push-retry-host/blocked-count \
-H 'X-Client-ID: AClientId' \
-H 'Accept: application/vnd.hmrc.1.0+xml'
For successful responses the status is 200 OK along with an xml body specifying the count e.g.
<pushNotificationBlockedCount>5</pushNotificationBlockedCount>
curl -X DELETE http://customs-notification-push-retry-host/blocked-flag \
-H 'X-Client-ID: AClientId' \
-H 'Accept: application/vnd.hmrc.1.0+xml'
For successful responses the status is 204 NO CONTENT. For requests where the clientId has no blocked requests then a 404 NOT FOUND is returned.
This code is open source software licensed under the Apache 2.0 License.