---
updatedAt: 2026-06-19T16:07:00.000Z
---

# Customers (Shopify)

Update the selected costumer's information. Important information: The costumer's ID must exist.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Shopify"
  },
  "servers": [
    {
      "url": "https://api.ecartapi.com/api/v2"
    }
  ],
  "paths": {
    "/customers/{customerId}": {
      "put": {
        "summary": "Customers (Shopify)",
        "description": "Update the selected costumer's information. Important information: The costumer's ID must exist.",
        "operationId": "update_customer_shopify",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "customer": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "phone": {
                          "type": "string",
                          "nullable": true
                        },
                        "verifiedEmail": {
                          "type": "string"
                        },
                        "acceptsMarketing": {
                          "type": "string"
                        },
                        "ordersCount": {
                          "type": "string"
                        },
                        "taxExempt": {
                          "type": "string"
                        },
                        "totalSpent": {
                          "type": "string"
                        },
                        "addresses": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "firstName": {
                                "type": "string"
                              },
                              "lastName": {
                                "type": "string"
                              },
                              "company": {
                                "type": "string",
                                "nullable": true
                              },
                              "address1": {
                                "type": "string"
                              },
                              "address2": {
                                "type": "string",
                                "nullable": true
                              },
                              "city": {
                                "type": "string"
                              },
                              "province": {
                                "type": "string"
                              },
                              "country": {
                                "type": "string"
                              },
                              "postalCode": {
                                "type": "string"
                              },
                              "phone": {
                                "type": "string",
                                "nullable": true
                              },
                              "default": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "dates": {
                          "type": "object",
                          "properties": {
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "success": true,
                      "customer": {
                        "id": "1732088692836",
                        "email": "test@envia.com",
                        "firstName": "Alex",
                        "lastName": "de la Cruz Martinez",
                        "status": "disabled",
                        "note": "Customer is a great guy",
                        "phone": null,
                        "currency": "MXN",
                        "addresses": [
                          {
                            "id": "1823732695140",
                            "firstName": "Alex",
                            "lastName": "de la Cruz",
                            "address1": "Av Vazconcelos 1440",
                            "address2": "Col. Palo Blanco",
                            "country": {
                              "code": "MX",
                              "name": "Mexico"
                            },
                            "state": {
                              "code": "NL",
                              "name": "Nuevo León"
                            },
                            "city": "San Pedro Garza García",
                            "postalcode": "60000",
                            "phone": "018181818181",
                            "company": "Envia",
                            "references": null,
                            "defaultBilling": null,
                            "defaultShipping": null
                          }
                        ],
                        "createdAt": "2019-05-21T14:49:57-04:00",
                        "updatedAt": "2019-05-21T14:50:25-04:00"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "customerId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the customer to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "description": "Customer email",
                        "example": "email@email.com"
                      },
                      "firstName": {
                        "type": "string",
                        "description": "Customer first name",
                        "example": "Ecar"
                      },
                      "lastName": {
                        "type": "string",
                        "description": "Customer last name",
                        "example": "Tapi"
                      },
                      "phone": {
                        "type": "string",
                        "description": "Customer phone"
                      },
                      "verifiedEmail": {
                        "type": "string"
                      },
                      "acceptsMarketing": {
                        "type": "string"
                      },
                      "addresses": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string"
                            },
                            "company": {
                              "type": "string"
                            },
                            "address1": {
                              "type": "string"
                            },
                            "address2": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "province": {
                              "type": "string"
                            },
                            "country": {
                              "type": "string"
                            },
                            "postalCode": {
                              "type": "string"
                            },
                            "phone": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "New Example": {
                  "summary": "New Example",
                  "value": {
                    "customer": {
                      "firstName": "Daniela",
                      "lastName": "Zapata",
                      "email": "test_cambio2@envia.com",
                      "note": "Customer is chill"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Used to authenticate API requests after completing the store authorization or integration process. The access_token is generated once the e-commerce store grants access and must be included in every request header to validate the authorized connection."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "security": [
    {
      "Authorization": []
    }
  ]
}
```