Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to throw error on invalid request for all actions #7

Open
stas-fomenko opened this issue Dec 9, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@stas-fomenko
Copy link
Contributor

DESCRIPTION: currently on invalid request (for example invalid id) component returns responce but not throws an error.
Could be usefull to have an option to throw an error in case of invalid input data

STR:

  1. action: supplier evaluation risc rating

input

{
"orderProductRequestDetail": {
"inquiryDetail": {
"dunsNumber": "804735132111"
}
}
}
  1. Retrieve sample:

AR: response:

{
  "transactionDetail": {
    "applicationTransactionID": "Id-f603d15f029bbd76a88de571",
    "serviceTransactionID": "Id-f603d15f029bbd76a88de571",
    "transactionTimestamp": 1607533558997
  },
  "transactionResult": {
    "severityText": "ERROR",
    "resultID": "CM012",
    "resultText": "Invalid Duns number provided in the request. Please refer to Online Documentation.",
    "resultMessage": [
      {
        "resultDescription": "Invalid Duns number provided in the request. Please refer to Online Documentation."
      }
    ]
  },
  "serviceVersionNumber": "5.0",
  "orderProductResponseDetail": null
}

ER:
response returned OR error thrown depends on choosen option

@stas-fomenko stas-fomenko added the enhancement New feature or request label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant