Restart expired or rejected request

Latest update: October 31st, 2019

The following use case is assumed:

  • Owner of the request: API
  • The request identifier (messageCode) is found in the status EXPIRED or REJECTED.
Description
SERVICE MESSAGE RESTART
URL /api/v3/messages/restart
SECURITY YES
METHOD PUT
CONTENT/TYPE application/json
PARAMS JSON with messageCode: request code to be restarted. The API that consumes it must be the owner of the request.
RESPONSE 200: HTTP status code 200/OK – Request received.

JSON Example:

    {
      "messageCode": "string",
    }

Response content type: string corresponding to the code of the restarted request. Alternative responses in case of error: HTTP status codes other than 200/OK will be returned. In this case a JSON describing the problem will always be returned:

    {
      "code": "string",
      "type": "string",
      "message": "string",
      "trace" : "string"
    }

For example:

    {
      "code": 262,
      "type": "Error",
      "message": "No es posible reenviar la petición. Solo se puede
      reiniciar si está expirada o rechazada."
    }
    {
      "code": 236,
      "type": "Error",
      "message": "No es posible recuperar la información del mensaje
      solicitado."
    }

results matching ""

    No results matching ""