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 Product/SKU validation in Create Inventory Count Import Item API #47

Open
ravilodhi opened this issue Jan 16, 2025 · 0 comments
Open
Assignees

Comments

@ravilodhi
Copy link
Contributor

API Endpoint: /rest/s1/inventory-cycle-count/cycleCounts/${inventoryCountImportId}/items/add

  1. If productId is passed, check whether a product exists with that ID. Return an error if no matching product is found.
  2. If no productId is passed, check whether idType and idValue are provided. If they are, verify whether a valid good identification exists. Return an error if it does not.
  3. If neither productId nor idType/idValue is provided, return an error.

This approach ensures clarity and prevents confusion when adding items that do not exist in the system.

@ravilodhi ravilodhi self-assigned this Jan 16, 2025
arunpati added a commit that referenced this issue Jan 17, 2025
…ms_api

Improved: Added product/sku validations in Add Cycle Count Items API (#47)
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