Hi Experts,
Hope you are doing good.
I am working on OData and needs your help.
I have to create OData(JSON) for sales confirmation into header and line format (Below is the format)
Can you please help, how I'll create below JSON format.
{
"order_number":"Test01",
"email":"Test@gmail.com",
"total_price":"16.00",
"currency":"INR",
"line_items":
[
{
"id":"I001",
"name":"Item01",
"quantity":1,
"price":"10",
},
{
"id":"I002",
"name":"Item02",
"quantity":1,
"price":"20",
}
],
"shipping_address":
{
"first_name":"Test",
"address1":"A-2 S345",
"phone":"60606",
"city":"Delhi",
"zip":"221",
"country":"IN",
},
}