use of shopify API for creating customer

smartdesizns
Tourist
8 0 0

Hi, I am using shopify api for creating new customer record.I am using the API in postman with POST method.
API is : admin/api/2019-10/customers.json.
Its returning list of existing customers instead of creating new customer.Please help me with this.

Replies 7 (7)
OTM
Shopify Expert
668 170 248

Hi, @smartdesizns ,

This is Evita from On The Map.

 

Are you sure your using POST instead of GET? You can see here if you use GET method, then your response is customer list, also make sure you have provided right post data for creating a customer:

{
  "customer": {
    "first_name": "Steve",
    "last_name": "Lastnameson",
    "email": "steve.lastnameson@example.com",
    "phone": "+15142546011",
    "verified_email": true,
    "addresses": [
      {
        "address1": "123 Oak St",
        "city": "Ottawa",
        "province": "ON",
        "phone": "555-1212",
        "zip": "123 ABC",
        "last_name": "Lastnameson",
        "first_name": "Mother",
        "country": "CA"
      }
    ],
    "send_email_invite": true
  }
}

 

Best,
Evita

On The Map Marketing | Developing custom Shopify Sites & Apps is our thing

- Install our latest app Accessibly - Makes your store accessible for everyone, helps to avoid fines
- Inc 5000 | Shopify Parners | 20+ stores launched | 300+ active clients
- Need help with your Shopify store? Reach out to us!
smartdesizns
Tourist
8 0 0

yes I'm using POST method like this:
ss.png

but its returning list of customers.

smartdesizns
Tourist
8 0 0

Hi everyone 

 

please respond on my query if anyone have solution.

Thanks in Advance!!!

smartdesizns
Tourist
8 0 0

Please respond me, I'm waiting for the solution

smartdesizns
Tourist
8 0 0

Hi All,
Luckily I fixed the Api issue. But now I need help in showing my laravel view in shopify. 
I have instagram login button in laravel , How can I display it in shopify customer login page.
Please reply if anyone knows the solution. 
Thanks!!!

urwausman
New Member
3 0 0

could you please tell me what was the issue which you have fixed. because i'm getting the same error which you were getting.

thanks in advance.

urwausman
New Member
3 0 0

Sorry, after some research i got the solution. solution is we need to clear our all of the cookies from postman.