AdobeDocs / AdobeDocs/commerce-webapi

POST /V1/customers api issue

Open
#351 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13
Forks
120
Avg merge
2d 3h
Merged PRs (30d)
8

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Which topic?

POST /V1/customers api issue

### What's wrong with the content?

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

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

![image](https://github.com/user-attachments/assets/d35c3113-95c3-4d6e-a566-6228cf390df7)
Please refer the ticket - https://github.com/magento/magento2/issues/38994

### What changes do you propose?

**Preconditions and environment**

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

**Steps to reproduce**

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

**Expected result**
https://example.magento.test/rest//V1/customers api should work
**Actual result**
Getting 400 Bad request error:
{
"message": "Specified request cannot be processed."
}
![image](https://github.com/user-attachments/assets/249695db-de71-4aa9-956c-f9b61f2b8430)

**Additional information**
API Documentation: https://developer.adobe.com/commerce/webapi/rest/tutorials/orders/order-create-customer/
But the api works if the endpoint is: //rest/V1/customers (client project)
![image](https://github.com/user-attachments/assets/0b2baf56-9095-4f01-84be-49f8be169ab2)

### Anything else that can help to cover this?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked API documentation page and compare its POST /V1/customers endpoint with the store-view-prefixed endpoint described in the issue. Read the referenced Magento issue for context and verify the behavior against the stated Magento 2.4.5-P8 steps; done means the documentation accurately describes the working endpoint and expected response.

Written by the indexing model from the issue text.

Assessment

Domain
api, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.