Required Customer Data

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)
Replies 0 (0)