Skip to content

Manifest Revert Service

Description

The Revert Manifest service deletes the manifest version in the UnderCorrection status by provided Manifest Tracking Number. Service will check if the manifest is locked. The manifest is locked for revert when Manifest is in a queue for signing.

Parameters

Sequence of Steps

  1. Security Token Validation.
  2. User Authorization.
  3. If the User is authenticated and authorized, the system will check if the manifest is locked for corrections.

  4. 3.1. If manifest is in the signing queue, it is locked for correct. The following error will be generated

    • E_ManifestLockedAsyncSign: Manifest is locked because it is in the queue for signing. Manifest cannot be corrected.
  5. 3.2. If the manifest is in teh Change Biller process by EPA, it is locked for corrections. The following error will

    • E_ManifestLockedEpaChangeBiller: Manifest is Locked because EPA is Changing Biller. Manifested cannot be corrected.
  6. The system will process the request.

  7. 4.1 {{#include ../../components/mtn-validation-steps.md}}

  8. 4.2 The system will check if the manifest ca be reverted. if no UnderCorrection version of the manifest exists, the system will stop processing and generate the following error:

    • E_NoVersionForUnderCorrectionStatus: Manifest does not contain the Version in 'UnderCorrection' status
  9. 4.3 The system reverts the manifest (Deletes Manifest version in UnderCorrection status)

  10. On success the system returns JSON containing the following information:

  11. Manifest Tracking Number

  12. Operation Status: Reverted
  13. Date: Date/Time of the operation
  14. Current Version Number

  15. If an error is generated during the validation process, the system will return the following information:

  16. Error: containing error code, error message, and error id and date

Completed Response Example

crud-manifest-success.json

{
  "manifestTrackingNumber": "100001380ELC",
  "operationStatus": "Reverted",
  "currentVersionNumber": 2,
  "date": "2017-07-27T19:13:28.628+0000"
}

Validation Error Return example

{
  "code": "E_ManifestTrackingNumberNotFound ",
  "message": "Provided Manifest Tracking Number was not Found",
  "errorId": "9v7a9808-s35a5-4874-928f-12fc3def4b56",
  "date": "2017-06-23T23:15:45.095+0000"
}