Skip to main content
Question

How do I get discontinued item using the REST API

  • June 9, 2023
  • 1 reply
  • 51 views

Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • 5 replies

Trying to get a discontinued item.

but when I use GET  "https://????/assystREST/v2/items?shortCode=abcitem” it fails if the item “abcitem” is discontinued but succeed if it is not.

1 reply

Forum|alt.badge.img+5

If you ever need to know the available parameters for a resource then using the RAML will tell you:

https://{server}/assystREST/v2/items/raml

In your case you need the includeDiscontinued query parameter:

https://{server}/assystREST/v2/items?shortCode=abcitem&includeDiscontinued=true


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings