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

Zero weight causes validation error (status code 422) #15

Open
aahonen19 opened this issue Sep 18, 2017 · 0 comments
Open

Zero weight causes validation error (status code 422) #15

aahonen19 opened this issue Sep 18, 2017 · 0 comments

Comments

@aahonen19
Copy link

Noticed that smartship api doesn't like weight being 0.0 or 0 and returns status code 422. Maybe weight should be validated that its not 0 before making request to the api?

Tested at least using following service ids:

  • "PO2102" (Posti - Express-paketti)
  • "PO2103" (Posti - Postipaketti)
  • "PO2104" (Posti - Kotipaketti)

api returns status code 422 and content:

[  
   {  
      "type":"error",
      "field":"ParcelGroup_Weight",
      "location":"ParcelGroupWeight",
      "messageCode":"MinimumFlt",
      "message":"below minimum (0,01) value"
   }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant