omit phone number from customer profile to prevent Shopify errors
This commit is contained in:
parent
842e9441dd
commit
e17fea9a1e
@ -169,8 +169,10 @@ app.post('/create-order', async (req, res) => {
|
|||||||
customer: {
|
customer: {
|
||||||
first_name: customerData.first_name,
|
first_name: customerData.first_name,
|
||||||
last_name: customerData.last_name,
|
last_name: customerData.last_name,
|
||||||
email: customerData.email,
|
email: customerData.email
|
||||||
phone: customerData.phone
|
// 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: {
|
billing_address: {
|
||||||
first_name: customerData.first_name,
|
first_name: customerData.first_name,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user