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

[Feature]: BE-PHOENIX-Create API for Adding a Product Variant #1419

Open
Ndustan opened this issue Aug 24, 2024 · 0 comments
Open

[Feature]: BE-PHOENIX-Create API for Adding a Product Variant #1419

Ndustan opened this issue Aug 24, 2024 · 0 comments
Labels
triage This Ticket is yet to be verified as a valid ticket

Comments

@Ndustan
Copy link

Ndustan commented Aug 24, 2024

Description

Implement an API endpoint that allows adding a new product variant (e.g., size, price).

Endpoint: POST /api/v1/organizations/{org_id}/products/{product_id}/variants

Acceptance Criteria

  • The API should accept a JSON body with the variant details (size, stock, price).
  • The API should update the product with the new variant in the database.
  • The API should return a success status and the updated product details.

Links

| [FIGMA LINK] https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=3065-4144&t=aoGEulnZvAsAxXc1-4

Images

![image]
image

@Ndustan Ndustan added the triage This Ticket is yet to be verified as a valid ticket label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This Ticket is yet to be verified as a valid ticket
Projects
None yet
Development

No branches or pull requests

1 participant