Hello Support,
I have integrated Shopify web service in our portal. I am placing an order from web service to Shopify admin. I am following this service https://help.shopify.com/api/reference/order#create
When I set deffrent email address for all orders it was working fine
But now i am passing same email address for all customer (for all orders)
Following are my request for that.
$ch = curl_init("https://".$api_key.":".$api_pass."@".$api_url."/orders.json");
$cntry = $orderList->cname;
$order = array('order' => array(
'line_items' => array(
array(
'title' => $orderList->gname,
// 'price' => $orderList->giftamt,
'price' => 0,
'quantity' => 1,
'properties' => array(
array(
"name" => "ORDER ID",
"value" => $orderList->id
)
)
)
),
'customer' => array(
'first_name' => $orderList->firstname,
'last_name' => $orderList->lastname,
'email' => 'partners@giftagram.com'
),
'billing_address' => array (
'first_name' => $orderList->name,
'last_name' => $orderList->name,
'address1' => $orderList->address1,
'address2' => $orderList->address2,
'phone' => $orderList->phone,
'city' => $orderList->city,
'province' => $orderList->provience,
'country' => $cntry,
'name'=> $orderList->name,
'zip' => $orderList->postal,
'default' => true
),
'shipping_address' => array (
'name' => $orderList->name,
'first_name' => $orderList->name,
'last_name' => $orderList->name,
'address1' => $orderList->address1,
'address2' => $orderList->address2,
'phone' => $orderList->phone,
'city' => $orderList->city,
'province' => $orderList->provience,
'country' => $cntry,
'zip' => $orderList->postal,
'default' => true
),
// 'transactions' => array(
// array(
// 'status' => 'success',
// 'amount' => $orderList->giftamt+$orderList->taxamt
// )
// ),
// 'total_tax' => $orderList->taxamt,
'total_tax' => 0,
'currency' => $orderList->currency,
'note' => "To: ".$orderList->receiver_name." sent via Giftagram
Message:
".$orderList->description."
From: ".$orderList->firstname." ".$orderList->lastname."
hello@giftagram.com",
'shipping_lines' => array(
array (
"code" => "Shipping",
"price" => $orderList->shipamt,
"title" => "Shipping"
)
)
));