Discussing APIs and development related to customers, discounts, and order management.
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
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
.....