Create Customer

Mowico
Shopify Partner
6 0 1

Hello, to the Shopify endpoint: (POST) /admin/api/2022-10/customers/207119551/addresses.json. I am sending the following request.

 

Request :
{
2 "id": 0,
3 "address1": "Cem Berk's address line",
4 "address2": null,
5 "city": "Eskisehir",
6 "cityCode": null,
7 "companyTitle": "",
8 "name": "Cem",
9 "surname": "Berk",
10 "email": "",
11 "phoneNumber": "905448285346",
12 "province": null,
13 "state": null,
14 "stateCode": null,
15 "country": "Turkey",
16 "zipCode": "",
17 "addressName": "AddressName sperate name and surname",
18 "provinceCode": null,
19 "countryCode": "340201046165",
20 "country_name": null,
21 "defaultAddress": null
22}

 

Here, I fill in the Name and Surname fields as Cem Berk. But in the response, name and surname are dividing and returning the data I wrote in the addressName field above as follows.

 

Response : 

{
2 "customerId": "6142781816981",
3 "id": 7708764438677,
4 "addressName": "AddressName sperate name and surname",
5 "name": "AddressName",
6 "surname": "sperate name and surname",
7 "address1": "Cem Berk's address line",
8 "address2": null,
9 "country": "Turkey",
10 "countryCode": "TR",
11 "state": null,
12 "stateCode": "TR",
13 "city": "Eskisehir",
14 "companyTitle": "",
15 "phoneNumber": "905448285346",
16 "zipCode": "",
17 "defaultAddress": null
18}

 

However, it says in your Api document that it will return as name and surname in the request. Response in your api document is not returning. How are we supposed to process this endpoint?

Replies 0 (0)