update for contact number

This commit is contained in:
Selvi 2026-06-22 17:18:26 +05:30
parent 79280eeee3
commit ca5b179014

View File

@ -207,8 +207,14 @@ app.post('/create-order', async (req, res) => {
}; };
orderPayload.order.note_attributes = [ orderPayload.order.note_attributes = [
{ name: "Contact Number", value: customerData.contact_number || "" }, {
{ name: "Courier", value: customerData.courier || "" } key: "Contact Number",
value: customerData.contact_number || ""
},
{
key: "Courier",
value: customerData.courier || ""
}
]; ];
const shopifyResponse = await fetch(`https://${process.env.SHOPIFY_STORE_DOMAIN}/admin/api/2024-01/orders.json`, { const shopifyResponse = await fetch(`https://${process.env.SHOPIFY_STORE_DOMAIN}/admin/api/2024-01/orders.json`, {