Error on adding a file to a transaction via Public API: response status is 404. Entity with ID provided not found.

Symptoms

In Swagger UI while adding a file to a transaction using the following method:

POST /api/publicapi/v1/transactions/{transactionId}/files

...it returns an error:

Response status is 404.

The response body is the following:

{
    "type": "https://platform.abbyy.cloud/common/entity-not-found",
    "title": "Entity with ID provided not found",
    "status": 404,
    "detail": "No transaction with id 3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "severity": "User",
    "vars": {
    "transactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"  }
}

Cause

The transaction ID provided as a parameter is invalid.

Resolution

  • Check if the transaction exists using the following method:
    GET /api/publicapi/v1/transactions/{transactionId}
  • If it does not exist, create a new transaction using the following method:
    POST /api/publicapi/v1/transactions

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.