Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Required Customer Data

Required Customer Data

AdriSvm
Shopify Partner
1 0 0

I have a problem when uploading customers from the REST API, when I create a customer, the API returns 400 with the message {'errors': {'customer': 'Required parameter missing or invalid'}}.

But I have tried modifying all parameters and deleting the most possible.

The code I use to create the customer is the following:

def create_customer(self, data: dict):
customer = shopify.Customer()
for key, value in data.items():
setattr(customer, key, value)
try:
customer.save()
return customer.id
.....
Replies 0 (0)