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

POST /V1/customers api issue #38994

Closed
1 of 5 tasks
ShehzadAhm opened this issue Jul 31, 2024 · 21 comments
Closed
1 of 5 tasks

POST /V1/customers api issue #38994

ShehzadAhm opened this issue Jul 31, 2024 · 21 comments
Labels
Area: APIs Component: Api Use with concrete module component label E.g. "Component: Api" + "Catalog" Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reported on 2.4.5-p8 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@ShehzadAhm
Copy link

ShehzadAhm commented Jul 31, 2024

Preconditions and environment

  • Magento version 2.4.5-P8
  • Should have at least one website

Steps to reproduce

  1. Create an integration and get the access token
  2. Using the token, make a call to POST /V1/customers API to create customer

Expected result

Actual result

Getting 400 Bad request error:
{
"message": "Specified request cannot be processed."
}

image

Additional information

API Documentation: https://developer.adobe.com/commerce/webapi/rest/tutorials/orders/order-create-customer/

But the api works if the endpoint is: <magento_url>/<store_view_code>/rest/V1/customers (client project)

image

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Copy link

m2-assistant bot commented Jul 31, 2024

Hi @ShehzadAhm. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@ShehzadAhm
Copy link
Author

@magento give me 2.4.5-p8 instance

Copy link

Hi @ShehzadAhm. Thank you for your request. I'm working on Magento instance for you.

Copy link

Hi @ShehzadAhm, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

@ShehzadAhm
Copy link
Author

@magento give me 2.4-develop instance

Copy link

Hi @ShehzadAhm. Thank you for your request. I'm working on Magento instance for you.

Copy link

@ShehzadAhm
Copy link
Author

Tested with the provided instance:
POST <magento-url>/rest/<store_code>/V1/customers throws error
image

POST <magento-url>/rest/<store_view_code>/V1/customers works fine
image

However, the first API endpoint is given in the documentation.

[NOTE: In my client project, only this endpoint is working: <magento_url>/<store_view_code>/rest/V1/customers!]

@engcom-Delta engcom-Delta self-assigned this Aug 2, 2024
Copy link

m2-assistant bot commented Aug 2, 2024

Hi @engcom-Delta. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Delta
Copy link
Contributor

@magento give me 2.4-develop instance

Copy link

Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.

Copy link

@engcom-Delta
Copy link
Contributor

Hi @ShehzadAhm ,

Thanks for your reporting and collaboration.
We have verified the issue in latest 2.4-develop instance and it is reproducible.
Hence, Confirming the issue.

Steps to reproduce -

  1. Create one or multiple websites.
    image
  2. Generate Access Token
  3. Run Create Customer API with store code.
    image
    Observe Error displays when user provide store code.
  4. Now, Run Create Customer API with store view code.
    image
    API runs successfully with store view code but displays error with store code.

As per dev doc -
image

Thanks.

@engcom-Delta engcom-Delta added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Component: Api Use with concrete module component label E.g. "Component: Api" + "Catalog" Area: APIs and removed Issue: ready for confirmation labels Aug 2, 2024
@github-jira-sync-bot
Copy link

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

@github-jira-sync-bot github-jira-sync-bot removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 2, 2024
@m2-community-project m2-community-project bot added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: ready for confirmation labels Aug 2, 2024
@engcom-Delta engcom-Delta added Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch and removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: ready for confirmation labels Aug 2, 2024
@engcom-Delta engcom-Delta added the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 2, 2024
@github-jira-sync-bot
Copy link

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

@github-jira-sync-bot github-jira-sync-bot removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 2, 2024
@engcom-Delta engcom-Delta added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: ready for confirmation labels Aug 2, 2024
@github-jira-sync-bot
Copy link

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

@github-jira-sync-bot github-jira-sync-bot removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 2, 2024
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/AC-12677 is successfully created for this GitHub issue.

Copy link

m2-assistant bot commented Aug 2, 2024

✅ Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@github-jira-sync-bot
Copy link

❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-12677

@engcom-Delta engcom-Delta added Reported on 2.4.5-p8 Indicates original Magento version for the Issue report. Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: ready for confirmation labels Aug 5, 2024
@github-jira-sync-bot
Copy link

❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-12677

@engcom-Delta
Copy link
Contributor

engcom-Delta commented Aug 7, 2024

Hi @ShehzadAhm ,

Thanks for your reporting and collaboration. We are closing the ticket as issue is related to dev docs.
You can refer AdobeDocs/commerce-webapi#351 to see the updates.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: APIs Component: Api Use with concrete module component label E.g. "Component: Api" + "Catalog" Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reported on 2.4.5-p8 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
None yet
Development

No branches or pull requests

3 participants