From e17fea9a1e84b0c246db614eb7ac53be5508e1f9 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Tue, 30 Jun 2026 18:36:22 +0530 Subject: [PATCH] omit phone number from customer profile to prevent Shopify errors --- server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 7646c54..2c13c5d 100644 --- a/server.js +++ b/server.js @@ -169,8 +169,10 @@ app.post('/create-order', async (req, res) => { customer: { first_name: customerData.first_name, last_name: customerData.last_name, - email: customerData.email, - phone: customerData.phone + email: customerData.email + // Note: phone is omitted from the customer profile block to prevent Shopify + // "customer.phone_number has already been taken" 400 errors. + // The phone number is still fully stored and used in billing_address and shipping_address. }, billing_address: { first_name: customerData.first_name,