update for contact number
This commit is contained in:
parent
79280eeee3
commit
ca5b179014
10
server.js
10
server.js
@ -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`, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user