Unable to create customers with API, Getting Internal Server Error 500

Solved
Shopify Partner
5 0 0

I am unable to create customers on shopify store using shopify API. Getting Internal Server Error with 500 status code.

Here is my api request Id (in headers): 7bda700e-1290-4f82-aa17-1384ba78538f

I am a developer at Marketcube.io. Our end customers are waiting for this eagerly. Please help.

0 Likes

Hello 

POST /admin/api/#{api_version}/customers.json Creates a customer

POST /admin/api/#{api_version}/customers/#{customer_id}/account_activation_url.json Creates an account activation URL for a customer

Refer below link this will help you:

https://help.shopify.com/en/api/reference/customers/customer#create-2019-07

Want to modify or custom changes on store hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Content Writer | Digital Marketing | SEO Expert | Site Optimization | Web Design | Web Development
0 Likes
Highlighted
Shopify Partner
5 0 0

Hello @oscprofessional , Thanks for reply, I understand both API endpoints, I will send activation url after I had created customers right? But When i am trying to create customer via shopify API, It is throwing "Internal Server Error". This is the case when there are no customers yet on my store, If a store already have few customers, I am able to create customers via API on that store.

0 Likes

Success.

Shopify Staff
Shopify Staff
1105 77 144

Hey @codechefkk , 

 

When you're creating a new customer, are you sending all values as strings (such as the phone number)? 

 

The error being thrown in the back-end is 'no implicit conversion of Integer into String' - so it looks like something is being sent as an integer when we're expecting it to be a string. 

1 Like
Shopify Partner
5 0 0

Thankyou @Josh. This solved my issue, It will be good if I can get the exact error in the response body. Thank you again, Cheers.

0 Likes